Vidalia  0.2.17
ControlMethod.h
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.torproject.org/projects/vidalia.html. No part of Vidalia, 
00007 **  including this file, may be copied, modified, propagated, or distributed 
00008 **  except according to the terms described in the LICENSE file.
00009 */
00010 
00011 /*
00012 ** \file ControlMethod.h
00013 ** \brief Class for specifying which method is used to communicate to Tor
00014 */
00015 
00016 #ifndef _CONTROLMETHOD_H
00017 #define _CONTROLMETHOD_H
00018 
00019 #include <QString>
00020 
00021 class ControlMethod
00022 {
00023   public:
00024     enum Method { Port, Socket };
00025     static QString toString(ControlMethod::Method method);
00026     static Method fromString(QString method);
00027 };
00028 
00029 #endif