kopete/libkopete
Go to the documentation of this file.
17 #ifndef KOPETECOMMANDHANDLER_H
18 #define KOPETECOMMANDHANDLER_H
20 #include <QtCore/QMultiHash>
22 #include <kshortcut.h>
29 struct CommandHandlerPrivate;
32 class KopeteCommandGUIClient;
51 friend class ::KopeteCommandGUIClient;
89 void registerCommand(
QObject *parent,
const QString &command,
const char* handlerSlot,
90 const QString &help = QString(), uint minArgs = 0,
int maxArgs = -1,
91 const KShortcut &cut = KShortcut(),
const QString &pix = QString() );
110 void registerAlias(
QObject *parent,
111 const QString &alias,
112 const QString &formatString,
113 const QString &help = QString(),
114 CommandType = SystemAlias,
117 const KShortcut &cut = KShortcut(),
118 const QString &pix = QString() );
130 void unregisterCommand(
QObject *parent,
const QString &command );
139 void unregisterAlias(
QObject *parent,
const QString &alias );
158 bool processMessage(
const QString &msg,
ChatSession *manager );
164 static QStringList parseArguments(
const QString &args );
172 bool commandHandled(
const QString &command );
181 bool commandHandledByProtocol(
const QString &command,
Protocol *protocol);
185 void slotPluginDestroyed(
QObject * );
186 void slotExecReturnedData(K3Process *proc,
char *buff,
int bufflen );
187 void slotExecFinished(K3Process *proc);
216 static CommandHandlerPrivate *p;
CommandType
an enum defining the type of a command
base class of every protocol.
Base class for all plugins or protocols.
QMultiHash< QString, Command * > CommandList
Representation of a message in Kopete.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:51 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.