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

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

Inheritance diagram for MessageEvent:
Collaboration diagram for MessageEvent:

Public Member Functions

 MessageEvent (Message::Type msgType, Network *network, const QString &msg, const QString &sender=QString(), const QString &target=QString(), Message::Flags msgFlags=Message::None, const QDateTime &timestamp=QDateTime())
Message::Type msgType () const
void setMsgType (Message::Type type)
BufferInfo::Type bufferType () const
void setBufferType (BufferInfo::Type type)
QString target () const
QString text () const
QString sender () const
Message::Flags msgFlags () const
void setMsgFlag (Message::Flag flag)
void setMsgFlags (Message::Flags flags)
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

 MessageEvent (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 Member Functions

BufferInfo::Type bufferTypeByTarget (const QString &target) const

Private Attributes

Message::Type _msgType
BufferInfo::Type _bufferType
QString _text
QString _sender
QString _target
Message::Flags _msgFlags

Detailed Description

Definition at line 30 of file messageevent.h.

Constructor & Destructor Documentation

MessageEvent ( Message::Type  msgType,
Network network,
const QString &  msg,
const QString &  sender = QString(),
const QString &  target = QString(),
Message::Flags  msgFlags = Message::None,
const QDateTime &  timestamp = QDateTime() 
)
explicit
MessageEvent ( EventManager::EventType  type,
QVariantMap &  map,
Network network 
)
explicitprotected

Definition at line 59 of file messageevent.cpp.

References _bufferType, _msgFlags, _msgType, _sender, _target, and _text.

Member Function Documentation

Message::Type msgType ( ) const
inline

Definition at line 42 of file messageevent.h.

References _msgType.

Referenced by debugInfo(), and toVariantMap().

void setMsgType ( Message::Type  type)
inline

Definition at line 43 of file messageevent.h.

References _msgType, and Event::type().

BufferInfo::Type bufferType ( ) const
inline

Definition at line 45 of file messageevent.h.

References _bufferType.

Referenced by debugInfo(), and toVariantMap().

void setBufferType ( BufferInfo::Type  type)
inline

Definition at line 46 of file messageevent.h.

References _bufferType, and Event::type().

QString target ( ) const
inline

Definition at line 48 of file messageevent.h.

References _target.

Referenced by debugInfo(), and toVariantMap().

QString text ( ) const
inline

Definition at line 49 of file messageevent.h.

References _text.

Referenced by debugInfo(), and toVariantMap().

QString sender ( ) const
inline

Definition at line 50 of file messageevent.h.

References _sender.

Referenced by debugInfo(), and toVariantMap().

Message::Flags msgFlags ( ) const
inline

Definition at line 52 of file messageevent.h.

References _msgFlags.

Referenced by debugInfo(), and toVariantMap().

void setMsgFlag ( Message::Flag  flag)
inline

Definition at line 53 of file messageevent.h.

References _msgFlags.

void setMsgFlags ( Message::Flags  flags)
inline

Definition at line 54 of file messageevent.h.

References _msgFlags, and Event::flags().

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

Reimplemented from NetworkEvent.

Definition at line 23 of file messageevent.cpp.

References MessageEvent().

Referenced by Event::fromVariantMap().

void toVariantMap ( QVariantMap &  map) const
protectedvirtual

Reimplemented from NetworkEvent.

Definition at line 71 of file messageevent.cpp.

References bufferType(), msgFlags(), msgType(), sender(), target(), text(), and Event::toVariantMap().

virtual QString className ( ) const
inlineprotectedvirtual

Reimplemented from NetworkEvent.

Definition at line 62 of file messageevent.h.

virtual void debugInfo ( QDebug &  dbg) const
inlineprotectedvirtual

Reimplemented from NetworkEvent.

Definition at line 63 of file messageevent.h.

References bufferType(), msgFlags(), msgType(), sender(), target(), and text().

BufferInfo::Type bufferTypeByTarget ( const QString &  target) const
private
Network* network ( ) const
inlineinherited

Definition at line 39 of file networkevent.h.

References NetworkEvent::_network.

Referenced by NetworkItem::attachNetwork(), bufferTypeByTarget(), CtcpParser::coreNetwork(), CoreSessionEventProcessor::coreNetwork(), EventStringifier::createMessageEvent(), CtcpParser::displayMsg(), CoreSessionEventProcessor::handleCtcpDcc(), CoreSessionEventProcessor::lateProcessIrcEventKick(), CoreSessionEventProcessor::lateProcessIrcEventNick(), CoreSessionEventProcessor::lateProcessIrcEventPart(), CoreSessionEventProcessor::lateProcessIrcEventQuit(), 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

Message::Type _msgType
private

Definition at line 78 of file messageevent.h.

Referenced by MessageEvent(), msgType(), and setMsgType().

BufferInfo::Type _bufferType
private

Definition at line 79 of file messageevent.h.

Referenced by bufferType(), MessageEvent(), and setBufferType().

QString _text
private

Definition at line 80 of file messageevent.h.

Referenced by MessageEvent(), and text().

QString _sender
private

Definition at line 80 of file messageevent.h.

Referenced by MessageEvent(), and sender().

QString _target
private

Definition at line 80 of file messageevent.h.

Referenced by MessageEvent(), and target().

Message::Flags _msgFlags
private

Definition at line 81 of file messageevent.h.

Referenced by MessageEvent(), msgFlags(), setMsgFlag(), and setMsgFlags().


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