GeneralStatusEvent Class Reference

#include <generalstatusevent.h>

Inheritance diagram for GeneralStatusEvent:

StatusEvent DangerousVersionEvent UnrecognizedGeneralStatusEvent

List of all members.

Public Types

enum  Status {
  UnrecognizedStatus, ClockJumped, DangerousTorVersion, TooManyConnections,
  TorBug, ClockSkew, BadLibevent, DirAllUnreachable
}

Public Member Functions

 GeneralStatusEvent (tc::Severity severity, Status status)
Status status () const

Static Public Member Functions

static Status statusFromString (const QString &str)

Private Attributes

Status _status


Detailed Description

Definition at line 23 of file generalstatusevent.h.


Member Enumeration Documentation

< General Tor status event types.

Enumerator:
UnrecognizedStatus 
ClockJumped 
DangerousTorVersion 
TooManyConnections 
TorBug 
ClockSkew 
BadLibevent 
DirAllUnreachable 

Definition at line 27 of file generalstatusevent.h.


Constructor & Destructor Documentation

GeneralStatusEvent::GeneralStatusEvent ( tc::Severity  severity,
Status  status 
) [inline]

Constructor

Definition at line 39 of file generalstatusevent.h.


Member Function Documentation

Status GeneralStatusEvent::status (  )  const [inline]

Returns the general Tor status indicated by this event.

Definition at line 44 of file generalstatusevent.h.

References _status.

Referenced by MainWindow::customEvent().

GeneralStatusEvent::Status GeneralStatusEvent::statusFromString ( const QString &  str  )  [static]

Returns a GeneralStatusEvent::Status enum value for the status value represented by str.

Definition at line 23 of file generalstatusevent.cpp.

References BadLibevent, ClockJumped, ClockSkew, DangerousTorVersion, DirAllUnreachable, TooManyConnections, TorBug, and UnrecognizedStatus.

Referenced by TorEvents::dispatchGeneralStatusEvent().


Member Data Documentation

General Tor status value indicated by this event.

Definition at line 50 of file generalstatusevent.h.

Referenced by status().


The documentation for this class was generated from the following files:

Generated on Wed Nov 26 21:04:21 2008 for Vidalia by  doxygen 1.5.7.1