refactor: Move Emotes to Application (#5120)

This commit is contained in:
pajlada
2024-01-21 14:20:21 +01:00
committed by GitHub
parent 65d3e73c5d
commit 5628605de4
14 changed files with 152 additions and 72 deletions
+13
View File
@@ -51,6 +51,9 @@ class SeventvBadges;
class ImageUploader;
class SeventvAPI;
class CrashHandler;
class BttvEmotes;
class FfzEmotes;
class SeventvEmotes;
class IApplication
{
@@ -89,6 +92,9 @@ public:
virtual PluginController *getPlugins() = 0;
#endif
virtual Updates &getUpdates() = 0;
virtual BttvEmotes *getBttvEmotes() = 0;
virtual FfzEmotes *getFfzEmotes() = 0;
virtual SeventvEmotes *getSeventvEmotes() = 0;
};
class Application : public IApplication
@@ -152,6 +158,9 @@ private:
std::unique_ptr<PubSub> twitchPubSub;
std::unique_ptr<TwitchBadges> twitchBadges;
std::unique_ptr<ChatterinoBadges> chatterinoBadges;
std::unique_ptr<BttvEmotes> bttvEmotes;
std::unique_ptr<FfzEmotes> ffzEmotes;
std::unique_ptr<SeventvEmotes> seventvEmotes;
const std::unique_ptr<Logging> logging;
#ifdef CHATTERINO_HAVE_PLUGINS
PluginController *const plugins{};
@@ -199,6 +208,10 @@ public:
return this->updates;
}
BttvEmotes *getBttvEmotes() override;
FfzEmotes *getFfzEmotes() override;
SeventvEmotes *getSeventvEmotes() override;
pajlada::Signals::NoArgSignal streamerModeChanged;
private: