refactored the managers

This commit is contained in:
2017-12-31 00:50:07 +01:00
parent 258288bad9
commit bfa2f1637e
80 changed files with 1023 additions and 964 deletions
+5 -9
View File
@@ -2,7 +2,8 @@
#include "channel.hpp"
#include "concurrentmap.hpp"
#include "ircmanager.hpp"
#include "singletons/emotemanager.hpp"
#include "singletons/ircmanager.hpp"
namespace chatterino {
namespace twitch {
@@ -12,8 +13,7 @@ class TwitchChannel : public Channel
QTimer *liveStatusTimer;
public:
explicit TwitchChannel(IrcManager &ircManager, const QString &channelName,
bool _isSpecial = false);
explicit TwitchChannel(const QString &channelName);
~TwitchChannel();
void reloadChannelEmotes();
@@ -22,8 +22,8 @@ public:
bool canSendMessage() const override;
void sendMessage(const QString &message) override;
const std::shared_ptr<EmoteMap> bttvChannelEmotes;
const std::shared_ptr<EmoteMap> ffzChannelEmotes;
const std::shared_ptr<chatterino::EmoteMap> bttvChannelEmotes;
const std::shared_ptr<chatterino::EmoteMap> ffzChannelEmotes;
const QString subscriptionURL;
const QString channelURL;
@@ -47,10 +47,6 @@ private:
void refreshLiveStatus();
void fetchRecentMessages();
IrcManager &ircManager;
bool isSpecial;
};
} // namespace twitch