18 #ifndef EQ_QT_MESSAGEPUMP_H
19 #define EQ_QT_MESSAGEPUMP_H
21 #include <eq/messagePump.h>
24 #include <unordered_map>
26 #include <QSocketNotifier>
45 void dispatchOne(
const uint32_t timeout = LB_TIMEOUT_INDEFINITE )
override;
46 void register_( deflect::Proxy* proxy )
override;
47 void deregister( deflect::Proxy* proxy )
override;
50 lunchbox::a_int32_t _wakeup;
51 std::unordered_map< deflect::Proxy*,
52 std::unique_ptr< QSocketNotifier > > _notifiers;
53 std::unordered_map< deflect::Proxy*,
54 QMetaObject::Connection > _connections;
55 std::unique_ptr< QTimer > _timer;
59 #endif // EQ_QT_MESSAGEPUMP_H
void postWakeup() override
Unblock dispatchOne().
void register_(deflect::Proxy *proxy) override
Register a new Deflect connection for event dispatch.
void deregister(deflect::Proxy *proxy) override
Deregister a Deflect connection from event dispatch.
void dispatchAll() override
Dispatch all pending system events, does not block.
A message pump receiving and dispatching Qt events.
An interface to process system messages or events.
The Equalizer client library.
void dispatchOne(const uint32_t timeout=LB_TIMEOUT_INDEFINITE) override
Dispatch at least one pending system event, blocks potentially.
~MessagePump() final
Destruct this message pump.
MessagePump()
Construct a new Qt message pump.