CrystalSpace

Public API Reference

CS::Network::EventManager::iEventCallback Struct Reference

Callback class to derive from if you want to receive notifications about various happening during operation of the event manager. More...

#include <inetwork/eventmanager.h>

Inheritance diagram for CS::Network::EventManager::iEventCallback:

List of all members.

Public Member Functions

virtual void OnConnect (ConnectionID connection)=0
 Called each time a new remote source is discovered.
virtual void OnDestroy ()=0
 Called upon destruction of the event manager.
virtual void OnDisconnect (ConnectionID connection)=0
 Called each time the connection to a remote source is lost.
virtual void OnUnhandledEvent (iEvent *e)=0
 Called each time an event is received from a peer that wasn't subscribed to for remote sources.

Detailed Description

Callback class to derive from if you want to receive notifications about various happening during operation of the event manager.

Definition at line 47 of file eventmanager.h.


Member Function Documentation

virtual void CS::Network::EventManager::iEventCallback::OnConnect ( ConnectionID  connection  )  [pure virtual]

Called each time a new remote source is discovered.

Parameters:
connection The ConnectionID of the new remote source.
virtual void CS::Network::EventManager::iEventCallback::OnDestroy (  )  [pure virtual]

Called upon destruction of the event manager.

virtual void CS::Network::EventManager::iEventCallback::OnDisconnect ( ConnectionID  connection  )  [pure virtual]

Called each time the connection to a remote source is lost.

Parameters:
connection The ConnectionID of remote source that was lost.
virtual void CS::Network::EventManager::iEventCallback::OnUnhandledEvent ( iEvent e  )  [pure virtual]

Called each time an event is received from a peer that wasn't subscribed to for remote sources.

Parameters:
event The event that was received with attribute "peer" set to the ConnectionID of the remote source.

The documentation for this struct was generated from the following file:

Generated for Crystal Space 2.1 by doxygen 1.6.1