kopete/libkopete
kopetecommand.cpp
Go to the documentation of this file.
50 : KAction( KIcon(pix), command[0].toUpper() + command.right( command.length() - 1).toLower(), 0 )
67 Kopete::CommandHandler::CommandType type, const QString &formatString, uint minArgs, int maxArgs )
91 args = KInputDialog::getText( i18n("Enter Arguments"), i18n("Enter the arguments to %1:", m_command) );
99 void Kopete::Command::processCommand( const QString &args, Kopete::ChatSession *manager, bool gui )
120 printError( i18n("You are not authorized to perform the command \"%1\".", text()), manager, gui );
144 Kopete::CommandHandler::commandHandler()->processMessage( QString::fromLatin1("/") + formatString, manager );
154 void Kopete::Command::printError( const QString &error, Kopete::ChatSession *manager, bool gui ) const
bool processMessage(Message &msg, ChatSession *manager)
Process a message to see if any commands should be handled.
Definition: kopetecommandhandler.cpp:259
KopeteView * activeView()
Returns the current active Kopete view.
Definition: kopetechatsessionmanager.cpp:187
Command(QObject *parent, const QString &command, const char *handlerSlot, const QString &help=QString(), CommandHandler::CommandType type=CommandHandler::Normal, const QString &formatString=QString(), uint minArgs=0, int maxArgs=-1, const KShortcut &cut=KShortcut(), const QString &pix=QString())
Creates a Kopete::Command object.
Definition: kopetecommand.cpp:47
const QString & command() const
Returns the command this object handles.
Definition: kopetecommand.h:81
Definition: kopetechatsession.h:74
static QStringList parseArguments(const QString &args)
Parses a string of command arguments into a QStringList.
Definition: kopetecommandhandler.cpp:419
(Default) Message which are not sent via the network. This is just a notification a plugin can show i...
Definition: kopetemessage.h:92
void appendMessage(Kopete::Message &msg)
Show a message to the chatwindow, or append it to the queue.
Definition: kopetechatsession.cpp:310
void processCommand(const QString &args, ChatSession *manager, bool gui=false)
Process this command.
Definition: kopetecommand.cpp:99
void setPlainBody(const QString &body)
Sets the body of the message.
Definition: kopetemessage.cpp:233
const QString & help() const
Returns the help string for this command.
Definition: kopetecommand.h:86
KOPETE_EXPORT QWidget * mainWidget()
Returns the main widget - this is the widget that message boxes and KNotify stuff should use as a par...
Definition: kopeteuiglobal.cpp:37
static ChatSessionManager * self()
Definition: kopetechatsessionmanager.cpp:39
const Contact * myself() const
Get the local user in the session.
Definition: kopetechatsession.cpp:215
const ContactPtrList & members() const
Get a list of all contacts in the session.
Definition: kopetechatsession.cpp:210
static CommandHandler * commandHandler()
Returns a pointer to the command handler.
Definition: kopetecommandhandler.cpp:184
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
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.