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