Parses request and interprets them in a way that emulates mIRC (or any even slightly sane IRC client for that matter). More...
#include <ircrequestparser.h>
Public Types | |
enum | IRCRequestParseResult { Ok, ErrorMessageTooLong, ErrorMessageEmpty, ErrorInputNotPrependedWithSlash, ErrorInputInsufficientParameters, ErrorChatWindowOnly, QuitCommand } |
Signals | |
void | echoPrivmsg (const QString &recipient, const QString &content) |
Echoes back all PRIVMSG commands. More... | |
void | query (const QString &who) |
Emitted when "/query" alias is used. More... | |
Public Member Functions | |
const QString & | output () const |
IRCRequestParseResult | parse (IRCAdapterBase *pAdapter, QString input) |
Parses input string and returns it through output string. Additional information is passed through return value. More... | |
Parses request and interprets them in a way that emulates mIRC (or any even slightly sane IRC client for that matter).
The above statement means that a non-RFC compliant request form that users grew accustomed to will be understood correctly by this parser and converted to RFC 1459 compliant form.
For example:
For more information refer to parse() method.
Definition at line 53 of file ircrequestparser.h.
|
signal |
Echoes back all PRIVMSG commands.
recipient | Recipient of the message. This is extracted directly from the privmsg request. |
messageContent | Content of the message. |
IRCRequestParser::IRCRequestParseResult IRCRequestParser::parse | ( | IRCAdapterBase * | pAdapter, |
QString | input | ||
) |
Parses input string and returns it through output string. Additional information is passed through return value.
pAdapter | Adapter that sends the message. |
input | Input message in common format. See IRCRequestParser description. |
Definition at line 64 of file ircrequestparser.cpp.
|
signal |
Emitted when "/query" alias is used.
This signal will only be emitted if the query parameter specifies a valid user name.
who | A clean nickname. |