#include <cxxtools/eventsink.h>

Inheritance diagram for cxxtools::EventSink:
cxxtools::NonCopyable cxxtools::EventLoopBase cxxtools::EventLoop

Public Member Functions

 EventSink ()
virtual ~EventSink ()
void queueEvent (const Event &event)
 Puts a event in the queue but does not wake the loop.
void commitEvent (const Event &event)
 Puts a event in the queue and wakes the loop so that the event is processed.
void queuePriorityEvent (const Event &event)
 Puts a priority event in the queue and wakes the loop so that the event is processed.
void commitPriorityEvent (const Event &event)
 Puts a priority event in the queue and wakes the loop so that the event is processed.

Protected Member Functions

virtual void onQueueEvent (const Event &event, bool priority)=0
virtual void onCommitEvent (const Event &event, bool priority)=0
- Protected Member Functions inherited from cxxtools::NonCopyable
 NonCopyable ()

Friends

class EventSource

Constructor & Destructor Documentation

cxxtools::EventSink::EventSink ( )
virtual cxxtools::EventSink::~EventSink ( )
virtual

Member Function Documentation

void cxxtools::EventSink::commitEvent ( const Event event)

Puts a event in the queue and wakes the loop so that the event is processed.

void cxxtools::EventSink::commitPriorityEvent ( const Event event)

Puts a priority event in the queue and wakes the loop so that the event is processed.

Priority events are processed before any non priority event.

virtual void cxxtools::EventSink::onCommitEvent ( const Event event,
bool  priority 
)
protectedpure virtual

Implemented in cxxtools::EventLoop.

virtual void cxxtools::EventSink::onQueueEvent ( const Event event,
bool  priority 
)
protectedpure virtual

Implemented in cxxtools::EventLoop.

void cxxtools::EventSink::queueEvent ( const Event event)

Puts a event in the queue but does not wake the loop.

void cxxtools::EventSink::queuePriorityEvent ( const Event event)

Puts a priority event in the queue and wakes the loop so that the event is processed.

Priority events are processed before any non priority event.

Friends And Related Function Documentation

friend class EventSource
friend

The documentation for this class was generated from the following file: