Quassel IRC  Pre-Release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
CoreEventManager Class Reference

#include </tmp/quassel/src/core/coreeventmanager.h>

Inheritance diagram for CoreEventManager:
Collaboration diagram for CoreEventManager:

Public Slots

void registerObject (QObject *object, Priority priority=NormalPriority, const QString &methodPrefix="process", const QString &filterPrefix="filter")
void registerEventHandler (EventType event, QObject *object, const char *slot, Priority priority=NormalPriority, bool isFilter=false)
void registerEventHandler (QList< EventType > events, QObject *object, const char *slot, Priority priority=NormalPriority, bool isFilter=false)
void registerEventFilter (EventType event, QObject *object, const char *slot)
void registerEventFilter (QList< EventType > events, QObject *object, const char *slot)
void postEvent (Event *event)
 Send an event to the registered handlers.

Public Member Functions

 CoreEventManager (CoreSession *session)

Protected Member Functions

NetworknetworkById (NetworkId id) const
virtual void customEvent (QEvent *event)

Private Attributes

CoreSession_coreSession

Detailed Description

Definition at line 28 of file coreeventmanager.h.

Constructor & Destructor Documentation

CoreEventManager ( CoreSession session)
inline

Definition at line 33 of file coreeventmanager.h.

Member Function Documentation

Network* networkById ( NetworkId  id) const
inlineprotectedvirtual

Implements EventManager.

Definition at line 39 of file coreeventmanager.h.

References _coreSession, and CoreSession::network().

void registerObject ( QObject *  object,
Priority  priority = NormalPriority,
const QString &  methodPrefix = "process",
const QString &  filterPrefix = "filter" 
)
slotinherited
void registerEventHandler ( EventType  event,
QObject *  object,
const char *  slot,
Priority  priority = NormalPriority,
bool  isFilter = false 
)
slotinherited

Definition at line 185 of file eventmanager.cpp.

Referenced by EventManager::registerEventFilter().

void registerEventHandler ( QList< EventType >  events,
QObject *  object,
const char *  slot,
Priority  priority = NormalPriority,
bool  isFilter = false 
)
slotinherited
void registerEventFilter ( EventType  event,
QObject *  object,
const char *  slot 
)
slotinherited
void registerEventFilter ( QList< EventType >  events,
QObject *  object,
const char *  slot 
)
slotinherited
void postEvent ( Event event)
slotinherited

Send an event to the registered handlers.

The EventManager takes ownership of the event and will delete it once it's processed.

Parameters
eventThe event to be dispatched

Definition at line 212 of file eventmanager.cpp.

References EventManager::_eventQueue, and EventManager::processEvent().

void customEvent ( QEvent *  event)
protectedvirtualinherited

Definition at line 228 of file eventmanager.cpp.

References QueuedQuasselEvent::event, and EventManager::processEvent().

Member Data Documentation

CoreSession* _coreSession
private

Definition at line 42 of file coreeventmanager.h.

Referenced by networkById().


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