From aef5eada7f51ee48f3d21448db290bd8f06953a8 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 24 Jan 2013 13:50:20 -0600 Subject: Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4 --- ark/ar.cpp | 76 +++++++++++++++++++++++++++++++------------------------------- 1 file changed, 38 insertions(+), 38 deletions(-) (limited to 'ark/ar.cpp') diff --git a/ark/ar.cpp b/ark/ar.cpp index 3456f81..8edb2dd 100644 --- a/ark/ar.cpp +++ b/ark/ar.cpp @@ -87,17 +87,17 @@ void ArArch::open() m_buffer = ""; - KProcess *kp = m_currentProcess = new KProcess; + TDEProcess *kp = m_currentProcess = new TDEProcess; *kp << m_archiver_program << "vt" << m_filename; - connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedTOC(KProcess*, char*, int))); - connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); + connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedTOC(TDEProcess*, char*, int))); + connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int))); - connect( kp, TQT_SIGNAL(processExited(KProcess*)), this, - TQT_SLOT(slotOpenExited(KProcess*))); + connect( kp, TQT_SIGNAL(processExited(TDEProcess*)), this, + TQT_SLOT(slotOpenExited(TDEProcess*))); - if (kp->start(KProcess::NotifyOnExit, KProcess::AllOutput) == false) + if (kp->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput) == false) { KMessageBox::error( 0, i18n("Could not start a subprocess.") ); emit sigOpen(this, false, TQString(), 0 ); @@ -107,16 +107,16 @@ void ArArch::open() void ArArch::create() { - KProcess *kp = m_currentProcess = new KProcess; + TDEProcess *kp = m_currentProcess = new TDEProcess; kp->clearArguments(); *kp << m_archiver_program << "c" << m_filename; - connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); - connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); + connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int))); + connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int))); - if (kp->start(KProcess::Block) == false) + if (kp->start(TDEProcess::Block) == false) { KMessageBox::error( 0, i18n("Could not start a subprocess.") ); emit sigCreate(this, false, m_filename, @@ -132,7 +132,7 @@ void ArArch::create() void ArArch::addFile( const TQStringList &urls ) { kdDebug(1601) << "+ArArch::addFile" << endl; - KProcess *kp = m_currentProcess = new KProcess; + TDEProcess *kp = m_currentProcess = new TDEProcess; kp->clearArguments(); *kp << m_archiver_program; @@ -152,15 +152,15 @@ void ArArch::addFile( const TQStringList &urls ) *kp << fileURL.fileName(); } - connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); - connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); + connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int))); + connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int))); - connect( kp, TQT_SIGNAL(processExited(KProcess*)), this, - TQT_SLOT(slotAddExited(KProcess*))); + connect( kp, TQT_SIGNAL(processExited(TDEProcess*)), this, + TQT_SLOT(slotAddExited(TDEProcess*))); - if (kp->start(KProcess::NotifyOnExit, KProcess::AllOutput) == false) + if (kp->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput) == false) { KMessageBox::error( 0, i18n("Could not start a subprocess.") ); emit sigAdd(false); @@ -191,7 +191,7 @@ void ArArch::unarchFileInternal() // I already checked the validity of the dir before coming here Q_ASSERT(ret); - KProcess *kp = m_currentProcess = new KProcess; + TDEProcess *kp = m_currentProcess = new TDEProcess; kp->clearArguments(); *kp << m_archiver_program; @@ -209,15 +209,15 @@ void ArArch::unarchFileInternal() } } - connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); - connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); + connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int))); + connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int))); - connect( kp, TQT_SIGNAL(processExited(KProcess*)), this, - TQT_SLOT(slotExtractExited(KProcess*))); + connect( kp, TQT_SIGNAL(processExited(TDEProcess*)), this, + TQT_SLOT(slotExtractExited(TDEProcess*))); - if (kp->start(KProcess::NotifyOnExit, KProcess::AllOutput) == false) + if (kp->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput) == false) { KMessageBox::error( 0, i18n("Could not start a subprocess.") ); emit sigExtract(false); @@ -231,7 +231,7 @@ void ArArch::remove(TQStringList *list) if (!list) return; - KProcess *kp = m_currentProcess = new KProcess; + TDEProcess *kp = m_currentProcess = new TDEProcess; kp->clearArguments(); *kp << m_archiver_program << "d" << m_filename; @@ -242,15 +242,15 @@ void ArArch::remove(TQStringList *list) *kp << str; } - connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); - connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), - this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); + connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int))); + connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), + this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int))); - connect( kp, TQT_SIGNAL(processExited(KProcess*)), this, - TQT_SLOT(slotDeleteExited(KProcess*))); + connect( kp, TQT_SIGNAL(processExited(TDEProcess*)), this, + TQT_SLOT(slotDeleteExited(TDEProcess*))); - if (kp->start(KProcess::NotifyOnExit, KProcess::AllOutput) == false) + if (kp->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput) == false) { KMessageBox::error( 0, i18n("Could not start a subprocess.") ); emit sigDelete(false); -- cgit v1.2.1