Vidalia
0.2.21
Main Page
Namespaces
Classes
Files
File List
File Members
src
vidalia
config
ServiceSettings.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 you
4
** did not receive the LICENSE file with this file, you may obtain it from the
5
** 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
#ifndef _SERVICESETTINGS_H
12
#define _SERVICESETTINGS_H
13
14
#include <
TorControl.h
>
15
#include <
ServiceList.h
>
16
#include <
VidaliaSettings.h
>
17
#include <
ExitPolicy.h
>
18
19
20
/* XXX: Domenik: Shouldn't this inherit AbstractTorSettings like the rest of
21
* the settings classes? */
22
class
ServiceSettings
:
private
VidaliaSettings
23
{
24
public
:
25
/** Constructor */
26
ServiceSettings
(
TorControl
*torControl);
27
/** Returns the service port for a specific service*/
28
QString
getVirtualPort
();
29
/** Set the service port for a specific service*/
30
void
setVirtualPort
(QString servicePort);
31
/** Returns the .onion - service address for a specific service */
32
QString
getServiceAddress
();
33
/** Set the .onion - service address for a specific service */
34
void
setServiceAddress
(QString serviceAddress);
35
/** Returns the service address or hostname for a specific service */
36
QString
getPhysicalAddressPort
();
37
/** Set the service address or hostname for a specific service */
38
void
setPhysicalAddressPort
(QString physicalAddress);
39
/** Returns if the Service is enabled */
40
bool
isEnabled
();
41
/** Set the service enabled */
42
void
setEnabled
(
bool
enabled);
43
/** Returns a ServiceList containing all services */
44
ServiceList
getServices
();
45
/** Set ServiceList to serialise it */
46
void
setServices
(
ServiceList
services);
47
/** Get Service Directories */
48
QString
getHiddenServiceDirectories
();
49
/** Set all services the user wants to start and send it to the
50
* Tor Controller */
51
void
applyServices
(QString
value
, QString *errmsg);
52
/** Unpublish all services */
53
void
unpublishAllServices
(QString *errmsg);
54
55
private
:
56
/** A TorControl object used to talk to Tor. */
57
TorControl
*
_torControl
;
58
};
59
60
#endif
61
Generated on Thu Dec 6 2012 04:33:17 for Vidalia by
1.8.2