2017-06-07 10:09:24 +02:00
|
|
|
#pragma once
|
2017-04-12 17:46:44 +02:00
|
|
|
|
|
|
|
#define GIF_FRAME_LENGTH 33
|
|
|
|
|
2018-01-11 20:16:25 +01:00
|
|
|
#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"
|
2018-06-05 17:13:29 +02:00
|
|
|
#include "providers/twitch/twitchemotes.hpp"
|
2018-06-05 18:30:26 +02:00
|
|
|
#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
|
|
|
|
2017-06-26 16:41:20 +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-06-13 21:13:58 +02:00
|
|
|
|
2017-04-12 17:46:44 +02:00
|
|
|
class EmoteManager
|
|
|
|
{
|
2018-04-28 15:20:18 +02:00
|
|
|
public:
|
2018-04-27 22:11:19 +02:00
|
|
|
~EmoteManager() = delete;
|
|
|
|
|
2018-06-05 17:13:29 +02:00
|
|
|
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;
|
2018-06-05 17:13:29 +02:00
|
|
|
|
2018-06-05 18:30:26 +02:00
|
|
|
GIFTimer gifTimer;
|
|
|
|
|
2018-04-27 22:11:19 +02:00
|
|
|
void initialize();
|
2017-10-11 10:34:04 +02:00
|
|
|
|
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
|
|
|
|
2017-07-09 17:58:59 +02:00
|
|
|
// Bit badge/emotes?
|
2018-06-05 18:30:26 +02:00
|
|
|
// TODO: Move to twitch emote provider
|
2018-01-11 20:16:25 +01:00
|
|
|
util::ConcurrentMap<QString, messages::Image *> miscImageCache;
|
2017-04-12 17:46:44 +02:00
|
|
|
};
|
2017-05-27 16:16:39 +02:00
|
|
|
|
2018-01-07 02:56:45 +01:00
|
|
|
} // namespace singletons
|
2017-04-14 17:52:22 +02:00
|
|
|
} // namespace chatterino
|