23 #ifndef __IRCRESPONSETYPE_H__ 24 #define __IRCRESPONSETYPE_H__ 289 return d.numericType >= 200 && d.numericType <= 399;
299 return d.numericType >= 400;
322 return d.numericType;
bool isErrorMessage() const
Check if numeric value is equal to or above 400.
QString toRfcString() const
String representation of the message type.
375 - start of the message of the day
Not a real type, denotes number of all types.
253 - how many unknown connections
251 - how many users on how many servers
320 - it's inconclusive what this code means.
Defines types of IRC network response message.
static IRCResponseType fromIntegerResponseValue(int responseType)
Creates IRCResponseType objects taking numeric value as the more important here.
static MsgType typeFromRfcString(const QString &typeRepresentation)
Returns MsgType basing on typeRepresentation.
353 - names list for a channel
376 - end of the message of the day
bool isCommandResponse() const
Check if numeric value is between 200 and 399 (inclusive).
001 - sent when client connects.
005 - all sorts of server flags.
static int toRfcNumber(MsgType type)
If type can be represented as an integer, this will convert it.
MsgType
Represents types defined by RFC 1459.
307 - no idea what this is, but we'll treat it the same way we treat RPLWhoIsSpecial.
255 - how many clients on how many servers,
int numericType() const
If message type can be represented as number, this will contain its value.
IRCResponseType()
Initializes an invalid IRCResponseType object.
bool isValid() const
Response is valid if type is different than Invalid.
Type unknown to this IRC client.