Public Types | |
typedef CosEventChannelAdmin::ProxyPushSupplier | Channel |
typedef Gaia::Events::EventManager::ChannelAlreadyExists | ChannelAlreadyExists |
typedef Gaia::Events::EventManager::ChannelNotFound | ChannelNotFound |
typedef Gaia::Events::EventManager::TypeAlreadyExists | TypeAlreadyExists |
typedef CosEventComm::Disconnected | ChannelDisconnected |
typedef CosEventChannelAdmin::AlreadyConnected | AlreadyConnected |
Static Public Methods | |
void | refresh () |
Create a new handle to the event service using the current space. | |
void | sendEvent (const char *type, const char *name, const char *id, const GaiaAny &data, const char *space=NULL) |
Sends an event to the specified event channel. | |
GaiaES::Channel * | addListener (const char *type, const char *name, GaiaES::Listener *listener, const char *space=NULL) |
Register a consumer of events. | |
void | removeListener (GaiaES::Listener *listener) |
Unregister a consumer of events. | |
void | removeListener (GaiaES::Channel *channel) |
Unregister a consumer of events. | |
void | createType (const char *type, const char *space=NULL) |
Creates a new Event type if it does not already exists. | |
void | createChannel (const char *type, const char *name, const char *space=NULL) |
Creates a new event channel. | |
void | destroyChannel (const char *type, const char *name, const char *space=NULL) |
Destroys a particular event channel. | |
Friends | |
class | Listener |
This class encapsulates the CORBA related functionalities of a sender or consumer of events. It exports methods for creating and deleting event channels, creating event types and sending events on a particular channel.
It also exports a defualt consumer class from which applications should inherit to receive events. The method registerConsumer can be used to register as a consumer to a particuler channel and unregisterConsumer to unregister from it.
|
Register a consumer of events. The consumer's receiveEvent method will be called when a new event is generated.
|
|
Creates a new event channel.
|
|
Creates a new Event type if it does not already exists.
|
|
Destroys a particular event channel.
|
|
Create a new handle to the event service using the current space.
|
|
Unregister a consumer of events.
|
|
Unregister a consumer of events.
|
|
Sends an event to the specified event channel.
|