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

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

Inheritance diagram for KeyEvent:
Collaboration diagram for KeyEvent:

Public Types

enum  ExchangeType { Init, Finish }

Public Member Functions

 KeyEvent (EventManager::EventType type, Network *network, const QString &prefix, const QString &target, ExchangeType exchangeType, const QByteArray &key, const QDateTime &timestamp=QDateTime())
ExchangeType exchangeType () const
void setExchangeType (ExchangeType type)
QString target () const
void setTarget (const QString &target)
QByteArray key () const
void setKey (const QByteArray &key)
QString prefix () const
void setPrefix (const QString &prefix)
QString nick () const
QStringList params () const
void setParams (const QStringList &params)
QVariantMap toVariantMap () const
NetworkId networkId () const
Networknetwork () const
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

Static Public Member Functions

static Eventcreate (EventManager::EventType type, QVariantMap &map, Network *network)
static EventfromVariantMap (QVariantMap &map, Network *network)

Protected Member Functions

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

Private Attributes

ExchangeType _exchangeType
QString _target
QByteArray _key

Detailed Description

Definition at line 26 of file keyevent.h.

Member Enumeration Documentation

Enumerator:
Init 
Finish 

Definition at line 29 of file keyevent.h.

Constructor & Destructor Documentation

KeyEvent ( EventManager::EventType  type,
Network network,
const QString &  prefix,
const QString &  target,
ExchangeType  exchangeType,
const QByteArray &  key,
const QDateTime &  timestamp = QDateTime() 
)
inlineexplicit

Definition at line 34 of file keyevent.h.

References Event::setTimestamp(), and Event::timestamp().

Referenced by create().

KeyEvent ( EventManager::EventType  type,
QVariantMap &  map,
Network network 
)
explicitprotected

Definition at line 32 of file keyevent.cpp.

References _exchangeType, _key, and _target.

Member Function Documentation

ExchangeType exchangeType ( ) const
inline

Definition at line 46 of file keyevent.h.

References _exchangeType.

Referenced by debugInfo(), and toVariantMap().

void setExchangeType ( ExchangeType  type)
inline

Definition at line 47 of file keyevent.h.

References _exchangeType, and Event::type().

QString target ( ) const
inline

Definition at line 49 of file keyevent.h.

References _target.

Referenced by debugInfo(), setTarget(), and toVariantMap().

void setTarget ( const QString &  target)
inline

Definition at line 50 of file keyevent.h.

References _target, and target().

QByteArray key ( ) const
inline

Definition at line 52 of file keyevent.h.

References _key.

Referenced by debugInfo(), setKey(), and toVariantMap().

void setKey ( const QByteArray &  key)
inline

Definition at line 53 of file keyevent.h.

References _key, and key().

Event * create ( EventManager::EventType  type,
QVariantMap &  map,
Network network 
)
static

Reimplemented from IrcEvent.

Definition at line 23 of file keyevent.cpp.

References KeyEvent().

void toVariantMap ( QVariantMap &  map) const
protectedvirtual

Reimplemented from IrcEvent.

Definition at line 41 of file keyevent.cpp.

References exchangeType(), key(), target(), and Event::toVariantMap().

virtual QString className ( ) const
inlineprotectedvirtual

Reimplemented from IrcEvent.

Definition at line 61 of file keyevent.h.

virtual void debugInfo ( QDebug &  dbg) const
inlineprotectedvirtual

Reimplemented from IrcEvent.

Definition at line 62 of file keyevent.h.

References exchangeType(), Init, key(), IrcEvent::prefix(), and target().

void setPrefix ( const QString &  prefix)
inlineinherited

Definition at line 37 of file ircevent.h.

References IrcEvent::_prefix, and IrcEvent::prefix().

QString nick ( ) const
inlineinherited
QStringList params ( ) const
inlineinherited

Definition at line 41 of file ircevent.h.

References IrcEvent::_params.

Referenced by CoreSessionEventProcessor::checkParamCount(), EventStringifier::checkParamCount(), IrcEvent::debugInfo(), IrcEventNumeric::debugInfo(), CoreSessionEventProcessor::lateProcessIrcEventKick(), CoreSessionEventProcessor::lateProcessIrcEventNick(), CoreSessionEventProcessor::lateProcessIrcEventPart(), CoreSessionEventProcessor::processIrcEvent005(), EventStringifier::processIrcEvent005(), EventStringifier::processIrcEvent301(), CoreSessionEventProcessor::processIrcEvent301(), CoreSessionEventProcessor::processIrcEvent307(), CoreSessionEventProcessor::processIrcEvent310(), EventStringifier::processIrcEvent311(), CoreSessionEventProcessor::processIrcEvent311(), EventStringifier::processIrcEvent312(), CoreSessionEventProcessor::processIrcEvent312(), CoreSessionEventProcessor::processIrcEvent313(), EventStringifier::processIrcEvent314(), EventStringifier::processIrcEvent315(), CoreSessionEventProcessor::processIrcEvent315(), EventStringifier::processIrcEvent317(), CoreSessionEventProcessor::processIrcEvent317(), EventStringifier::processIrcEvent319(), EventStringifier::processIrcEvent322(), CoreSessionEventProcessor::processIrcEvent322(), EventStringifier::processIrcEvent328(), EventStringifier::processIrcEvent329(), EventStringifier::processIrcEvent330(), CoreSessionEventProcessor::processIrcEvent331(), EventStringifier::processIrcEvent331(), CoreSessionEventProcessor::processIrcEvent332(), EventStringifier::processIrcEvent332(), EventStringifier::processIrcEvent333(), EventStringifier::processIrcEvent341(), CoreSessionEventProcessor::processIrcEvent352(), EventStringifier::processIrcEvent352(), CoreSessionEventProcessor::processIrcEvent353(), CoreSessionEventProcessor::processIrcEvent432(), EventStringifier::processIrcEvent432(), CoreSessionEventProcessor::processIrcEvent433(), EventStringifier::processIrcEvent433(), CoreSessionEventProcessor::processIrcEvent437(), EventStringifier::processIrcEvent437(), CoreSessionEventProcessor::processIrcEventAuthenticate(), CoreSessionEventProcessor::processIrcEventCap(), EventStringifier::processIrcEventInvite(), CoreSessionEventProcessor::processIrcEventJoin(), EventStringifier::processIrcEventJoin(), EventStringifier::processIrcEventKick(), CoreSessionEventProcessor::processIrcEventMode(), EventStringifier::processIrcEventMode(), EventStringifier::processIrcEventNick(), EventStringifier::processIrcEventNumeric(), EventStringifier::processIrcEventPart(), CoreSessionEventProcessor::processIrcEventPing(), CoreSessionEventProcessor::processIrcEventPong(), EventStringifier::processIrcEventPong(), CoreSessionEventProcessor::processIrcEventQuit(), EventStringifier::processIrcEventQuit(), CoreSessionEventProcessor::processIrcEventTopic(), EventStringifier::processIrcEventTopic(), EventStringifier::processIrcEventWallops(), IrcEvent::setParams(), IrcEventRawMessage::target(), and IrcEvent::toVariantMap().

