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

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

Inheritance diagram for NetworkSplitEvent:
Collaboration diagram for NetworkSplitEvent:

Public Member Functions

 NetworkSplitEvent (EventManager::EventType type, Network *network, const QString &channel, const QStringList &users, const QString &quitMsg)
QString channel () const
QStringList users () const
QString quitMessage () const
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

 NetworkSplitEvent (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 _channel
QStringList _users
QString _quitMsg

Friends

class NetworkEvent

Detailed Description

Definition at line 117 of file networkevent.h.

Constructor & Destructor Documentation

NetworkSplitEvent ( EventManager::EventType  type,
Network network,
const QString &  channel,
const QStringList &  users,
const QString &  quitMsg 
)
inlineexplicit

Definition at line 120 of file networkevent.h.

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

Definition at line 89 of file networkevent.cpp.

References _channel, _quitMsg, and _users.

Member Function Documentation

QString channel ( ) const
inline
QStringList users ( ) const
inline
QString quitMessage ( ) const
inline
void toVariantMap ( QVariantMap &  map) const
protectedvirtual

Reimplemented from NetworkEvent.

Definition at line 98 of file networkevent.cpp.

References channel(), quitMessage(), Event::toVariantMap(), and users().

virtual QString className ( ) const
inlineprotectedvirtual

Reimplemented from NetworkEvent.

Definition at line 139 of file networkevent.h.

virtual void debugInfo ( QDebug &  dbg) const
inlineprotectedvirtual

Reimplemented from NetworkEvent.

Definition at line 140 of file networkevent.h.

References channel(), quitMessage(), and users().

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().

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

Reimplemented in CtcpEvent, MessageEvent, KeyEvent, and IrcEvent.

Definition at line 23 of file networkevent.cpp.

Referenced by Event::fromVariantMap().

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().

Friends And Related Function Documentation

friend class NetworkEvent
friend

Definition at line 154 of file networkevent.h.

Member Data Documentation

QString _channel
private

Definition at line 150 of file networkevent.h.

Referenced by channel(), and NetworkSplitEvent().

QStringList _users
private

Definition at line 151 of file networkevent.h.

Referenced by NetworkSplitEvent(), and users().

QString _quitMsg
private

Definition at line 152 of file networkevent.h.

Referenced by NetworkSplitEvent(), and quitMessage().


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