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

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

Inheritance diagram for CoreBasicHandler:
Collaboration diagram for CoreBasicHandler:

Signals

void displayMsg (Message::Type, BufferInfo::Type, const QString &target, const QString &text, const QString &sender="", Message::Flags flags=Message::None)
void putCmd (const QString &cmd, const QList< QByteArray > &params, const QByteArray &prefix=QByteArray())
void putCmd (const QString &cmd, const QList< QList< QByteArray >> &params, const QByteArray &prefix=QByteArray())
void putRawLine (const QByteArray &msg)

Public Member Functions

 CoreBasicHandler (CoreNetwork *parent=0)
QString serverDecode (const QByteArray &string)
QStringList serverDecode (const QList< QByteArray > &stringlist)
QString channelDecode (const QString &bufferName, const QByteArray &string)
QStringList channelDecode (const QString &bufferName, const QList< QByteArray > &stringlist)
QString userDecode (const QString &userNick, const QByteArray &string)
QStringList userDecode (const QString &userNick, const QList< QByteArray > &stringlist)
QByteArray serverEncode (const QString &string)
QList< QByteArray > serverEncode (const QStringList &stringlist)
QByteArray channelEncode (const QString &bufferName, const QString &string)
QList< QByteArray > channelEncode (const QString &bufferName, const QStringList &stringlist)
QByteArray userEncode (const QString &userNick, const QString &string)
QList< QByteArray > userEncode (const QString &userNick, const QStringList &stringlist)
QStringList providesHandlers ()

Protected Member Functions

void putCmd (const QString &cmd, const QByteArray &param, const QByteArray &prefix=QByteArray())
CoreNetworknetwork () const
CoreSessioncoreSession () const
BufferInfo::Type typeByTarget (const QString &target) const
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 Attributes

CoreNetwork_network

Detailed Description

Definition at line 34 of file corebasichandler.h.

Constructor & Destructor Documentation

CoreBasicHandler ( CoreNetwork parent = 0)

Definition at line 26 of file corebasichandler.cpp.

References displayMsg(), network(), putCmd(), and putRawLine().

Member Function Documentation

QString serverDecode ( const QByteArray &  string)

Definition at line 44 of file corebasichandler.cpp.

References network(), and CoreNetwork::serverDecode().

QStringList serverDecode ( const QList< QByteArray > &  stringlist)

Definition at line 50 of file corebasichandler.cpp.

References network(), and CoreNetwork::serverDecode().

QString channelDecode ( const QString &  bufferName,
const QByteArray &  string 
)

Definition at line 58 of file corebasichandler.cpp.

References CoreNetwork::channelDecode(), and network().

QStringList channelDecode ( const QString &  bufferName,
const QList< QByteArray > &  stringlist 
)

Definition at line 64 of file corebasichandler.cpp.

References CoreNetwork::channelDecode(), and network().

QString userDecode ( const QString &  userNick,
const QByteArray &  string 
)

Definition at line 72 of file corebasichandler.cpp.

References network(), and CoreNetwork::userDecode().

QStringList userDecode ( const QString &  userNick,
const QList< QByteArray > &  stringlist 
)

Definition at line 78 of file corebasichandler.cpp.

References network(), and CoreNetwork::userDecode().

QList< QByteArray > serverEncode ( const QStringList &  stringlist)

Definition at line 94 of file corebasichandler.cpp.

References network(), and CoreNetwork::serverEncode().

QList< QByteArray > channelEncode ( const QString &  bufferName,
const QStringList &  stringlist 
)

Definition at line 108 of file corebasichandler.cpp.

References CoreNetwork::channelEncode(), and network().

QByteArray userEncode ( const QString &  userNick,
const QString &  string 
)

Definition at line 116 of file corebasichandler.cpp.

References network(), and CoreNetwork::userEncode().

Referenced by CoreUserInputHandler::handleMsg().

QList< QByteArray > userEncode ( const QString &  userNick,
const QStringList &  stringlist 
)

Definition at line 122 of file corebasichandler.cpp.

References network(), and CoreNetwork::userEncode().

void putCmd ( const QString &  cmd,
const QList< QList< QByteArray >> &  params,
const QByteArray &  prefix = QByteArray() 
)
signal
void putCmd ( const QString &  cmd,
const QByteArray &  param,
const QByteArray &  prefix = QByteArray() 
)
protected

Definition at line 145 of file corebasichandler.cpp.

References putCmd().

CoreSession* coreSession ( ) const
inlineprotected
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

CoreNetwork* _network
private

Definition at line 70 of file corebasichandler.h.

Referenced by coreSession(), and network().


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