class XEventBroker

Event listener registration

Inheritance:

XEventBroker


Public Methods

[more]virtual ~XEventBroker()
Destructs the object's instance
[more]virtual void AddListener(unsigned long __Listener, unsigned __Class)
Registers an event listener for the specified event class.
[more]virtual void DelListener(unsigned long __Listener, unsigned __Class)
Removes the event listener for the specified event class.
[more]virtual void DelListener(unsigned long __Listener)
Removes the specified event listener for all event classes.
[more]virtual void HandleEvent(XEvent *__Event)
Handles an incoming event and distributes it to all registered listeners.
[more]virtual bool SendMessage(unsigned long __Receiver, unsigned long __Class, long __Message)
Sends a "long" message.
[more]virtual bool SendMessage(unsigned long __Receiver, unsigned long __Class, void *__Body, unsigned long __Size)
Sends a "void *" message.

Protected Fields

[more]Map __map
map for binding listeners to events


Documentation

Event listener registration
ovirtual ~XEventBroker()
Destructs the object's instance

ovirtual void AddListener(unsigned long __Listener, unsigned __Class)
Registers an event listener for the specified event class.
Parameters:
__Listener - object id of listener
__Class - event class

ovirtual void DelListener(unsigned long __Listener, unsigned __Class)
Removes the event listener for the specified event class.
Parameters:
__Listener - object id of listener
__Class - event class

ovirtual void DelListener(unsigned long __Listener)
Removes the specified event listener for all event classes.
Parameters:
__Listener - object id of listener

ovirtual void HandleEvent(XEvent *__Event)
Handles an incoming event and distributes it to all registered listeners.

ovirtual bool SendMessage(unsigned long __Receiver, unsigned long __Class, long __Message)
Sends a "long" message.
Returns:
false if receiver does not exist
Parameters:
__Receiver - destination object id
__Class - message class
__Message - the message itself

ovirtual bool SendMessage(unsigned long __Receiver, unsigned long __Class, void *__Body, unsigned long __Size)
Sends a "void *" message.
Returns:
false if receiver does not exist
Parameters:
__Receiver - destination object id
__Class - message class
__Body - the message itself
__Size - size of __Body pointer

oMap __map
map for binding listeners to events


Direct child classes:
XObject

Go to the hierarchy of classes.


Copyright ©1998 Bernd Kalbfuss
Last update on October 27, 2001

This page was generated with the help of DOC++.