123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- #ifndef _ARGUS_EVENT_PROVIDER_H
- #define _ARGUS_EVENT_PROVIDER_H
- namespace Argus
- {
- DEFINE_UUID(InterfaceID, IID_EVENT_PROVIDER, 523ed330,25dc,11e5,867f,08,00,20,0c,9a,66);
- class IEventProvider : public Interface
- {
- public:
- static const InterfaceID& id() { return IID_EVENT_PROVIDER; }
-
- virtual Status getAvailableEventTypes(std::vector<EventType>* types) const = 0;
-
- virtual EventQueue* createEventQueue(const std::vector<EventType>& eventTypes,
- Status* status = NULL) = 0;
-
- virtual Status waitForEvents(const std::vector<EventQueue*>& queues,
- uint64_t timeout = TIMEOUT_INFINITE) = 0;
-
- virtual Status waitForEvents(EventQueue* queue,
- uint64_t timeout = TIMEOUT_INFINITE) = 0;
- protected:
- ~IEventProvider() {}
- };
- }
- #endif
|