2018-01-28 14:23:55 +01:00
|
|
|
#pragma once
|
|
|
|
|
2018-06-26 14:09:39 +02:00
|
|
|
#include "messages/Message.hpp"
|
|
|
|
#include "singletons/helper/LoggingChannel.hpp"
|
2018-01-28 14:23:55 +01:00
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
namespace chatterino {
|
2018-06-26 16:37:59 +02:00
|
|
|
|
2018-01-28 14:23:55 +01:00
|
|
|
class PathManager;
|
|
|
|
|
2018-04-27 22:11:19 +02:00
|
|
|
class LoggingManager
|
2018-01-28 14:23:55 +01:00
|
|
|
{
|
2018-04-27 22:11:19 +02:00
|
|
|
PathManager *pathManager = nullptr;
|
2018-01-28 14:23:55 +01:00
|
|
|
|
|
|
|
public:
|
2018-04-28 15:20:18 +02:00
|
|
|
LoggingManager() = default;
|
|
|
|
|
2018-04-27 22:11:19 +02:00
|
|
|
~LoggingManager() = delete;
|
|
|
|
|
|
|
|
void initialize();
|
2018-01-28 14:23:55 +01:00
|
|
|
|
|
|
|
void addMessage(const QString &channelName, messages::MessagePtr message);
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::map<QString, std::unique_ptr<LoggingChannel>> loggingChannels;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace chatterino
|