mirror-chatterino2/src/providers/twitch/ircmessagehandler.hpp

34 lines
1 KiB
C++
Raw Normal View History

2018-01-01 23:54:54 +01:00
#pragma once
#include <IrcMessage>
namespace chatterino {
namespace singletons {
class ChannelManager;
class ResourceManager;
2018-02-05 15:11:50 +01:00
} // namespace singletons
2018-01-01 23:54:54 +01:00
2018-02-05 15:11:50 +01:00
namespace providers {
namespace twitch {
2018-01-01 23:54:54 +01:00
class IrcMessageHandler
{
2018-02-05 15:11:50 +01:00
IrcMessageHandler(singletons::ResourceManager &resourceManager);
2018-01-01 23:54:54 +01:00
2018-02-05 15:11:50 +01:00
singletons::ResourceManager &resourceManager;
2018-01-01 23:54:54 +01:00
public:
static IrcMessageHandler &getInstance();
void handleRoomStateMessage(Communi::IrcMessage *message);
void handleClearChatMessage(Communi::IrcMessage *message);
void handleUserStateMessage(Communi::IrcMessage *message);
void handleWhisperMessage(Communi::IrcMessage *message);
void handleUserNoticeMessage(Communi::IrcMessage *message);
void handleModeMessage(Communi::IrcMessage *message);
void handleNoticeMessage(Communi::IrcNoticeMessage *message);
void handleWriteConnectionNoticeMessage(Communi::IrcNoticeMessage *message);
};
2018-02-05 15:11:50 +01:00
} // namespace twitch
} // namespace providers
} // namespace chatterino