Move FFZ emotes to its own class
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "emojis.hpp"
|
||||
#include "messages/image.hpp"
|
||||
#include "providers/bttv/bttvemotes.hpp"
|
||||
#include "providers/ffz/ffzemotes.hpp"
|
||||
#include "providers/twitch/twitchemotes.hpp"
|
||||
#include "signalvector.hpp"
|
||||
#include "util/concurrentmap.hpp"
|
||||
@@ -29,16 +30,12 @@ public:
|
||||
|
||||
providers::twitch::TwitchEmotes twitch;
|
||||
providers::bttv::BTTVEmotes bttv;
|
||||
providers::ffz::FFZEmotes ffz;
|
||||
|
||||
void initialize();
|
||||
|
||||
void reloadFFZChannelEmotes(const QString &channelName,
|
||||
std::weak_ptr<util::EmoteMap> channelEmoteMap);
|
||||
|
||||
util::EmoteMap &getFFZEmotes();
|
||||
util::EmoteMap &getChatterinoEmotes();
|
||||
util::EmojiMap &getEmojis();
|
||||
util::ConcurrentMap<int, util::EmoteData> &getFFZChannelEmoteFromCaches();
|
||||
|
||||
util::EmoteData getCheerImage(long long int amount, bool animated);
|
||||
|
||||
@@ -69,20 +66,6 @@ public:
|
||||
|
||||
std::vector<std::string> emojiShortCodes;
|
||||
|
||||
/// FFZ emotes
|
||||
util::EmoteMap ffzChannelEmotes;
|
||||
|
||||
public:
|
||||
util::ConcurrentMap<QString, util::EmoteMap> ffzChannels;
|
||||
util::EmoteMap ffzGlobalEmotes;
|
||||
SignalVector<std::string> ffzGlobalEmoteCodes;
|
||||
std::map<std::string, SignalVector<std::string>> ffzChannelEmoteCodes;
|
||||
|
||||
private:
|
||||
util::ConcurrentMap<int, util::EmoteData> _ffzChannelEmoteFromCaches;
|
||||
|
||||
void loadFFZEmotes();
|
||||
|
||||
/// Chatterino emotes
|
||||
util::EmoteMap _chatterinoEmotes;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user