Vidalia
0.2.21
Main Page
Namespaces
Classes
Files
File List
File Members
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
Generated on Thu Dec 6 2012 04:33:17 for Vidalia by
1.8.2