mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
31 lines
561 B
C++
31 lines
561 B
C++
#ifndef IRCMANAGER_H
|
|
#define IRCMANAGER_H
|
|
|
|
#define TWITCH_MAX_MESSAGELENGTH 500
|
|
|
|
#include "IrcMessage"
|
|
#include "QMutex"
|
|
|
|
class IrcManager
|
|
{
|
|
public:
|
|
static void connect();
|
|
static void disconnect();
|
|
|
|
private:
|
|
IrcManager();
|
|
|
|
static void beginConnecting();
|
|
|
|
static QObject* parent;
|
|
|
|
static IrcConnection* connection;
|
|
static QMutex* connectionMutex;
|
|
static long connectionIteration;
|
|
|
|
static void messageReceived(IrcMessage* message);
|
|
static void privateMessageReceived(IrcPrivateMessage* message);
|
|
};
|
|
|
|
#endif // IRCMANAGER_H
|