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

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

Inheritance diagram for NetworkConnectionEvent:
Collaboration diagram for NetworkConnectionEvent:

Public Member Functions

 NetworkConnectionEvent (EventManager::EventType type, Network *network, Network::ConnectionState state)
Network::ConnectionState connectionState () const
void setConnectionState (Network::ConnectionState state)
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

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

Network::ConnectionState _state

Friends

class NetworkEvent

Detailed Description

Definition at line 57 of file networkevent.h.

Constructor & Destructor Documentation

NetworkConnectionEvent ( EventManager::EventType  type,
Network network,
Network::ConnectionState  state 
)
inlineexplicit

Definition at line 60 of file networkevent.h.

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

Definition at line 75 of file networkevent.cpp.

References _state.

Member Function Documentation

Network::ConnectionState connectionState ( ) const
inline

Definition at line 65 of file networkevent.h.

References _state.

Referenced by toVariantMap().

void setConnectionState ( Network::ConnectionState  state)
inline

Definition at line 66 of file networkevent.h.

References _state.

void toVariantMap ( QVariantMap &  map) const
protectedvirtual

Reimplemented from NetworkEvent.

Definition at line 82 of file networkevent.cpp.

References connectionState(), and Event::toVariantMap().

virtual QString className ( ) const
inlineprotectedvirtual

Reimplemented from NetworkEvent.

Definition at line 72 of file networkevent.h.

virtual void debugInfo ( QDebug &  dbg) const
inlineprotectedvirtual

Reimplemented from NetworkEvent.

Definition at line 73 of file networkevent.h.

References _state.

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 83 of file networkevent.h.

Member Data Documentation

Network::ConnectionState _state
private

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