refactor: make Application::seventvAPI private

This commit is contained in:
Rasmus Karlsson 2024-01-18 23:45:28 +01:00
parent 7629190589
commit e63a105d94
2 changed files with 9 additions and 7 deletions

View file

@ -412,6 +412,13 @@ ImageUploader *Application::getImageUploader()
return this->imageUploader; return this->imageUploader;
} }
SeventvAPI *Application::getSeventvAPI()
{
assertInGuiThread();
return this->seventvAPI;
}
ITwitchIrcServer *Application::getTwitch() ITwitchIrcServer *Application::getTwitch()
{ {
assertInGuiThread(); assertInGuiThread();

View file

@ -135,9 +135,9 @@ private:
WindowManager *const windows{}; WindowManager *const windows{};
Toasts *const toasts{}; Toasts *const toasts{};
ImageUploader *const imageUploader{}; ImageUploader *const imageUploader{};
SeventvAPI *const seventvAPI{};
public: public:
SeventvAPI *const seventvAPI{};
CrashHandler *const crashHandler{}; CrashHandler *const crashHandler{};
CommandController *const commands{}; CommandController *const commands{};
@ -211,12 +211,7 @@ public:
TwitchBadges *getTwitchBadges() override; TwitchBadges *getTwitchBadges() override;
IChatterinoBadges *getChatterinoBadges() override; IChatterinoBadges *getChatterinoBadges() override;
ImageUploader *getImageUploader() override; ImageUploader *getImageUploader() override;
SeventvAPI *getSeventvAPI() override SeventvAPI *getSeventvAPI() override;
{
assertInGuiThread();
return this->seventvAPI;
}
Updates &getUpdates() override Updates &getUpdates() override
{ {
assertInGuiThread(); assertInGuiThread();