Chatterino
Emotes.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "common/Singleton.hpp"
4 
11 
12 namespace chatterino {
13 
14 class Settings;
15 class Paths;
16 
17 class IEmotes
18 {
19 public:
20  virtual ~IEmotes() = default;
21 
22  virtual ITwitchEmotes *getTwitchEmotes() = 0;
23 };
24 
25 class Emotes final : public IEmotes, public Singleton
26 {
27 public:
28  Emotes();
29 
30  virtual void initialize(Settings &settings, Paths &paths) override;
31 
32  bool isIgnoredEmote(const QString &emote);
33 
35  {
36  return &this->twitch;
37  }
38 
41 
43 };
44 
45 } // namespace chatterino
EmotePtr emote
Definition: InputCompletionPopup.cpp:20
Definition: Emotes.hpp:17
Definition: GifTimer.hpp:10
Definition: Singleton.hpp:10
Definition: Application.cpp:48
Definition: Emotes.hpp:25
GIFTimer gifTimer
Definition: Emotes.hpp:42
ITwitchEmotes * getTwitchEmotes() final
Definition: Emotes.hpp:34
Definition: Emojis.hpp:38
Settings which are availlable for reading and writing on the gui thread.
Definition: Settings.hpp:78
Definition: Paths.hpp:8
TwitchEmotes twitch
Definition: Emotes.hpp:39
Definition: TwitchEmotes.hpp:45
virtual ITwitchEmotes * getTwitchEmotes()=0
Definition: TwitchEmotes.hpp:36
virtual ~IEmotes()=default
Emojis emojis
Definition: Emotes.hpp:40