mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
28 lines
564 B
C++
28 lines
564 B
C++
#pragma once
|
|
|
|
#include "common/Emotemap.hpp"
|
|
#include "common/SimpleSignalVector.hpp"
|
|
#include "util/ConcurrentMap.hpp"
|
|
|
|
#include <map>
|
|
|
|
namespace chatterino {
|
|
|
|
class BTTVEmotes
|
|
{
|
|
public:
|
|
EmoteMap globalEmotes;
|
|
SimpleSignalVector<QString> globalEmoteCodes;
|
|
|
|
EmoteMap channelEmotes;
|
|
std::map<QString, SimpleSignalVector<QString>> channelEmoteCodes;
|
|
|
|
void loadGlobalEmotes();
|
|
void loadChannelEmotes(const QString &channelName, std::weak_ptr<EmoteMap> channelEmoteMap);
|
|
|
|
private:
|
|
EmoteMap channelEmoteCache;
|
|
};
|
|
|
|
} // namespace chatterino
|