mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
36 lines
801 B
C++
36 lines
801 B
C++
|
#pragma once
|
||
|
|
||
|
#include "signalvector.hpp"
|
||
|
#include "util/concurrentmap.hpp"
|
||
|
#include "util/emotemap.hpp"
|
||
|
|
||
|
#include <map>
|
||
|
|
||
|
namespace chatterino {
|
||
|
namespace providers {
|
||
|
namespace bttv {
|
||
|
|
||
|
class BTTVEmotes
|
||
|
{
|
||
|
public:
|
||
|
util::EmoteMap globalEmotes;
|
||
|
SignalVector<std::string> globalEmoteCodes;
|
||
|
|
||
|
util::EmoteMap channelEmotes;
|
||
|
std::map<std::string, SignalVector<std::string>> channelEmoteCodes;
|
||
|
|
||
|
util::EmoteMap &getBTTVChannelEmoteFromCaches();
|
||
|
|
||
|
void loadGlobalEmotes();
|
||
|
void loadChannelEmotes(const QString &channelName,
|
||
|
std::weak_ptr<util::EmoteMap> channelEmoteMap);
|
||
|
|
||
|
util::ConcurrentMap<QString, util::EmoteMap> channels;
|
||
|
|
||
|
util::EmoteMap _bttvChannelEmoteFromCaches;
|
||
|
};
|
||
|
|
||
|
} // namespace bttv
|
||
|
} // namespace providers
|
||
|
} // namespace chatterino
|