work on dynamic badge-loading

This commit is contained in:
Rasmus Karlsson
2017-06-15 23:13:01 +02:00
parent e7282b5097
commit 7525dae768
11 changed files with 263 additions and 15 deletions
+8
View File
@@ -1,6 +1,9 @@
#pragma once
#include "channel.hpp"
#include "channeldata.hpp"
#include <map>
namespace chatterino {
@@ -24,11 +27,16 @@ public:
std::shared_ptr<Channel> getChannel(const QString &channel);
void removeChannel(const QString &channel);
const std::string &getUserID(const std::string &username);
private:
WindowManager &windowManager;
EmoteManager &emoteManager;
IrcManager &ircManager;
std::map<std::string, std::string> usernameToID;
std::map<std::string, ChannelData> channelDatas;
QMap<QString, std::tuple<std::shared_ptr<Channel>, int>> _channels;
QMutex _channelsMutex;