Logging of the messages, customizable replies, assigning groups
This commit is contained in:
parent
f03f392cee
commit
7f57cd3bf6
21 changed files with 288 additions and 62 deletions
component
|
@ -4,17 +4,33 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
#include "config.h"
|
||||
#include "router.h"
|
||||
#include "logger.h"
|
||||
|
||||
class Connection;
|
||||
|
||||
class Core {
|
||||
public:
|
||||
Core(const std::string& configPath);
|
||||
|
||||
void send(const std::string& jid, const std::string& body);
|
||||
void initialize(const std::shared_ptr<Connection>& connection);
|
||||
void setGroup(const std::string& jid, const std::string& group);
|
||||
|
||||
public:
|
||||
Config config;
|
||||
Router router;
|
||||
Logger logger;
|
||||
Router router;
|
||||
|
||||
private:
|
||||
void initializeActors();
|
||||
void initializeResponses();
|
||||
|
||||
private:
|
||||
bool initialized;
|
||||
std::weak_ptr<Connection> connection;
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue