OrConnEvent Class Reference

#include <orconnevent.h>

List of all members.

Public Types

enum  Status {
  Unknown, New, Launched, Connected,
  Failed, Closed
}

Public Member Functions

 OrConnEvent (Status status, QString server)
Status status ()
QString server ()

Static Public Member Functions

static Status toStatus (QString status)

Private Attributes

Status _status
QString _server

Detailed Description

Definition at line 23 of file orconnevent.h.


Member Enumeration Documentation

OR connection status

Enumerator:
Unknown 

Unknown OR status.

New 

Incoming connection.

Launched 

Outgoing connection.

Connected 

TLS handshake finished.

Failed 

Connection closed before handshake completed.

Closed 

Connection closed that had previously handshaked.

Definition at line 27 of file orconnevent.h.


Constructor & Destructor Documentation

OrConnEvent::OrConnEvent ( Status  status,
QString  server 
)

Contructor

Constructor

Parameters:
status OR connection status.
server OR server.

Definition at line 25 of file orconnevent.cpp.

References _server, and _status.


Member Function Documentation

QString OrConnEvent::server (  ) 

Returns the OR server with which this connection is associated.

Definition at line 63 of file orconnevent.cpp.

References _server.

OrConnEvent::Status OrConnEvent::status (  ) 

Returns the status for this OR connection.

Definition at line 56 of file orconnevent.cpp.

References _status.

OrConnEvent::Status OrConnEvent::toStatus ( QString  status  )  [static]

Converts a string description of a connection's status to an enum value

Definition at line 34 of file orconnevent.cpp.

References Closed, Connected, Failed, Launched, New, and Unknown.

Referenced by TorEvents::handleOrConnStatus().


Member Data Documentation

QString OrConnEvent::_server [private]

OR server

Definition at line 51 of file orconnevent.h.

Referenced by OrConnEvent(), and server().

OR connection status associated with this event.

Definition at line 49 of file orconnevent.h.

Referenced by OrConnEvent(), and status().


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

Generated on 28 Dec 2009 for Vidalia by  doxygen 1.6.1