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

#include </tmp/quassel/src/common/event.h>

Inheritance diagram for Event:

Public Member Functions

 Event (EventManager::EventType type=EventManager::Invalid)
virtual ~Event ()
EventManager::EventType type () const
void setFlag (EventManager::EventFlag flag)
void setFlags (EventManager::EventFlags flags)
bool testFlag (EventManager::EventFlag flag)
EventManager::EventFlags flags () const
bool isValid () const
void stop ()
bool isStopped ()
void setTimestamp (const QDateTime &time)
QDateTime timestamp () const
QVariantMap toVariantMap () const

Static Public Member Functions

static EventfromVariantMap (QVariantMap &map, Network *network)

Protected Member Functions

virtual QString className () const
virtual void debugInfo (QDebug &dbg) const
 Event (EventManager::EventType type, QVariantMap &map)
virtual void toVariantMap (QVariantMap &map) const
void setValid (bool valid)

Private Attributes

EventManager::EventType _type
EventManager::EventFlags _flags
QDateTime _timestamp
bool _valid

Friends

QDebug operator<< (QDebug dbg, Event *e)

Detailed Description

Definition at line 31 of file event.h.

Constructor & Destructor Documentation

Event ( EventManager::EventType  type = EventManager::Invalid)
explicit

Definition at line 26 of file event.cpp.

virtual ~Event ( )
inlinevirtual

Definition at line 35 of file event.h.

Event ( EventManager::EventType  type,
QVariantMap &  map 
)
explicitprotected

Definition at line 33 of file event.cpp.

References setFlags(), setTimestamp(), and setValid().

Member Function Documentation

void setFlags ( EventManager::EventFlags  flags)
inline

Definition at line 40 of file event.h.

References _flags, and flags().

Referenced by Event().

EventManager::EventFlags flags ( ) const
inline

Definition at line 42 of file event.h.

References _flags.

Referenced by EventStringifier::displayMsg(), operator<<(), setFlags(), MessageEvent::setMsgFlags(), and toVariantMap().

bool isValid ( ) const
inline

Definition at line 44 of file event.h.

References _valid.

bool isStopped ( )
inline

Definition at line 46 of file event.h.

References _flags, and EventManager::Stopped.

Event * fromVariantMap ( QVariantMap &  map,
Network network 
)
static
virtual QString className ( ) const
inlineprotectedvirtual
virtual void debugInfo ( QDebug &  dbg) const
inlineprotectedvirtual
void toVariantMap ( QVariantMap &  map) const
protectedvirtual
void setValid ( bool  valid)
inlineprotected

Definition at line 68 of file event.h.

References _valid.

Referenced by Event().

Friends And Related Function Documentation

QDebug operator<< ( QDebug  dbg,
Event e 
)
friend

Definition at line 116 of file event.cpp.

Member Data Documentation

EventManager::EventType _type
private

Definition at line 71 of file event.h.

Referenced by type().

EventManager::EventFlags _flags
private

Definition at line 72 of file event.h.

Referenced by flags(), isStopped(), setFlag(), setFlags(), and testFlag().

QDateTime _timestamp
private

Definition at line 73 of file event.h.

Referenced by setTimestamp(), and timestamp().

bool _valid
private

Definition at line 75 of file event.h.

Referenced by isValid(), and setValid().


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