Files
chatterino2/src/providers/bttv/_BttvEmotes.hpp
2018-06-26 13:23:57 +02:00

33 lines
674 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<QString> globalEmoteCodes;
util::EmoteMap channelEmotes;
std::map<QString, SignalVector<QString>> channelEmoteCodes;
void loadGlobalEmotes();
void loadChannelEmotes(const QString &channelName,
std::weak_ptr<util::EmoteMap> channelEmoteMap);
private:
util::EmoteMap channelEmoteCache;
};
} // namespace bttv
} // namespace providers
} // namespace chatterino