a2dDistributedEventReceiver Class Reference
[Event Managerevents in the wxDocview library]

class used in a2dEventDistributer More...

#include <comevt.h>

Inheritance diagram for a2dDistributedEventReceiver:

Inheritance graph
[legend]
Collaboration diagram for a2dDistributedEventReceiver:

Collaboration graph
[legend]

List of all members.

Public Types

enum  a2dReceiverHandlerType { a2dReceiverwxEvtHandler, a2dReceivera2dObject }

Public Member Functions

 a2dDistributedEventReceiver (wxEvtHandler *handler)
 constructor
 a2dDistributedEventReceiver (a2dObject *handler)
void AddWantedEventType (wxEventType type)
void RemoveWantedEventType (wxEventType type)
void AddNotWantedEventType (wxEventType type)
void RemoveNotWantedEventType (wxEventType type)
bool WantsType (wxEventType type)

Public Attributes

wxObject * m_handler
 the wrapped handler
a2dReceiverHandlerType m_type
bool m_valid
 true when not unregistered

Protected Member Functions

virtual a2dObjectClone (CloneOptions options) const
 create an exact copy of this property
void DoSave (wxObject *parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts, a2dObjectList *towrite)
 Save settings.
void DoLoad (wxObject *parent, a2dIOHandlerXmlSerIn &parser, a2dXmlSer_flag xmlparts)
 Load settings.

Protected Attributes

a2dlist< wxEventType > m_eventTypesWanted
a2dlist< wxEventType > m_eventTypesNotWanted


Detailed Description

class used in a2dEventDistributer

It is possible that in the a2dEventDistributer an event wxEvtHandler is Unregistered when iterating through all registered handlers. This class prevents going to already unregistered handlers while iterating in a2dEventDistributer::ProcessEvent(). At the end of the iteration all unregistered are removed. So in fact delayed deletion.

Definition at line 1541 of file comevt.h.


The documentation for this class was generated from the following file:
a2dDistributedEventReceiver Class Reference -- Tue Aug 31 18:22:33 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation