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

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

Inheritance diagram for CoreUserInputHandler:
Collaboration diagram for CoreUserInputHandler:

Classes

struct  Command

Public Slots

void handleAway (const BufferInfo &bufferInfo, const QString &text)
void handleBan (const BufferInfo &bufferInfo, const QString &text)
void handleUnban (const BufferInfo &bufferInfo, const QString &text)
void handleCtcp (const BufferInfo &bufferInfo, const QString &text)
void handleDelkey (const BufferInfo &bufferInfo, const QString &text)
void handleDeop (const BufferInfo &bufferInfo, const QString &nicks)
void handleDehalfop (const BufferInfo &bufferInfo, const QString &nicks)
void handleDevoice (const BufferInfo &bufferInfo, const QString &nicks)
void handleInvite (const BufferInfo &bufferInfo, const QString &text)
void handleJoin (const BufferInfo &bufferInfo, const QString &text)
void handleKeyx (const BufferInfo &bufferInfo, const QString &text)
void handleKick (const BufferInfo &bufferInfo, const QString &text)
void handleKill (const BufferInfo &bufferInfo, const QString &text)
void handleList (const BufferInfo &bufferInfo, const QString &text)
void handleMe (const BufferInfo &bufferInfo, const QString &text)
void handleMode (const BufferInfo &bufferInfo, const QString &text)
void handleMsg (const BufferInfo &bufferInfo, const QString &text)
void handleNick (const BufferInfo &bufferInfo, const QString &text)
void handleNotice (const BufferInfo &bufferInfo, const QString &text)
void handleOper (const BufferInfo &bufferInfo, const QString &text)
void handleOp (const BufferInfo &bufferInfo, const QString &nicks)
void handleHalfop (const BufferInfo &bufferInfo, const QString &nicks)
void handlePart (const BufferInfo &bufferInfo, const QString &text)
void handlePing (const BufferInfo &bufferInfo, const QString &text)
void handlePrint (const BufferInfo &bufferInfo, const QString &text)
void handleQuery (const BufferInfo &bufferInfo, const QString &text)
void handleQuit (const BufferInfo &bufferInfo, const QString &text)
void handleQuote (const BufferInfo &bufferInfo, const QString &text)
void handleSay (const BufferInfo &bufferInfo, const QString &text)
void handleSetkey (const BufferInfo &bufferInfo, const QString &text)
void handleShowkey (const BufferInfo &bufferInfo, const QString &text)
void handleTopic (const BufferInfo &bufferInfo, const QString &text)
void handleVoice (const BufferInfo &bufferInfo, const QString &text)
void handleWait (const BufferInfo &bufferInfo, const QString &text)
void handleWho (const BufferInfo &bufferInfo, const QString &text)
void handleWhois (const BufferInfo &bufferInfo, const QString &text)
void handleWhowas (const BufferInfo &bufferInfo, const QString &text)
void defaultHandler (QString cmd, const BufferInfo &bufferInfo, const QString &text)
void issueQuit (const QString &reason)
void issueAway (const QString &msg, bool autoCheck=true)

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

 CoreUserInputHandler (CoreNetwork *parent=0)
CoreNetworkcoreNetwork () const
void handleUserInput (const BufferInfo &bufferInfo, const QString &text)
int lastParamOverrun (const QString &cmd, const QList< QByteArray > &params)
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 timerEvent (QTimerEvent *event)
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 Member Functions

void doMode (const BufferInfo &bufferInfo, const QChar &addOrRemove, const QChar &mode, const QString &nickList)
void banOrUnban (const BufferInfo &bufferInfo, const QString &text, bool ban)
void putPrivmsg (const QString &target, const QString &message, std::function< QByteArray(const QString &, const QString &)> encodeFunc, Cipher *cipher=0)

Private Attributes

QHash< int, Command_delayedCommands

Detailed Description

Definition at line 30 of file coreuserinputhandler.h.

Constructor & Destructor Documentation

CoreUserInputHandler ( CoreNetwork parent = 0)

Definition at line 33 of file coreuserinputhandler.cpp.

Member Function Documentation

CoreNetwork* coreNetwork ( ) const
inline

Definition at line 36 of file coreuserinputhandler.h.

Referenced by handleCtcp(), and handleMe().

void handleUserInput ( const BufferInfo bufferInfo,
const QString &  text 
)
int lastParamOverrun ( const QString &  cmd,
const QList< QByteArray > &  params 
)
void handleAway ( const BufferInfo bufferInfo,
const QString &  text 
)
slot
void handleBan ( const BufferInfo bufferInfo,
const QString &  text 
)
slot

Definition at line 99 of file coreuserinputhandler.cpp.

References banOrUnban().

void handleUnban ( const BufferInfo bufferInfo,
const QString &  text 
)
slot

Definition at line 105 of file coreuserinputhandler.cpp.

References banOrUnban().

void handleDeop ( const BufferInfo bufferInfo,
const QString &  nicks 
)
slot

Definition at line 255 of file coreuserinputhandler.cpp.

References doMode().

void handleDehalfop ( const BufferInfo bufferInfo,
const QString &  nicks 
)
slot

Definition at line 261 of file coreuserinputhandler.cpp.

References doMode().

void handleDevoice ( const BufferInfo bufferInfo,
const QString &  nicks 
)
slot

Definition at line 267 of file coreuserinputhandler.cpp.

References doMode().

void handleInvite ( const BufferInfo bufferInfo,
const QString &  text 
)
slot
void handleKill ( const BufferInfo bufferInfo,
const QString &  text 
)
slot
void handleList ( const BufferInfo bufferInfo,
const QString &  text 
)
slot
void handleMsg ( const BufferInfo bufferInfo,
const QString &  text 
)
slot
void handleNick ( const BufferInfo bufferInfo,
const QString &  text 
)
slot
void handleOper ( const BufferInfo bufferInfo,
const QString &  text 
)
slot
void handleOp ( const BufferInfo bufferInfo,
const QString &  nicks 
)
slot

Definition at line 277 of file coreuserinputhandler.cpp.

References doMode().

void handleHalfop ( const BufferInfo bufferInfo,
const QString &  nicks 
)
slot

Definition at line 272 of file coreuserinputhandler.cpp.

References doMode().

void handlePing ( const BufferInfo bufferInfo,
const QString &  text 
)
slot
void handleQuery ( const BufferInfo bufferInfo,
const QString &  text 
)
slot
void handleQuit ( const BufferInfo bufferInfo,
const QString &  text 
)
slot
void handleQuote ( const BufferInfo bufferInfo,
const QString &  text 
)
slot
void handleTopic ( const BufferInfo bufferInfo,
const QString &  text 
)
slot
void handleVoice ( const BufferInfo bufferInfo,
const QString &  text 
)
slot
void handleWait ( const BufferInfo bufferInfo,
const QString &  text 
)
slot

Definition at line 724 of file coreuserinputhandler.cpp.

References _delayedCommands.

void handleWho ( const BufferInfo bufferInfo,
const QString &  text 
)
slot
void handleWhois ( const BufferInfo bufferInfo,
const QString &  text 
)
slot
void handleWhowas ( const BufferInfo bufferInfo,
const QString &  text 
)
slot
void defaultHandler ( QString  cmd,
const BufferInfo bufferInfo,
const QString &  text 
)
slot
void issueQuit ( const QString &  reason)
slot
void timerEvent ( QTimerEvent *  event)
protected

Definition at line 854 of file coreuserinputhandler.cpp.

References _delayedCommands, and handleUserInput().

void doMode ( const BufferInfo bufferInfo,
const QChar &  addOrRemove,
const QChar &  mode,
const QString &  nickList 
)
private
void putPrivmsg ( const QString &  target,
const QString &  message,
std::function< QByteArray(const QString &, const QString &)>  encodeFunc,
Cipher cipher = 0 
)
private
QString serverDecode ( const QByteArray &  string)
inherited
QStringList serverDecode ( const QList< QByteArray > &  stringlist)
inherited
QString channelDecode ( const QString &  bufferName,
const QByteArray &  string 
)
inherited
QStringList channelDecode ( const QString &  bufferName,
const QList< QByteArray > &  stringlist 
)
inherited
QString userDecode ( const QString &  userNick,
const QByteArray &  string 
)
inherited

Definition at line 72 of file corebasichandler.cpp.

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

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

Definition at line 78 of file corebasichandler.cpp.

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

QList< QByteArray > serverEncode ( const QStringList &  stringlist)
inherited
QByteArray channelEncode ( const QString &  bufferName,
const QString &  string 
)
inherited
QList< QByteArray > channelEncode ( const QString &  bufferName,
const QStringList &  stringlist 
)
inherited
QByteArray userEncode ( const QString &  userNick,
const QString &  string 
)
inherited

Definition at line 116 of file corebasichandler.cpp.

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

Referenced by handleMsg().

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

Definition at line 122 of file corebasichandler.cpp.

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

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

Definition at line 145 of file corebasichandler.cpp.

References CoreBasicHandler::putCmd().

void putRawLine ( const QByteArray &  msg)
signalinherited
CoreSession* coreSession ( ) const
inlineprotectedinherited

Definition at line 65 of file corebasichandler.h.

References CoreBasicHandler::_network, and CoreNetwork::coreSession().

Referenced by handleAway(), and handleUserInput().

BufferInfo::Type typeByTarget ( const QString &  target) const
protectedinherited
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

QHash<int, Command> _delayedCommands
private

Definition at line 104 of file coreuserinputhandler.h.

Referenced by handleWait(), and timerEvent().


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