void setParams ( const QStringList &  params)
inlineinherited

Definition at line 42 of file ircevent.h.

References IrcEvent::_params, and IrcEvent::params().

Referenced by IrcEventRawMessage::setTarget().

Network* network ( ) const
inlineinherited

Definition at line 39 of file networkevent.h.

References NetworkEvent::_network.

Referenced by NetworkItem::attachNetwork(), MessageEvent::bufferTypeByTarget(), CtcpParser::coreNetwork(), CoreSessionEventProcessor::coreNetwork(), EventStringifier::createMessageEvent(), CtcpParser::displayMsg(), CoreSessionEventProcessor::handleCtcpDcc(), CoreSessionEventProcessor::lateProcessIrcEventKick(), CoreSessionEventProcessor::lateProcessIrcEventNick(), CoreSessionEventProcessor::lateProcessIrcEventPart(), CoreSessionEventProcessor::lateProcessIrcEventQuit(), MessageEvent::MessageEvent(), NetworkModel::networkByIndex(), NetworkEvent::networkId(), CtcpParser::parse(), CtcpParser::parseSimple(), CtcpParser::parseStandard(), EventStringifier::processCtcpEvent(), CoreSessionEventProcessor::processIrcEvent001(), CoreSessionEventProcessor::processIrcEvent005(), EventStringifier::processIrcEvent301(), CoreSessionEventProcessor::processIrcEvent301(), CoreSessionEventProcessor::processIrcEvent305(), EventStringifier::processIrcEvent306(), CoreSessionEventProcessor::processIrcEvent306(), CoreSessionEventProcessor::processIrcEvent307(), CoreSessionEventProcessor::processIrcEvent310(), EventStringifier::processIrcEvent311(), CoreSessionEventProcessor::processIrcEvent311(), CoreSessionEventProcessor::processIrcEvent312(), CoreSessionEventProcessor::processIrcEvent313(), CoreSessionEventProcessor::processIrcEvent317(), CoreSessionEventProcessor::processIrcEvent331(), CoreSessionEventProcessor::processIrcEvent332(), CoreSessionEventProcessor::processIrcEvent352(), CoreSessionEventProcessor::processIrcEvent353(), CoreSessionEventProcessor::processIrcEvent433(), CoreSessionEventProcessor::processIrcEvent437(), CoreSessionEventProcessor::processIrcEventInvite(), CoreSessionEventProcessor::processIrcEventJoin(), EventStringifier::processIrcEventKick(), CoreSessionEventProcessor::processIrcEventMode(), EventStringifier::processIrcEventMode(), EventStringifier::processIrcEventNick(), CoreSessionEventProcessor::processIrcEventNumeric(), CoreSessionEventProcessor::processIrcEventPong(), CoreSessionEventProcessor::processIrcEventQuit(), EventStringifier::processIrcEventQuit(), CoreSessionEventProcessor::processIrcEventTopic(), IrcParser::processNetworkIncoming(), QueryBufferItem::QueryBufferItem(), QueryBufferItem::setBufferName(), CoreSessionEventProcessor::tryNextNick(), and NetworkModel::updateBufferActivity().

void setFlags ( EventManager::EventFlags  flags)
inlineinherited

Definition at line 40 of file event.h.

References Event::_flags, and Event::flags().

Referenced by Event::Event().

EventManager::EventFlags flags ( ) const
inlineinherited
bool isValid ( ) const
inlineinherited

Definition at line 44 of file event.h.

References Event::_valid.

bool isStopped ( )
inlineinherited

Definition at line 46 of file event.h.

References Event::_flags, and EventManager::Stopped.

void setTimestamp ( const QDateTime &  time)
inlineinherited
Event * fromVariantMap ( QVariantMap &  map,
Network network 
)
staticinherited
void setValid ( bool  valid)
inlineprotectedinherited

Definition at line 68 of file event.h.

References Event::_valid.

Referenced by Event::Event().

Member Data Documentation

ExchangeType _exchangeType
private

Definition at line 73 of file keyevent.h.

Referenced by exchangeType(), KeyEvent(), and setExchangeType().

QString _target
private

Definition at line 74 of file keyevent.h.

Referenced by KeyEvent(), setTarget(), and target().

QByteArray _key
private

Definition at line 75 of file keyevent.h.

Referenced by key(), KeyEvent(), and setKey().


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