Vidalia 0.3.1
ControlMethod.h
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 ControlMethod.h
13** \brief Class for specifying which method is used to communicate to Tor
14*/
15
16#ifndef _CONTROLMETHOD_H
17#define _CONTROLMETHOD_H
18
19#include <QString>
20
22{
23 public:
24 enum Method { Port, Socket };
25 static QString toString(ControlMethod::Method method);
26 static Method fromString(QString method);
27};
28
29#endif
static Method fromString(QString method)
static QString toString(ControlMethod::Method method)