Vidalia  0.3.1
Public Member Functions | Private Attributes | List of all members
ControlReply Class Reference

#include <ControlReply.h>

Public Member Functions

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

Private Attributes

QList< ReplyLine_lines
 

Detailed Description

Definition at line 24 of file ControlReply.h.

Constructor & Destructor Documentation

§ ControlReply()

ControlReply::ControlReply ( )

Default constructor

Definition at line 20 of file ControlReply.cpp.

Member Function Documentation

§ appendLine()

void ControlReply::appendLine ( ReplyLine  line)

Add a line associated with this reply

Definition at line 26 of file ControlReply.cpp.

References _lines.

Referenced by ControlSocket::readReply().

§ getData()

QStringList ControlReply::getData ( ) const

Returns the data for the first line in the reply.

Definition at line 61 of file ControlReply.cpp.

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

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

§ getLine()

ReplyLine ControlReply::getLine ( int  idx = 0) const

Returns a single line from this reply

Returns the requested line from this reply

Definition at line 33 of file ControlReply.cpp.

References _lines.

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

§ getLines()

QList< ReplyLine > ControlReply::getLines ( ) const

Returns all lines for this reply

Definition at line 40 of file ControlReply.cpp.

References _lines.

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

§ getMessage()

QString ControlReply::getMessage ( ) const

Returns the messasge of the first line in the reply

Returns the message of the first line in the reply

Definition at line 54 of file ControlReply.cpp.

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

Referenced by TorControl::getBootstrapPhase(), TorControl::getStreams(), and TorControl::send().

§ getStatus()

QString ControlReply::getStatus ( ) const

Returns the status of the first line in the reply

Definition at line 47 of file ControlReply.cpp.

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

Referenced by ControlConnection::onReadyRead(), and TorControl::send().

§ toString()

QString ControlReply::toString ( ) const

Returns the entire contents of the control reply.

Definition at line 68 of file ControlReply.cpp.

References _lines, and ReplyLine::toString().

Referenced by TorControl::getHiddenServiceConf(), and ControlConnection::onReadyRead().

Member Data Documentation

§ _lines

QList<ReplyLine> ControlReply::_lines
private

Definition at line 48 of file ControlReply.h.

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


The documentation for this class was generated from the following files: