chore: refactor TwitchIrcServer (#5421)

This commit is contained in:
pajlada
2024-06-01 14:56:40 +02:00
committed by GitHub
parent 2a46ee708e
commit b6dc5d9e03
28 changed files with 373 additions and 163 deletions
+4 -5
View File
@@ -54,6 +54,7 @@ class FfzEmotes;
class SeventvEmotes;
class ILinkResolver;
class IStreamerMode;
class IAbstractIrcServer;
class IApplication
{
@@ -77,6 +78,7 @@ public:
virtual HighlightController *getHighlights() = 0;
virtual NotificationController *getNotifications() = 0;
virtual ITwitchIrcServer *getTwitch() = 0;
virtual IAbstractIrcServer *getTwitchAbstract() = 0;
virtual PubSub *getTwitchPubSub() = 0;
virtual Logging *getChatLogger() = 0;
virtual IChatterinoBadges *getChatterinoBadges() = 0;
@@ -147,11 +149,7 @@ private:
CommandController *const commands{};
NotificationController *const notifications{};
HighlightController *const highlights{};
public:
TwitchIrcServer *const twitch{};
private:
std::unique_ptr<TwitchIrcServer> twitch;
FfzBadges *const ffzBadges{};
SeventvBadges *const seventvBadges{};
UserDataController *const userData{};
@@ -191,6 +189,7 @@ public:
NotificationController *getNotifications() override;
HighlightController *getHighlights() override;
ITwitchIrcServer *getTwitch() override;
IAbstractIrcServer *getTwitchAbstract() override;
PubSub *getTwitchPubSub() override;
Logging *getChatLogger() override;
FfzBadges *getFfzBadges() override;