mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
1043f9f803
* refactor: remove unnecessary includes in headers * fix: formatting * chore: changelog * fix: scrollbar * fix: suggestions and old appbase remains * fix: suggestion * fix: missing Qt forward declarations * fix: another qt include * fix: includes for precompiled-headers=off * Add missing `<memory>` includes * Add missing `#pragma once` * Fix tests Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
41 lines
724 B
C++
41 lines
724 B
C++
#pragma once
|
|
|
|
#include "common/Singleton.hpp"
|
|
#include "providers/emoji/Emojis.hpp"
|
|
#include "providers/twitch/TwitchEmotes.hpp"
|
|
#include "singletons/helper/GifTimer.hpp"
|
|
|
|
namespace chatterino {
|
|
|
|
class Settings;
|
|
class Paths;
|
|
|
|
class IEmotes
|
|
{
|
|
public:
|
|
virtual ~IEmotes() = default;
|
|
|
|
virtual ITwitchEmotes *getTwitchEmotes() = 0;
|
|
};
|
|
|
|
class Emotes final : public IEmotes, public Singleton
|
|
{
|
|
public:
|
|
Emotes();
|
|
|
|
virtual void initialize(Settings &settings, Paths &paths) override;
|
|
|
|
bool isIgnoredEmote(const QString &emote);
|
|
|
|
ITwitchEmotes *getTwitchEmotes() final
|
|
{
|
|
return &this->twitch;
|
|
}
|
|
|
|
TwitchEmotes twitch;
|
|
Emojis emojis;
|
|
|
|
GIFTimer gifTimer;
|
|
};
|
|
|
|
} // namespace chatterino
|