diff options
Diffstat (limited to 'ark/zoo.cpp')
-rw-r--r-- | ark/zoo.cpp | 66 |
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 ); |