Vidalia
0.3.1
src
torcontrol
ProtocolInfo.cpp
Go to the documentation of this file.
1
/*
2
** This file is part of Vidalia, and is subject to the license terms in the
3
** LICENSE file, found in the top level directory of this distribution. If
4
** you did not receive the LICENSE file with this file, you may obtain it
5
** from the Vidalia source package distributed by the Vidalia Project at
6
** http://www.torproject.org/projects/vidalia.html. No part of Vidalia,
7
** including this file, may be copied, modified, propagated, or distributed
8
** except according to the terms described in the LICENSE file.
9
*/
10
11
/*
12
** \file ProtocolInfo.cpp
13
** \brief Container for information in a PROTOCOLINFO reply from Tor
14
*/
15
16
#include "
ProtocolInfo.h
"
17
18
19
/** Returns true if this ProtocolInfo object contains no data. */
20
bool
21
ProtocolInfo::isEmpty
()
const
22
{
23
return
(
_torVersion
.isEmpty()
24
&&
_authMethods
.isEmpty()
25
&&
_cookieAuthFile
.isEmpty());
26
}
27
28
/** Sets the authentication methods Tor currently accepts. <b>methods</b>
29
* should be a comma-delimited list of authentication methods. */
30
void
31
ProtocolInfo::setAuthMethods
(
const
QString
authMethods
)
32
{
33
_authMethods
= authMethods.split(
","
);
34
}
35
ProtocolInfo::isEmpty
bool isEmpty() const
Definition:
ProtocolInfo.cpp:21
ProtocolInfo::setAuthMethods
void setAuthMethods(const QString methods)
Definition:
ProtocolInfo.cpp:31
ProtocolInfo::authMethods
QStringList authMethods() const
Definition:
ProtocolInfo.h:35
ProtocolInfo::_torVersion
QString _torVersion
Definition:
ProtocolInfo.h:49
ProtocolInfo.h
ProtocolInfo::_cookieAuthFile
QString _cookieAuthFile
Definition:
ProtocolInfo.h:50
ProtocolInfo::_authMethods
QStringList _authMethods
Definition:
ProtocolInfo.h:51
Generated by
1.8.12