summaryrefslogtreecommitdiffstats
path: root/ark/zoo.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:50:20 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:50:20 -0600
commitaef5eada7f51ee48f3d21448db290bd8f06953a8 (patch)
tree9d6e7572ebcc27e402501d6966f9b46361a1702c /ark/zoo.cpp
parent95d05392f9bc01594738a1e06ebf23123b3d3e6e (diff)
downloadtdeutils-aef5eada7f51ee48f3d21448db290bd8f06953a8.tar.gz
tdeutils-aef5eada7f51ee48f3d21448db290bd8f06953a8.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'ark/zoo.cpp')
-rw-r--r--ark/zoo.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/ark/zoo.cpp b/ark/zoo.cpp
index 1ef7377..f94abdb 100644
--- a/ark/zoo.cpp
+++ b/ark/zoo.cpp
@@ -108,16 +108,16 @@ void ZooArch::open()
m_finished = false;
- KProcess *kp = m_currentProcess = new KProcess;
+ TDEProcess *kp = m_currentProcess = new TDEProcess;
*kp << m_archiver_program << "l" << m_filename;
- connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
- TQT_SLOT( slotReceivedTOC(KProcess*, char*, int) ) );
- connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
- TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
- TQT_SLOT( slotOpenExited(KProcess*) ) );
-
- if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
+ connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedTOC(TDEProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
+ TQT_SLOT( slotOpenExited(TDEProcess*) ) );
+
+ if ( !kp->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) )
{
KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigOpen( this, false, TQString(), 0 );
@@ -155,7 +155,7 @@ void ZooArch::addDir( const TQString & _dirName )
void ZooArch::addFile( const TQStringList &urls )
{
- KProcess *kp = m_currentProcess = new KProcess;
+ TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments();
*kp << m_archiver_program;
@@ -177,14 +177,14 @@ void ZooArch::addFile( const TQStringList &urls )
*kp << fileURL.fileName();
}
- connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
- TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
- TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
- TQT_SLOT( slotAddExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
+ TQT_SLOT( slotAddExited(TDEProcess*) ) );
- if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
+ if ( !kp->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) )
{
KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigAdd( false );
@@ -209,7 +209,7 @@ void ZooArch::unarchFileInternal()
// We 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;
@@ -236,14 +236,14 @@ void ZooArch::unarchFileInternal()
}
}
- connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
- TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
- TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
- TQT_SLOT( slotExtractExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
+ TQT_SLOT( slotExtractExited(TDEProcess*) ) );
- if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
+ if ( !kp->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) )
{
KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigExtract( false );
@@ -255,7 +255,7 @@ void ZooArch::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;
@@ -267,14 +267,14 @@ void ZooArch::remove( TQStringList *list )
*kp << str;
}
- connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
- TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
- TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
- TQT_SLOT( slotDeleteExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
+ TQT_SLOT( slotDeleteExited(TDEProcess*) ) );
- if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
+ if ( !kp->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) )
{
KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigDelete( false );