Vidalia  0.2.21
Public Member Functions | Private Attributes | List of all members
ProtocolInfo Class Reference

#include <ProtocolInfo.h>

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 22 of file ProtocolInfo.h.

Constructor & Destructor Documentation

ProtocolInfo::ProtocolInfo ( )
inline

Default constructor.

Definition at line 26 of file ProtocolInfo.h.

Member Function Documentation

QStringList ProtocolInfo::authMethods ( ) const
inline

Returns the authentication methods Tor currently accepts.

Definition at line 35 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 41 of file ProtocolInfo.h.

References _cookieAuthFile.

Referenced by MainWindow::authenticate(), and setCookieAuthFile().

bool ProtocolInfo::isEmpty ( ) const

Returns true if this ProtocolInfo object contains no data.

Definition at line 21 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 31 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 38 of file ProtocolInfo.h.

References _cookieAuthFile, and 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 44 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 46 of file ProtocolInfo.h.

References _torVersion.

Member Data Documentation

QStringList ProtocolInfo::_authMethods
private

Tor's ccepted authentication methods.

Definition at line 51 of file ProtocolInfo.h.

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

QString ProtocolInfo::_cookieAuthFile
private

Tor's authentication cookie file.

Definition at line 50 of file ProtocolInfo.h.

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

QString ProtocolInfo::_torVersion
private

The Tor version in the PROTOCOLINFO reply.

Definition at line 49 of file ProtocolInfo.h.

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


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