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

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

Inheritance diagram for IrcEvent:
Collaboration diagram for IrcEvent:

Public Member Functions

 IrcEvent (EventManager::EventType type, Network *network, const QString &prefix, const QStringList &params=QStringList())
QString prefix () const
void setPrefix (const QString &prefix)
QString nick () const
QStringList params () const
void setParams (const QStringList &params)
NetworkId networkId () const
Networknetwork () const
QVariantMap toVariantMap () 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

 IrcEvent (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

QString _prefix
QStringList _params

Detailed Description

Definition at line 27 of file ircevent.h.

Constructor & Destructor Documentation

IrcEvent ( EventManager::EventType  type,
Network network,
const QString &  prefix,
const QStringList &  params = QStringList() 
)
inlineexplicit

Definition at line 30 of file ircevent.h.

Referenced by create().

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

Definition at line 42 of file ircevent.cpp.

References _params, and _prefix.

Member Function Documentation

void setPrefix ( const QString &  prefix)
inline

Definition at line 37 of file ircevent.h.

References _prefix, and prefix().

QStringList params ( ) const
inline

Definition at line 41 of file ircevent.h.

References _params.

Referenced by CoreSessionEventProcessor::checkParamCount(), EventStringifier::checkParamCount(), 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(), setParams(), IrcEventRawMessage::target(), and toVariantMap().

void setParams ( const QStringList &  params)
inline

Definition at line 42 of file ircevent.h.

References _params, and params().

Referenced by IrcEventRawMessage::setTarget().

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

Reimplemented from NetworkEvent.

Reimplemented in CtcpEvent, and KeyEvent.

Definition at line 23 of file ircevent.cpp.

References IrcEvent().

Referenced by Event::fromVariantMap().

void toVariantMap ( QVariantMap &  map) const
protectedvirtual

Reimplemented from NetworkEvent.

Reimplemented in IrcEventRawMessage, IrcEventNumeric, CtcpEvent, and KeyEvent.

Definition at line 50 of file ircevent.cpp.

References params(), prefix(), and Event::toVariantMap().

virtual QString className ( ) const
inlineprotectedvirtual

Reimplemented from NetworkEvent.

Reimplemented in IrcEventRawMessage, IrcEventNumeric, CtcpEvent, and KeyEvent.

Definition at line 50 of file ircevent.h.

virtual void debugInfo ( QDebug &  dbg) const
inlineprotectedvirtual

Reimplemented from NetworkEvent.

Reimplemented in IrcEventRawMessage, IrcEventNumeric, CtcpEvent, and KeyEvent.

Definition at line 51 of file ircevent.h.

References params(), and prefix().

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.

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

QString _prefix
private

Definition at line 60 of file ircevent.h.

Referenced by IrcEvent(), prefix(), and setPrefix().

QStringList _params
private

Definition at line 61 of file ircevent.h.

Referenced by IrcEvent(), params(), and setParams().


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