Vidalia
0.3.1
Main Page
Namespaces
Classes
Files
File List
File Members
src
torcontrol
TorSignal.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 TorSignal.h
13
** \brief Sends a signal to Tor's control interface
14
*/
15
16
#ifndef _TORSIGNAL_H
17
#define _TORSGINAL_H
18
19
#include <QString>
20
21
22
class
TorSignal
23
{
24
public
:
25
/** Signals that can be sent by the controller */
26
enum
Signal
{
27
Reload
,
/**< SIGHUP: Reloads config items and refetch directory */
28
Shutdown
,
/**< SIGINT: Controlled shutdown */
29
Dump
,
/**< SIGUSR1: Log information about current circuits */
30
Debug
,
/**< SIGUSR2: Switch all open logs to loglevel debug */
31
Halt
,
/**< SIGTERM: Immediate shutdown */
32
NewNym
/**< NEWNYM: Switch to all new clean circuits */
33
};
34
35
/** Returns a string representation of a signal that Tor understands. */
36
static
QString
toString
(
Signal
signal
);
37
};
38
39
#endif
40
TorSignal::NewNym
Definition:
TorSignal.h:32
TorSignal::Reload
Definition:
TorSignal.h:27
TorSignal
Definition:
TorSignal.h:22
TorSignal::Dump
Definition:
TorSignal.h:29
signal
stop errmsg signal(TorSignal::Signal sig)
TorSignal::Halt
Definition:
TorSignal.h:31
TorSignal::Shutdown
Definition:
TorSignal.h:28
TorSignal::Signal
Signal
Definition:
TorSignal.h:26
TorSignal::toString
static QString toString(Signal signal)
Definition:
TorSignal.cpp:21
TorSignal::Debug
Definition:
TorSignal.h:30
Generated on Tue Oct 27 2015 15:36:04 for Vidalia by
1.8.8