protocolinfo.cpp

Go to the documentation of this file.
00001 /*
00002 **  This file is part of Vidalia, and is subject to the license terms in the
00003 **  LICENSE file, found in the top level directory of this distribution. If 
00004 **  you did not receive the LICENSE file with this file, you may obtain it
00005 **  from the Vidalia source package distributed by the Vidalia Project at
00006 **  http://www.vidalia-project.net/. No part of Vidalia, including this file,
00007 **  may be copied, modified, propagated, or distributed except according to
00008 **  the terms described in the LICENSE file.
00009 */
00010 
00011 /* 
00012 ** \file protocolinfo.cpp
00013 ** \version $Id: protocolinfo.cpp 2362 2008-02-29 04:30:11Z edmanm $
00014 ** \brief Container for information in a PROTOCOLINFO reply from Tor
00015 */
00016 
00017 #include "protocolinfo.h"
00018 
00019 
00020 /** Returns true if this ProtocolInfo object contains no data. */
00021 bool
00022 ProtocolInfo::isEmpty() const
00023 {
00024   return (_torVersion.isEmpty() && 
00025          _authMethods.isEmpty() &&
00026          _cookieAuthFile.isEmpty());
00027 }
00028 
00029 /** Sets the authentication methods Tor currently accepts. <b>methods</b>
00030  * should be a comma-delimited list of authentication methods. */
00031 void
00032 ProtocolInfo::setAuthMethods(const QString authMethods)
00033 {
00034   _authMethods = authMethods.split(",");
00035 }
00036 

Generated on Sat Aug 16 17:31:48 2008 for Vidalia by  doxygen 1.5.6