From c48e769eb275917717e2b55eb869f7e559293ac8 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 24 Jan 2013 13:48:31 -0600 Subject: Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4 --- kopete/libkopete/kopetecommandhandler.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'kopete/libkopete/kopetecommandhandler.cpp') diff --git a/kopete/libkopete/kopetecommandhandler.cpp b/kopete/libkopete/kopetecommandhandler.cpp index 2b0aeb4d..eba7c4ed 100644 --- a/kopete/libkopete/kopetecommandhandler.cpp +++ b/kopete/libkopete/kopetecommandhandler.cpp @@ -87,7 +87,7 @@ struct CommandHandlerPrivate { PluginCommandMap pluginCommands; Kopete::CommandHandler *s_handler; - TQMap processMap; + TQMap processMap; bool inCommand; TQPtrList m_commands; }; @@ -274,9 +274,9 @@ void Kopete::CommandHandler::slotExecCommand( const TQString &args, Kopete::Chat { if( !args.isEmpty() ) { - KProcess *proc = 0L; + TDEProcess *proc = 0L; if ( kapp->authorize( TQString::fromLatin1( "shell_access" ) ) ) - proc = new KProcess(manager); + proc = new TDEProcess(manager); if( proc ) { @@ -294,9 +294,9 @@ void Kopete::CommandHandler::slotExecCommand( const TQString &args, Kopete::Chat *proc << args; } - connect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), this, TQT_SLOT(slotExecReturnedData(KProcess *, char *, int))); - connect(proc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), this, TQT_SLOT(slotExecReturnedData(KProcess *, char *, int))); - proc->start( KProcess::NotifyOnExit, KProcess::AllOutput ); + connect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), this, TQT_SLOT(slotExecReturnedData(TDEProcess *, char *, int))); + connect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), this, TQT_SLOT(slotExecReturnedData(TDEProcess *, char *, int))); + proc->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ); } else { @@ -350,7 +350,7 @@ void Kopete::CommandHandler::slotCloseCommand( const TQString &, Kopete::ChatSes manager->view()->closeView(); } -void Kopete::CommandHandler::slotExecReturnedData(KProcess *proc, char *buff, int bufflen ) +void Kopete::CommandHandler::slotExecReturnedData(TDEProcess *proc, char *buff, int bufflen ) { kdDebug(14010) << k_funcinfo << endl; TQString buffer = TQString::fromLocal8Bit( buff, bufflen ); @@ -362,7 +362,7 @@ void Kopete::CommandHandler::slotExecReturnedData(KProcess *proc, char *buff, in mgrPair.first->appendMessage( msg ); } -void Kopete::CommandHandler::slotExecFinished(KProcess *proc) +void Kopete::CommandHandler::slotExecFinished(TDEProcess *proc) { delete proc; p->processMap.remove( proc ); -- cgit v1.2.1