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

Generates user-visible MessageEvents from incoming IrcEvents. More...

#include </tmp/quassel/src/core/eventstringifier.h>

Inheritance diagram for EventStringifier:
Collaboration diagram for EventStringifier:

Public Slots

void displayMsg (NetworkEvent *event, Message::Type msgType, const QString &msg, const QString &sender=QString(), const QString &target=QString(), Message::Flags msgFlags=Message::None)
 Creates and sends a MessageEvent.

Signals

void newMessageEvent (Event *event)

Public Member Functions

 EventStringifier (CoreSession *parent)
CoreSessioncoreSession () const
MessageEventcreateMessageEvent (NetworkEvent *event, Message::Type msgType, const QString &msg, const QString &sender=QString(), const QString &target=QString(), Message::Flags msgFlags=Message::None)
Q_INVOKABLE void processNetworkSplitJoin (NetworkSplitEvent *event)
Q_INVOKABLE void processNetworkSplitQuit (NetworkSplitEvent *event)
Q_INVOKABLE void processIrcEventNumeric (IrcEventNumeric *event)
 Handle generic numeric events.
Q_INVOKABLE void processIrcEventInvite (IrcEvent *event)
Q_INVOKABLE void processIrcEventJoin (IrcEvent *event)
Q_INVOKABLE void processIrcEventKick (IrcEvent *event)
Q_INVOKABLE void processIrcEventMode (IrcEvent *event)
Q_INVOKABLE void processIrcEventNick (IrcEvent *event)
Q_INVOKABLE void processIrcEventPart (IrcEvent *event)
Q_INVOKABLE void processIrcEventPong (IrcEvent *event)
Q_INVOKABLE void processIrcEventQuit (IrcEvent *event)
Q_INVOKABLE void processIrcEventTopic (IrcEvent *event)
Q_INVOKABLE void processIrcEventWallops (IrcEvent *event)
Q_INVOKABLE void processIrcEvent005 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent301 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent305 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent306 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent311 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent312 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent314 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent315 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent317 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent318 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent319 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent322 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent323 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent324 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent328 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent329 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent330 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent331 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent332 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent333 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent341 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent352 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent369 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent432 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent433 (IrcEvent *event)
Q_INVOKABLE void processIrcEvent437 (IrcEvent *event)
Q_INVOKABLE void processCtcpEvent (CtcpEvent *event)
Q_INVOKABLE void handleCtcpAction (CtcpEvent *event)
Q_INVOKABLE void handleCtcpPing (CtcpEvent *event)
Q_INVOKABLE void defaultHandler (const QString &cmd, CtcpEvent *event)
QStringList providesHandlers ()

Protected Member Functions

virtual void handle (const QString &member, QGenericArgument val0=QGenericArgument(0), QGenericArgument val1=QGenericArgument(), QGenericArgument val2=QGenericArgument(), QGenericArgument val3=QGenericArgument(), QGenericArgument val4=QGenericArgument(), QGenericArgument val5=QGenericArgument(), QGenericArgument val6=QGenericArgument(), QGenericArgument val7=QGenericArgument(), QGenericArgument val8=QGenericArgument())

Private Member Functions

bool checkParamCount (IrcEvent *event, int minParams)

Private Attributes

CoreSession_coreSession
bool _whois

Detailed Description

Generates user-visible MessageEvents from incoming IrcEvents.

Definition at line 35 of file eventstringifier.h.

Constructor & Destructor Documentation

EventStringifier ( CoreSession parent)
explicit

Definition at line 27 of file eventstringifier.cpp.

References coreSession(), and newMessageEvent().

Member Function Documentation

CoreSession* coreSession ( ) const
inline

Definition at line 42 of file eventstringifier.h.

References _coreSession.

Referenced by checkParamCount(), and EventStringifier().

MessageEvent * createMessageEvent ( NetworkEvent event,
Message::Type  msgType,
const QString &  msg,
const QString &  sender = QString(),
const QString &  target = QString(),
Message::Flags  msgFlags = Message::None 
)

Definition at line 47 of file eventstringifier.cpp.

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

Referenced by displayMsg().

void processNetworkSplitJoin ( NetworkSplitEvent event)
void processNetworkSplitQuit ( NetworkSplitEvent event)
void processIrcEventNumeric ( IrcEventNumeric event)
void processIrcEventInvite ( IrcEvent event)

Definition at line 237 of file eventstringifier.cpp.

References displayMsg(), IrcEvent::nick(), and IrcEvent::params().

void processIrcEventJoin ( IrcEvent event)
void processIrcEventMode ( IrcEvent event)
void processIrcEventPart ( IrcEvent event)
void processIrcEventPong ( IrcEvent event)

Definition at line 316 of file eventstringifier.cpp.

References displayMsg(), IrcEvent::params(), and IrcEvent::prefix().

void processIrcEventTopic ( IrcEvent event)

