23 #ifndef __IRCRESPONSEPARSER_H__ 24 #define __IRCRESPONSEPARSER_H__ 26 #include "irc/entities/ircresponseparseresult.h" 65 void kick(
const QString& channel,
const QString& byWhom,
const QString& whoIsKicked,
const QString& reason);
66 void kill(
const QString& victim,
const QString& comment);
68 void iSupportReceived(
const QString &line);
73 void modeInfo(
const QString& channel,
const QString& whoSetThis,
const QString& modeParams);
74 void namesListReceived(
const QString& channel,
const QStringList& names);
75 void namesListEndReceived(
const QString& channel);
76 void nicknameInUse(
const QString& nickname);
77 void noSuchNickname(
const QString& nickname);
78 void parseError(
const QString& error);
90 void print(
const QString& printWhat,
const QString& printWhere);
95 void printToNetworksCurrentChatBox(
const QString &printWhat,
const IRCMessageClass &msgClass);
97 void privMsgReceived(
const QString& recipient,
const QString& sender,
const QString& content);
103 void sendPongMessage(
const QString& sendWhere);
104 void userChangesNickname(
const QString& oldNickname,
const QString& newNickname);
105 void userIdleTime(
const QString &nick,
int secondsIdle);
106 void userJoinsChannel(
const QString& channel,
const QString& nickname,
const QString& fullSignature);
107 void userNetworkJoinDateTime(
const QString &nick,
const QDateTime &timeOfJoin);
108 void userModeChanged(
const QString& channel,
const QString& nickname,
109 const QList<char> &flagsAdded,
const QList<char> &flagsRemoved);
110 void userPartsChannel(
const QString& channel,
const QString& nickname,
const QString& farewellMessage);
111 void userQuitsNetwork(
const QString& nickname,
const QString& farewellMessage);
116 void whoIsUser(
const QString& nickname,
const QString& user,
const QString& hostName,
const QString& realName);
128 bool isPrefixIgnored()
const;
129 QString joinAndTrimColonIfNecessary(
const QStringList& strList)
const;
135 FlagModes getFlagMode(
char c);
139 void parsePrivMsgOrNotice();
146 void parseUserModeMessage(
const QString& channel, QString flagsString, QStringList& nicknames);
148 QString& trimColonIfNecessary(QString& str)
const;
Interprets communication between the client and the IRC server.
void print(const QString &printWhat, const QString &printWhere)
Tells the network adapter to print a message.
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...
void modeInfo(const QString &channel, const QString &whoSetThis, const QString &modeParams)
Carries info about MODE for display.
IRCResponseParseResult parse(const QString &message)
Parses the message received from the network.
void whoIsUser(const QString &nickname, const QString &user, const QString &hostName, const QString &realName)
Emitted with response 311 RPL_WHOISUSER.
void helloClient(const QString &nickname)
Emitted when user successfuly joins the network.
Result info generated by the IRCResponseParser.
void printWithClass(const QString &printWhat, const QString &printWhere, const IRCMessageClass &msgClass)
Same as print(), but allows to specify message class.