Result info generated by the IRCResponseParser. More...
#include <ircresponseparseresult.h>
Public Member Functions | |
| IRCResponseParseResult () | |
| Creates an invalid object. More... | |
| IRCResponseParseResult (const IRCResponseType &responseType, bool bWasParsed) | |
| A valid response result with set type and notification if it was parsed or not. More... | |
| IRCResponseParseResult (const IRCResponseParseResult &other) | |
| bool | isValid () const |
| IRCResponseParseResult & | operator= (const IRCResponseParseResult &other) |
| const IRCResponseType & | type () const |
| Type of the response as defined by IRCResponseType. More... | |
| bool | wasParsed () const |
true if response message was parsed, false if IRCResponseParser ignored the response. More... | |
Result info generated by the IRCResponseParser.
Definition at line 33 of file ircresponseparseresult.h.
| IRCResponseParseResult::IRCResponseParseResult | ( | ) |
Creates an invalid object.
Invalid object means that error occured and the parsing didn't even occur.
Definition at line 31 of file ircresponseparseresult.cpp.
| IRCResponseParseResult::IRCResponseParseResult | ( | const IRCResponseType & | responseType, |
| bool | bWasParsed | ||
| ) |
A valid response result with set type and notification if it was parsed or not.
| responseType | Type of the parsed response. Please note that this may still be invalid, even if the entire result object is valid. |
| bWasParsed | true if IRCResponseParser attempted to parse the message. false if message was completely ignored by the parser. |
Definition at line 37 of file ircresponseparseresult.cpp.
| const IRCResponseType & IRCResponseParseResult::type | ( | ) | const |
Type of the response as defined by IRCResponseType.
If isValid() returns false this will also return an invalid IRCResponseType object.
Definition at line 76 of file ircresponseparseresult.cpp.
|
inline |
true if response message was parsed, false if IRCResponseParser ignored the response.
Definition at line 80 of file ircresponseparseresult.h.