#include <replyline.h>
Public Member Functions | |
| ReplyLine () | |
| ReplyLine (QString status, QString message) | |
| ReplyLine (QString status, QString message, QString data) | |
| void | setStatus (QString status) |
| QString | getStatus () |
| void | setMessage (QString msg) |
| QString | getMessage () |
| void | appendData (QString data) |
| QStringList | getData () |
Private Member Functions | |
| QString | unescape (QString str) |
Private Attributes | |
| QString | _status |
| QString | _message |
| QStringList | _data |
Definition at line 34 of file replyline.h.
| ReplyLine::ReplyLine | ( | ) |
Default constructor
Definition at line 31 of file replyline.cpp.
| ReplyLine::ReplyLine | ( | QString | status, | |
| QString | msg | |||
| ) |
| ReplyLine::ReplyLine | ( | QString | status, | |
| QString | msg, | |||
| QString | data | |||
| ) |
Constructor
Definition at line 43 of file replyline.cpp.
References _status, appendData(), and setMessage().
| void ReplyLine::setStatus | ( | QString | status | ) |
Set the status code for this reply line. See Tor Control Protocol V1 specification for a description of status codes.
Definition at line 53 of file replyline.cpp.
References _status.
| QString ReplyLine::getStatus | ( | ) |
Get the status code for this reply line.
Definition at line 60 of file replyline.cpp.
References _status.
Referenced by ControlReply::getStatus().
| void ReplyLine::setMessage | ( | QString | msg | ) |
Get/set the message for this reply line
Definition at line 67 of file replyline.cpp.
References _message, and unescape().
Referenced by ReplyLine().
| QString ReplyLine::getMessage | ( | ) |
Get the message for this reply line
Definition at line 74 of file replyline.cpp.
References _message.
Referenced by ControlReply::getMessage(), TorEvents::handleBandwidthUpdate(), TorEvents::handleCircuitStatus(), TorEvents::handleLogMessage(), TorEvents::handleNewDescriptor(), TorEvents::handleOrConnStatus(), TorEvents::handleStreamStatus(), and TorEvents::parseEventType().
| void ReplyLine::appendData | ( | QString | data | ) |
Add some data to this line
Definition at line 81 of file replyline.cpp.
References _data, and unescape().
Referenced by ReplyLine().
| QStringList ReplyLine::getData | ( | ) |
Returns a QStringList of all data lines for this reply line
Definition at line 88 of file replyline.cpp.
References _data.
Referenced by ControlReply::getData(), and TorEvents::handleLogMessage().
| QString ReplyLine::unescape | ( | QString | str | ) | [private] |
Unescapes characters in the given string
Definition at line 95 of file replyline.cpp.
Referenced by appendData(), and setMessage().
QString ReplyLine::_status [private] |
QString ReplyLine::_message [private] |
QStringList ReplyLine::_data [private] |
1.5.1