diff options
Diffstat (limited to 'kopete/libkopete/kopetecommandhandler.cpp')
-rw-r--r-- | kopete/libkopete/kopetecommandhandler.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kopete/libkopete/kopetecommandhandler.cpp b/kopete/libkopete/kopetecommandhandler.cpp index c182a495..04153e86 100644 --- a/kopete/libkopete/kopetecommandhandler.cpp +++ b/kopete/libkopete/kopetecommandhandler.cpp @@ -156,36 +156,36 @@ Kopete::CommandHandler *Kopete::CommandHandler::commandHandler() return p->s_handler; } -void Kopete::CommandHandler::registerCommand( TQObject *tqparent, const TQString &command, const char* handlerSlot, +void Kopete::CommandHandler::registerCommand( TQObject *parent, const TQString &command, const char* handlerSlot, const TQString &help, uint minArgs, int maxArgs, const KShortcut &cut, const TQString &pix ) { TQString lowerCommand = command.lower(); - Kopete::Command *mCommand = new Kopete::Command( tqparent, lowerCommand, handlerSlot, help, + Kopete::Command *mCommand = new Kopete::Command( parent, lowerCommand, handlerSlot, help, Normal, TQString(), minArgs, maxArgs, cut, pix); - p->pluginCommands[ tqparent ].insert( lowerCommand, mCommand ); + p->pluginCommands[ parent ].insert( lowerCommand, mCommand ); } -void Kopete::CommandHandler::unregisterCommand( TQObject *tqparent, const TQString &command ) +void Kopete::CommandHandler::unregisterCommand( TQObject *parent, const TQString &command ) { - if( p->pluginCommands[ tqparent ].find(command) ) - p->pluginCommands[ tqparent ].remove( command ); + if( p->pluginCommands[ parent ].find(command) ) + p->pluginCommands[ parent ].remove( command ); } -void Kopete::CommandHandler::registerAlias( TQObject *tqparent, const TQString &alias, const TQString &formatString, +void Kopete::CommandHandler::registerAlias( TQObject *parent, const TQString &alias, const TQString &formatString, const TQString &help, CommandType type, uint minArgs, int maxArgs, const KShortcut &cut, const TQString &pix ) { TQString lowerAlias = alias.lower(); - Kopete::Command *mCommand = new Kopete::Command( tqparent, lowerAlias, 0L, help, type, + Kopete::Command *mCommand = new Kopete::Command( parent, lowerAlias, 0L, help, type, formatString, minArgs, maxArgs, cut, pix ); - p->pluginCommands[ tqparent ].insert( lowerAlias, mCommand ); + p->pluginCommands[ parent ].insert( lowerAlias, mCommand ); } -void Kopete::CommandHandler::unregisterAlias( TQObject *tqparent, const TQString &alias ) +void Kopete::CommandHandler::unregisterAlias( TQObject *parent, const TQString &alias ) { - if( p->pluginCommands[ tqparent ].find(alias) ) - p->pluginCommands[ tqparent ].remove( alias ); + if( p->pluginCommands[ parent ].find(alias) ) + p->pluginCommands[ parent ].remove( alias ); } bool Kopete::CommandHandler::processMessage( const TQString &msg, Kopete::ChatSession *manager ) |