23 #ifndef __IRCCLIENT_H__
24 #define __IRCCLIENT_H__
26 #include "socketsignalsadapter.h"
36 static const int MAX_MESSAGE_LENGTH = 510;
37 static const int SAFE_MESSAGE_LENGTH = 400;
42 void connect(
const QString& address,
unsigned short port);
46 bool isConnected()
const;
48 bool sendMessage(
const QString& message);
49 void setFakeRecvLag(
int lagMs);
52 void hostLookupError(QHostInfo::HostInfoError errorValue);
61 void ircServerResponse(
const QString& message);
64 bool bIsInHostLookupMode;
75 const QHostAddress* pickAddress(
const QList<QHostAddress>& addressesList);
78 void hostLookupFinished(
const QHostInfo& hostInfo);
79 void receiveSocketData();
80 void receiveSocketDataDelayed();
void infoMessage(const QString &message)
These are the messages that IRCClient class sends to inform the upper layers of progress.