ProtocolInfo Class Reference

#include <protocolinfo.h>

List of all members.

Public Member Functions

 ProtocolInfo ()
bool isEmpty () const
void setAuthMethods (const QString methods)
QStringList authMethods () const
void setCookieAuthFile (const QString cookieAuthFile)
QString cookieAuthFile () const
void setTorVersion (const QString torVersion)
QString torVersionString () const

Private Attributes

QString _torVersion
QString _cookieAuthFile
QStringList _authMethods


Detailed Description

Definition at line 34 of file protocolinfo.h.


Constructor & Destructor Documentation

ProtocolInfo::ProtocolInfo (  )  [inline]

Default constructor.

Definition at line 38 of file protocolinfo.h.


Member Function Documentation

bool ProtocolInfo::isEmpty (  )  const

Returns true if this ProtocolInfo object contains no data.

Definition at line 33 of file protocolinfo.cpp.

References _authMethods, _cookieAuthFile, and _torVersion.

Referenced by MainWindow::authenticate().

void ProtocolInfo::setAuthMethods ( const QString  authMethods  ) 

Sets the authentication methods Tor currently accepts. methods should be a comma-delimited list of authentication methods.

Definition at line 43 of file protocolinfo.cpp.

References _authMethods.

Referenced by TorControl::protocolInfo().

QStringList ProtocolInfo::authMethods (  )  const [inline]

Returns the authentication methods Tor currently accepts.

Definition at line 47 of file protocolinfo.h.

References _authMethods.

Referenced by MainWindow::authenticate().

void ProtocolInfo::setCookieAuthFile ( const QString  cookieAuthFile  )  [inline]

Sets the file to which Tor has written its authentication cookie.

Definition at line 50 of file protocolinfo.h.

References _cookieAuthFile.

Referenced by TorControl::protocolInfo().

QString ProtocolInfo::cookieAuthFile (  )  const [inline]

Returns the file to which Tor has written its authentication cookie.

Definition at line 53 of file protocolinfo.h.

References _cookieAuthFile.

Referenced by MainWindow::authenticate().

void ProtocolInfo::setTorVersion ( const QString  torVersion  )  [inline]

Sets the version of Tor to which the controller is connected.

Definition at line 56 of file protocolinfo.h.

References _torVersion.

Referenced by TorControl::protocolInfo().

QString ProtocolInfo::torVersionString (  )  const [inline]

Returns the version of Tor to which the controller is connected.

Definition at line 58 of file protocolinfo.h.

References _torVersion.


Member Data Documentation

QString ProtocolInfo::_torVersion [private]

The Tor version in the PROTOCOLINFO reply.

Definition at line 61 of file protocolinfo.h.

Referenced by isEmpty(), setTorVersion(), and torVersionString().

QString ProtocolInfo::_cookieAuthFile [private]

Tor's authentication cookie file.

Definition at line 62 of file protocolinfo.h.

Referenced by cookieAuthFile(), isEmpty(), and setCookieAuthFile().

QStringList ProtocolInfo::_authMethods [private]

Tor's ccepted authentication methods.

Definition at line 63 of file protocolinfo.h.

Referenced by authMethods(), isEmpty(), and setAuthMethods().


The documentation for this class was generated from the following files:
Generated on Wed Sep 5 15:49:29 2007 for Vidalia by  doxygen 1.5.3