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 23 of file protocolinfo.h.


Constructor & Destructor Documentation

ProtocolInfo::ProtocolInfo (  )  [inline]

Default constructor.

Definition at line 27 of file protocolinfo.h.


Member Function Documentation

QStringList ProtocolInfo::authMethods (  )  const [inline]

Returns the authentication methods Tor currently accepts.

Definition at line 36 of file protocolinfo.h.

References _authMethods.

Referenced by MainWindow::authenticate().

QString ProtocolInfo::cookieAuthFile (  )  const [inline]

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

Definition at line 42 of file protocolinfo.h.

References _cookieAuthFile.

Referenced by MainWindow::authenticate().

bool ProtocolInfo::isEmpty (  )  const

Returns true if this ProtocolInfo object contains no data.

Definition at line 22 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 32 of file protocolinfo.cpp.

References _authMethods.

Referenced by TorControl::protocolInfo().

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

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

Definition at line 39 of file protocolinfo.h.

References _cookieAuthFile.

Referenced by TorControl::protocolInfo().

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

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

Definition at line 45 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 47 of file protocolinfo.h.

References _torVersion.


Member Data Documentation

QStringList ProtocolInfo::_authMethods [private]

Tor's ccepted authentication methods.

Definition at line 52 of file protocolinfo.h.

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

QString ProtocolInfo::_cookieAuthFile [private]

Tor's authentication cookie file.

Definition at line 51 of file protocolinfo.h.

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

QString ProtocolInfo::_torVersion [private]

The Tor version in the PROTOCOLINFO reply.

Definition at line 50 of file protocolinfo.h.

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


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

Generated on 2 Sep 2009 for Vidalia by  doxygen 1.6.1