IRCResponseParser Class Reference
+ Inheritance diagram for IRCResponseParser:

Signals

void helloClient (const QString &nickname)
 Emitted when user successfully joins the network. More...
 
void iSupportReceived (const QString &line)
 
void kick (const QString &channel, const QString &byWhom, const QString &whoIsKicked, const QString &reason)
 
void kill (const QString &victim, const QString &comment)
 
void modeInfo (const QString &channel, const QString &whoSetThis, const QString &modeParams)
 Carries info about MODE for display. More...
 
void namesListEndReceived (const QString &channel)
 
void namesListReceived (const QString &channel, const QStringList &names)
 
void nicknameInUse (const QString &nickname)
 
void noSuchNickname (const QString &nickname)
 
void parseError (const QString &error)
 
void print (const QString &printWhat, const QString &printWhere)
 Tells the network adapter to print a message. More...
 
void printToNetworksCurrentChatBox (const QString &printWhat, const IRCMessageClass &msgClass)
 
void printWithClass (const QString &printWhat, const QString &printWhere, const IRCMessageClass &msgClass)
 Same as print(), but allows to specify message class. More...
 
void privMsgLiteralReceived (const QString &recipient, const QString &content, const IRCMessageClass &msgClass)
 Create chat window if necessary and display message 'as is' without further string gluing. More...
 
void privMsgReceived (const QString &recipient, const QString &sender, const QString &content)
 
void sendPongMessage (const QString &sendWhere)
 
void userChangesNickname (const QString &oldNickname, const QString &newNickname)
 
void userIdleTime (const QString &nick, int secondsIdle)
 
void userJoinsChannel (const QString &channel, const QString &nickname, const QString &fullSignature)
 
void userModeChanged (const QString &channel, const QString &nickname, const QList< char > &flagsAdded, const QList< char > &flagsRemoved)
 
void userNetworkJoinDateTime (const QString &nick, const QDateTime &timeOfJoin)
 
void userPartsChannel (const QString &channel, const QString &nickname, const QString &farewellMessage)
 
void userQuitsNetwork (const QString &nickname, const QString &farewellMessage)
 
void whoIsUser (const QString &nickname, const QString &user, const QString &hostName, const QString &realName)
 Emitted with response 311 RPL_WHOISUSER. More...
 

Public Member Functions

 IRCResponseParser (IRCNetworkAdapter *network)
 
IRCResponseParseResult parse (const QString &message)
 Parses the message received from the network. More...
 

Detailed Description

Definition at line 36 of file ircresponseparser.h.

Member Function Documentation

void IRCResponseParser::helloClient ( const QString &  nickname)
signal

Emitted when user successfully joins the network.

Parameters
nicknameNickname with which the user has just registered.
void IRCResponseParser::modeInfo ( const QString &  channel,
const QString &  whoSetThis,
const QString &  modeParams 
)
signal

Carries info about MODE for display.

IRCResponseParseResult IRCResponseParser::parse ( const QString &  message)

Parses the message received from the network.

Parsing a message will result in emitting an appropriate signal. For example is message says that some user was kicked, a kick() signal will be emitted.

Returns
Instance of IRCResponseParseResult with defined type of the message and info if message was actually parsed or not.

Definition at line 86 of file ircresponseparser.cpp.

void IRCResponseParser::print ( const QString &  printWhat,
const QString &  printWhere 
)
signal

Tells the network adapter to print a message.

Parameters
printWhatThis will be printed.
printWhereName of target adapter where the message should be printed. If empty, message is printed directly through the IRCNetworkAdapter itself.
void IRCResponseParser::printWithClass ( const QString &  printWhat,
const QString &  printWhere,
const IRCMessageClass msgClass 
)
signal

Same as print(), but allows to specify message class.

void IRCResponseParser::privMsgLiteralReceived ( const QString &  recipient,
const QString &  content,
const IRCMessageClass msgClass 
)
signal

Create chat window if necessary and display message 'as is' without further string gluing.

void IRCResponseParser::whoIsUser ( const QString &  nickname,
const QString &  user,
const QString &  hostName,
const QString &  realName 
)
signal

Emitted with response 311 RPL_WHOISUSER.


The documentation for this class was generated from the following files: