mirror-chatterino2/src/singletons/LoggingManager.hpp

30 lines
514 B
C++
Raw Normal View History

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