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

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

Inheritance diagram for CtcpEvent:
Collaboration diagram for CtcpEvent:

Public Types

enum  CtcpType { Query, Reply }

Public Member Functions

 CtcpEvent (EventManager::EventType type, Network *network, const QString &prefix, const QString &target, CtcpType ctcpType, const QString &ctcpCmd, const QString &param, const QDateTime &timestamp=QDateTime(), const QUuid &uuid=QUuid())
CtcpType ctcpType () const
void setCtcpType (CtcpType type)
QString ctcpCmd () const
void setCtcpCmd (const QString &ctcpCmd)
QString target () const
void setTarget (const QString &target)
QString param () const
void setParam (const QString &param)
QString reply () const
void setReply (const QString &reply)
QUuid uuid () const
void setUuid (const QUuid &uuid)
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

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

CtcpType _ctcpType
QString _ctcpCmd
QString _target
QString _param
QString _reply
QUuid _uuid

Detailed Description

Definition at line 28 of file ctcpevent.h.

Member Enumeration Documentation

enum CtcpType
Enumerator:
Query 
Reply 

Definition at line 31 of file ctcpevent.h.

Constructor & Destructor Documentation

CtcpEvent ( EventManager::EventType  type,
Network network,
const QString &  prefix,
const QString &  target,
CtcpType  ctcpType,
const QString &  ctcpCmd,
const QString &  param,
const QDateTime &  timestamp = QDateTime(),
const QUuid &  uuid = QUuid() 
)
inlineexplicit

Definition at line 36 of file ctcpevent.h.

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

Referenced by create().

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

Definition at line 32 of file ctcpevent.cpp.

References _ctcpCmd, _ctcpType, _param, _reply, _target, and _uuid.

Member Function Documentation

void setCtcpType ( CtcpType  type)
inline

Definition at line 51 of file ctcpevent.h.

References _ctcpType, and Event::type().

void setCtcpCmd ( const QString &  ctcpCmd)
inline

Definition at line 54 of file ctcpevent.h.

References _ctcpCmd, and ctcpCmd().

void setTarget ( const QString &  target)
inline

Definition at line 57 of file ctcpevent.h.

References _target, and target().

void setParam ( const QString &  param)
inline

Definition at line 60 of file ctcpevent.h.

References _param, and param().

QString reply ( ) const
inline
QUuid uuid ( ) const
inline

Definition at line 65 of file ctcpevent.h.

References _uuid.

Referenced by CtcpParser::sendCtcpEvent(), setUuid(), and toVariantMap().

void setUuid ( const QUuid &  uuid)
inline

Definition at line 66 of file ctcpevent.h.

References _uuid, and uuid().

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

Reimplemented from IrcEvent.

Definition at line 23 of file ctcpevent.cpp.

References CtcpEvent().

Referenced by Event::fromVariantMap().

void toVariantMap ( QVariantMap &  map) const
protectedvirtual

Reimplemented from IrcEvent.

Definition at line 44 of file ctcpevent.cpp.

References ctcpCmd(), ctcpType(), param(), reply(), target(), Event::toVariantMap(), and uuid().

virtual QString className ( ) const
inlineprotectedvirtual

Reimplemented from IrcEvent.

Definition at line 74 of file ctcpevent.h.

virtual void debugInfo ( QDebug &  dbg) const
inlineprotectedvirtual

Reimplemented from IrcEvent.

Definition at line 75 of file ctcpevent.h.

References ctcpCmd(), ctcpType(), param(), IrcEvent::prefix(), Query, reply(), 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

CtcpType _ctcpType
private

Definition at line 88 of file ctcpevent.h.

Referenced by CtcpEvent(), ctcpType(), and setCtcpType().

QString _ctcpCmd
private

Definition at line 89 of file ctcpevent.h.

Referenced by ctcpCmd(), CtcpEvent(), and setCtcpCmd().

QString _target
private

Definition at line 90 of file ctcpevent.h.

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

QString _param
private

Definition at line 90 of file ctcpevent.h.

Referenced by CtcpEvent(), param(), and setParam().

QString _reply
private

Definition at line 90 of file ctcpevent.h.

Referenced by CtcpEvent(), reply(), and setReply().

QUuid _uuid
private

Definition at line 91 of file ctcpevent.h.

Referenced by CtcpEvent(), setUuid(), and uuid().


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