Public Types | Public Member Functions | Protected Member Functions

Engine::Event Class Reference

Generic event. More...

#include <B2BITS_Event.h>

Inheritance diagram for Engine::Event:

List of all members.

Public Types

enum  Type {
  EVENT, ERROR_EVENT, NOTIFICATION, WARNING,
  SESSION_ERROR, PARSE_ERROR_IN_SESSION, NEW_INCOMING_CONNECTION, SESSION_NOTIFICATION,
  SESSION_WAS_CREATED, SESSION_WAS_CONNECTED, SESSION_WAS_CLOSED, SESSION_WAS_ESTABLISHED,
  SESSION_WAS_RESTORED, SYNCHRONIZATION_COMPLETE, SESSION_WARNING, LINK_ERROR_WAS_DETECTED,
  LINK_WAS_RESTORED, PERSISTENT_DATA_WERE_FOUND
}
 

Event types.

More...

Public Member Functions

virtual Type getType () const =0
 Returns the event type.
virtual const std::string * what () const =0
 Describes the event.

Protected Member Functions

virtual ~Event ()
 Destructor.

Detailed Description

Generic event.

Definition at line 61 of file B2BITS_Event.h.


Member Enumeration Documentation

Event types.

Enumerator:
EVENT 

Generic event.

ERROR_EVENT 

Generic error.

NOTIFICATION 

Generic error.

WARNING 

Generic warning.

SESSION_ERROR 

Generic Session error.

PARSE_ERROR_IN_SESSION 

Error while parsing.

NEW_INCOMING_CONNECTION 

New incoming connection.

SESSION_NOTIFICATION 

Generic Session notification.

SESSION_WAS_CREATED 

Session was closed event.

SESSION_WAS_CONNECTED 

Session was connected event.

SESSION_WAS_CLOSED 

Session was closed event.

SESSION_WAS_ESTABLISHED 

Session was established event.

SESSION_WAS_RESTORED 

Session was restored after disconnect event.

SYNCHRONIZATION_COMPLETE 

Synchronization complete event.

SESSION_WARNING 

Generic Session warning.

LINK_ERROR_WAS_DETECTED 

Link error was detecetd error.

LINK_WAS_RESTORED 

Link was restored event.

PERSISTENT_DATA_WERE_FOUND 

Persistent data were found.

Definition at line 69 of file B2BITS_Event.h.


Constructor & Destructor Documentation

virtual Engine::Event::~Event (  ) [inline, protected, virtual]

Destructor.

Definition at line 97 of file B2BITS_Event.h.


Member Function Documentation

virtual Type Engine::Event::getType (  ) const [pure virtual]
virtual const std::string* Engine::Event::what (  ) const [pure virtual]

Describes the event.

Implemented in Engine::Notification, Engine::Warning, Engine::Error, and Engine::SessionError.