#include <serverstatusevent.h>
Public Types | |
enum | Status { UnrecognizedStatus, ExternalAddressChanged, NameserverStatusChanged, NameserversAllDown, DnsHijacked, DnsUseless, AcceptedServerDescriptor, RejectedServerDescriptor, GoodServerDescriptor, CheckingReachability, ReachabilityFailed, ReachabilitySucceeded } |
Public Member Functions | |
ServerStatusEvent (tc::Severity severity, Status status) | |
Status | status () const |
Static Public Member Functions | |
static Status | statusFromString (const QString &str) |
Private Attributes | |
Status | _status |
Definition at line 23 of file serverstatusevent.h.
< Tor server status event types.
Definition at line 27 of file serverstatusevent.h.
ServerStatusEvent::ServerStatusEvent | ( | tc::Severity | severity, | |
Status | status | |||
) | [inline] |
Constructor
Definition at line 43 of file serverstatusevent.h.
Status ServerStatusEvent::status | ( | ) | const [inline] |
Returns the server status indicated by this event.
Definition at line 48 of file serverstatusevent.h.
References _status.
ServerStatusEvent::Status ServerStatusEvent::statusFromString | ( | const QString & | str | ) | [static] |
Returns a ServerStatusEvent::Status enum value for the server status represented by str.
Definition at line 23 of file serverstatusevent.cpp.
References AcceptedServerDescriptor, CheckingReachability, DnsHijacked, DnsUseless, ExternalAddressChanged, GoodServerDescriptor, NameserversAllDown, NameserverStatusChanged, ReachabilityFailed, ReachabilitySucceeded, RejectedServerDescriptor, and UnrecognizedStatus.
Referenced by TorEvents::dispatchServerStatusEvent().
Status ServerStatusEvent::_status [private] |
Tor Server status indicated by this event.
Definition at line 54 of file serverstatusevent.h.
Referenced by status().