1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- /*
- * ctkEventDispatcherLocal.h
- * ctkEventBus
- *
- * Created by Daniele Giunchi on 11/04/10.
- * Copyright 2009 B3C. All rights reserved.
- *
- * See Licence at: http://tiny.cc/QXJ4D
- *
- */
- #ifndef CTKEVENTDISPATCHERLOCAL_H
- #define CTKEVENTDISPATCHERLOCAL_H
- #include "ctkEventDefinitions.h"
- #include "ctkEventDispatcher.h"
- namespace ctkEventBus {
- /**
- Class name: ctkEventDispatcherLocal
- This allows dispatching events coming from local application to attached observers.
- */
- class org_commontk_eventbus_EXPORT ctkEventDispatcherLocal : public ctkEventDispatcher {
- Q_OBJECT
- public:
- /// object constructor.
- ctkEventDispatcherLocal();
- /// Emit event corresponding to the given id locally to the application.
- virtual void notifyEvent(ctkBusEvent &event_dictionary, ctkEventArgumentsList *argList = NULL, ctkGenericReturnArgument *returnArg = NULL) const;
- protected:
- /// Register MAF global events
- /*virtual*/ void initializeGlobalEvents();
- private:
- };
- }
- #endif // CTKEVENTDISPATCHERLOCAL_H
|