From 79b21d47bce1ee428affc97534cd8b257232a871 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 24 Jan 2013 13:43:14 -0600 Subject: Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4 --- khelpcenter/khc_indexbuilder.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'khelpcenter/khc_indexbuilder.cpp') diff --git a/khelpcenter/khc_indexbuilder.cpp b/khelpcenter/khc_indexbuilder.cpp index 3759b3048..0efd5ac2b 100644 --- a/khelpcenter/khc_indexbuilder.cpp +++ b/khelpcenter/khc_indexbuilder.cpp @@ -84,29 +84,29 @@ void IndexBuilder::processCmdQueue() kdDebug(1402) << "PROCESS: " << cmd << endl; - KProcess *proc = new KProcess; + TDEProcess *proc = new TDEProcess; proc->setRunPrivileged( true ); TQStringList args = TQStringList::split( " ", cmd ); *proc << args; - connect( proc, TQT_SIGNAL( processExited( KProcess * ) ), - TQT_SLOT( slotProcessExited( KProcess * ) ) ); - connect( proc, TQT_SIGNAL( receivedStdout(KProcess *, char *, int ) ), - TQT_SLOT( slotReceivedStdout(KProcess *, char *, int ) ) ); - connect( proc, TQT_SIGNAL( receivedStderr(KProcess *, char *, int ) ), - TQT_SLOT( slotReceivedStderr(KProcess *, char *, int ) ) ); + connect( proc, TQT_SIGNAL( processExited( TDEProcess * ) ), + TQT_SLOT( slotProcessExited( TDEProcess * ) ) ); + connect( proc, TQT_SIGNAL( receivedStdout(TDEProcess *, char *, int ) ), + TQT_SLOT( slotReceivedStdout(TDEProcess *, char *, int ) ) ); + connect( proc, TQT_SIGNAL( receivedStderr(TDEProcess *, char *, int ) ), + TQT_SLOT( slotReceivedStderr(TDEProcess *, char *, int ) ) ); mCmdQueue.remove( it ); - if ( !proc->start( KProcess::NotifyOnExit, KProcess::AllOutput ) ) { + if ( !proc->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) ) { sendErrorSignal( i18n("Unable to start command '%1'.").arg( cmd ) ); processCmdQueue(); } } -void IndexBuilder::slotProcessExited( KProcess *proc ) +void IndexBuilder::slotProcessExited( TDEProcess *proc ) { kdDebug(1402) << "IndexBuilder::slotIndexFinished()" << endl; @@ -124,13 +124,13 @@ void IndexBuilder::slotProcessExited( KProcess *proc ) processCmdQueue(); } -void IndexBuilder::slotReceivedStdout( KProcess *, char *buffer, int buflen ) +void IndexBuilder::slotReceivedStdout( TDEProcess *, char *buffer, int buflen ) { TQString text = TQString::fromLocal8Bit( buffer, buflen ); std::cout << text.local8Bit().data() << std::flush; } -void IndexBuilder::slotReceivedStderr( KProcess *, char *buffer, int buflen ) +void IndexBuilder::slotReceivedStderr( TDEProcess *, char *buffer, int buflen ) { TQString text = TQString::fromLocal8Bit( buffer, buflen ); std::cerr << text.local8Bit().data() << std::flush; -- cgit v1.2.3