mirror-chatterino2/src/singletons/emotemanager.hpp

42 lines
939 B
C++
Raw Normal View History

#pragma once
2017-04-12 17:46:44 +02:00
#define GIF_FRAME_LENGTH 33
#include "messages/image.hpp"
2018-06-05 17:39:49 +02:00
#include "providers/bttv/bttvemotes.hpp"
2018-06-05 18:53:49 +02:00
#include "providers/emoji/emojis.hpp"
2018-06-05 18:07:17 +02:00
#include "providers/ffz/ffzemotes.hpp"
#include "providers/twitch/twitchemotes.hpp"
#include "singletons/helper/giftimer.hpp"
2017-12-31 22:58:35 +01:00
#include "util/concurrentmap.hpp"
#include "util/emotemap.hpp"
2017-04-12 17:46:44 +02:00
#include <QString>
2017-04-12 17:46:44 +02:00
2017-04-14 17:52:22 +02:00
namespace chatterino {
2017-12-31 22:58:35 +01:00
namespace singletons {
2017-04-12 17:46:44 +02:00
class EmoteManager
{
public:
~EmoteManager() = delete;
providers::twitch::TwitchEmotes twitch;
2018-06-05 17:39:49 +02:00
providers::bttv::BTTVEmotes bttv;
2018-06-05 18:07:17 +02:00
providers::ffz::FFZEmotes ffz;
2018-06-05 18:53:49 +02:00
providers::emoji::Emojis emojis;
GIFTimer gifTimer;
void initialize();
2017-12-31 22:58:35 +01:00
util::EmoteData getCheerImage(long long int amount, bool animated);
2017-04-12 17:46:44 +02:00
// Bit badge/emotes?
// TODO: Move to twitch emote provider
util::ConcurrentMap<QString, messages::Image *> miscImageCache;
2017-04-12 17:46:44 +02:00
};
2017-05-27 16:16:39 +02:00
} // namespace singletons
2017-04-14 17:52:22 +02:00
} // namespace chatterino