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

33 lines
686 B
C++
Raw Normal View History

2018-06-05 17:39:49 +02:00
#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;
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 bttv
} // namespace providers
} // namespace chatterino