Definition at line 339 of file eventstringifier.cpp.

References displayMsg(), IrcEvent::nick(), and IrcEvent::params().

void processIrcEventWallops ( IrcEvent event)

Definition at line 345 of file eventstringifier.cpp.

References displayMsg(), IrcEvent::nick(), and IrcEvent::params().

void processIrcEvent005 ( IrcEvent event)

Definition at line 352 of file eventstringifier.cpp.

References displayMsg(), IrcEvent::params(), and IrcEvent::prefix().

void processIrcEvent305 ( IrcEvent event)

Definition at line 389 of file eventstringifier.cpp.

References displayMsg().

void processIrcEvent306 ( IrcEvent event)
void processIrcEvent312 ( IrcEvent event)

Definition at line 434 of file eventstringifier.cpp.

References _whois, displayMsg(), and IrcEvent::params().

void processIrcEvent314 ( IrcEvent event)

Definition at line 444 of file eventstringifier.cpp.

References checkParamCount(), displayMsg(), and IrcEvent::params().

void processIrcEvent315 ( IrcEvent event)

Definition at line 454 of file eventstringifier.cpp.

References displayMsg(), and IrcEvent::params().

void processIrcEvent317 ( IrcEvent event)
void processIrcEvent318 ( IrcEvent event)

Definition at line 481 of file eventstringifier.cpp.

References _whois, and displayMsg().

void processIrcEvent319 ( IrcEvent event)

Definition at line 489 of file eventstringifier.cpp.

References checkParamCount(), displayMsg(), and IrcEvent::params().

void processIrcEvent322 ( IrcEvent event)

Definition at line 516 of file eventstringifier.cpp.

References displayMsg(), and IrcEvent::params().

void processIrcEvent323 ( IrcEvent event)

Definition at line 538 of file eventstringifier.cpp.

References displayMsg().

void processIrcEvent324 ( IrcEvent event)

Definition at line 545 of file eventstringifier.cpp.

References processIrcEventMode().

void processIrcEvent328 ( IrcEvent event)

Definition at line 552 of file eventstringifier.cpp.

References checkParamCount(), displayMsg(), and IrcEvent::params().

void processIrcEvent329 ( IrcEvent event)

Definition at line 563 of file eventstringifier.cpp.

References checkParamCount(), displayMsg(), and IrcEvent::params().

void processIrcEvent330 ( IrcEvent event)

Definition at line 582 of file eventstringifier.cpp.

References _whois, displayMsg(), and IrcEvent::params().

void processIrcEvent331 ( IrcEvent event)

Definition at line 598 of file eventstringifier.cpp.

References displayMsg(), and IrcEvent::params().

void processIrcEvent332 ( IrcEvent event)

Definition at line 606 of file eventstringifier.cpp.

References displayMsg(), and IrcEvent::params().

void processIrcEvent333 ( IrcEvent event)

Definition at line 614 of file eventstringifier.cpp.

References checkParamCount(), displayMsg(), and IrcEvent::params().

void processIrcEvent341 ( IrcEvent event)

Definition at line 628 of file eventstringifier.cpp.

References checkParamCount(), displayMsg(), and IrcEvent::params().

void processIrcEvent352 ( IrcEvent event)

Definition at line 640 of file eventstringifier.cpp.

References displayMsg(), and IrcEvent::params().

void processIrcEvent369 ( IrcEvent event)

Definition at line 647 of file eventstringifier.cpp.

References displayMsg().

void processIrcEvent432 ( IrcEvent event)

Definition at line 654 of file eventstringifier.cpp.

References checkParamCount(), displayMsg(), and IrcEvent::params().

void processIrcEvent433 ( IrcEvent event)

Definition at line 664 of file eventstringifier.cpp.

References checkParamCount(), displayMsg(), and IrcEvent::params().

void processIrcEvent437 ( IrcEvent event)

Definition at line 674 of file eventstringifier.cpp.

References checkParamCount(), displayMsg(), and IrcEvent::params().

void handleCtcpAction ( CtcpEvent event)
void defaultHandler ( const QString &  cmd,
CtcpEvent event 
)
void newMessageEvent ( Event event)
signal

Referenced by displayMsg(), and EventStringifier().

QStringList providesHandlers ( )
inherited
void handle ( const QString &  member,
QGenericArgument  val0 = QGenericArgument(0),
QGenericArgument  val1 = QGenericArgument(),
QGenericArgument  val2 = QGenericArgument(),
QGenericArgument  val3 = QGenericArgument(),
QGenericArgument  val4 = QGenericArgument(),
QGenericArgument  val5 = QGenericArgument(),
QGenericArgument  val6 = QGenericArgument(),
QGenericArgument  val7 = QGenericArgument(),
QGenericArgument  val8 = QGenericArgument() 
)
protectedvirtualinherited

Member Data Documentation

CoreSession* _coreSession
private

Definition at line 120 of file eventstringifier.h.

Referenced by coreSession().


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