2018-06-05 17:39:49 +02:00
|
|
|
#pragma once
|
|
|
|
|
2018-06-26 17:20:03 +02:00
|
|
|
#include "common/Emotemap.hpp"
|
2018-06-28 20:25:37 +02:00
|
|
|
#include "common/SimpleSignalVector.hpp"
|
2018-06-26 14:09:39 +02:00
|
|
|
#include "util/ConcurrentMap.hpp"
|
2018-06-05 17:39:49 +02:00
|
|
|
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
|
|
|
|
class BTTVEmotes
|
|
|
|
{
|
|
|
|
public:
|
2018-06-26 17:06:17 +02:00
|
|
|
EmoteMap globalEmotes;
|
2018-06-28 20:27:24 +02:00
|
|
|
SimpleSignalVector<QString> globalEmoteCodes;
|
2018-06-05 17:39:49 +02:00
|
|
|
|
2018-06-26 17:06:17 +02:00
|
|
|
EmoteMap channelEmotes;
|
2018-06-28 20:27:24 +02:00
|
|
|
std::map<QString, SimpleSignalVector<QString>> channelEmoteCodes;
|
2018-06-05 17:39:49 +02:00
|
|
|
|
|
|
|
void loadGlobalEmotes();
|
2018-06-26 17:20:03 +02:00
|
|
|
void loadChannelEmotes(const QString &channelName, std::weak_ptr<EmoteMap> channelEmoteMap);
|
2018-06-05 17:39:49 +02:00
|
|
|
|
2018-06-07 12:22:28 +02:00
|
|
|
private:
|
2018-06-26 17:06:17 +02:00
|
|
|
EmoteMap channelEmoteCache;
|
2018-06-05 17:39:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace chatterino
|