ControlReply Class Reference

#include <controlreply.h>

List of all members.

Public Member Functions

 ControlReply ()
void appendLine (ReplyLine line)
ReplyLine getLine (int idx=0)
QList< ReplyLinegetLines ()
QString getStatus ()
QString getMessage ()
QStringList getData ()

Private Attributes

QList< ReplyLine_lines


Detailed Description

Definition at line 35 of file controlreply.h.


Constructor & Destructor Documentation

ControlReply::ControlReply (  ) 

Default constructor

Definition at line 31 of file controlreply.cpp.


Member Function Documentation

void ControlReply::appendLine ( ReplyLine  line  ) 

Add a line associated with this reply

Definition at line 37 of file controlreply.cpp.

References _lines.

Referenced by ControlSocket::readReply().

ReplyLine ControlReply::getLine ( int  idx = 0  ) 

Returns a single line from this reply

Definition at line 44 of file controlreply.cpp.

References _lines.

Referenced by getData(), getMessage(), and getStatus().

QList< ReplyLine > ControlReply::getLines (  ) 

Returns all lines for this reply

Definition at line 51 of file controlreply.cpp.

References _lines.

Referenced by TorControl::getConf(), TorControl::getDescriptorListById(), TorControl::getDescriptorListByName(), TorControl::getInfo(), and TorEvents::handleEvent().

QString ControlReply::getStatus (  ) 

Returns the status of the first line in the reply

Definition at line 58 of file controlreply.cpp.

References getLine(), and ReplyLine::getStatus().

Referenced by TorControl::send().

QString ControlReply::getMessage (  ) 

Returns the messasge of the first line in the reply

Definition at line 65 of file controlreply.cpp.

References getLine(), and ReplyLine::getMessage().

Referenced by TorControl::getCircuits(), TorControl::getRouterIDList(), TorControl::getStreams(), and TorControl::send().

QStringList ControlReply::getData (  ) 

Returns the data for the first line in the reply.

Definition at line 72 of file controlreply.cpp.

References ReplyLine::getData(), and getLine().

Referenced by TorControl::getCircuits(), and TorControl::getStreams().


Member Data Documentation

QList<ReplyLine> ControlReply::_lines [private]

Definition at line 57 of file controlreply.h.

Referenced by appendLine(), getLine(), and getLines().


The documentation for this class was generated from the following files:
Generated on Mon Oct 23 20:08:16 2006 for Vidalia by  doxygen 1.5.0