Vidalia 0.3.1
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
23{
24public:
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
stop errmsg signal(TorSignal::Signal sig)
@ Shutdown
Definition: TorSignal.h:28
static QString toString(Signal signal)
Definition: TorSignal.cpp:21