mirror-chatterino2/src/providers/bttv/BttvEmotes.hpp

29 lines
597 B
C++
Raw Normal View History

2018-06-05 17:39:49 +02:00
#pragma once
2018-06-26 15:33:51 +02:00
#include "common/SignalVector.hpp"
2018-06-26 14:09:39 +02:00
#include "util/ConcurrentMap.hpp"
2018-06-26 15:33:51 +02:00
#include "common/Emotemap.hpp"
2018-06-05 17:39:49 +02:00
#include <map>
namespace chatterino {
class BTTVEmotes
{
public:
util::EmoteMap globalEmotes;
SignalVector<QString> globalEmoteCodes;
2018-06-05 17:39:49 +02:00
util::EmoteMap channelEmotes;
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 chatterino