summaryrefslogtreecommitdiffstats
path: root/ark/rar.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/rar.cpp
parent95d05392f9bc01594738a1e06ebf23123b3d3e6e (diff)
downloadtdeutils-aef5eada7f51ee48f3d21448db290bd8f06953a8.tar.gz
tdeutils-aef5eada7f51ee48f3d21448db290bd8f06953a8.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'ark/rar.cpp')
-rw-r--r--ark/rar.cpp86
1 files changed, 43 insertions, 43 deletions
diff --git a/ark/rar.cpp b/ark/rar.cpp
index 67ebc16..2b015f5 100644
--- a/ark/rar.cpp
+++ b/ark/rar.cpp
@@ -56,9 +56,9 @@ RarArch::RarArch( ArkWidget *_gui, const TQString & _fileName )
: Arch( _gui, _fileName )
{
// Check if rar is available
- bool have_rar = !KGlobal::dirs()->findExe( "rar" ).isNull();
- bool have_unrar = !KGlobal::dirs()->findExe( "unrar" ).isNull();
- bool have_unrar_free = !KGlobal::dirs()->findExe( "unrar-free" ).isNull();
+ bool have_rar = !TDEGlobal::dirs()->findExe( "rar" ).isNull();
+ bool have_unrar = !TDEGlobal::dirs()->findExe( "unrar" ).isNull();
+ bool have_unrar_free = !TDEGlobal::dirs()->findExe( "unrar-free" ).isNull();
if ( have_rar )
{
@@ -140,7 +140,7 @@ void RarArch::open()
m_header_removed = false;
m_finished = false;
- KProcess *kp = m_currentProcess = new KProcess;
+ TDEProcess *kp = m_currentProcess = new TDEProcess;
*kp << m_unarchiver_program << "v" << "-c-";
if ( !m_password.isEmpty() )
@@ -150,14 +150,14 @@ void RarArch::open()
*kp << 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*) ) );
+ 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( KProcess::NotifyOnExit, KProcess::AllOutput ) )
+ if ( !kp->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) )
{
KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigOpen( this, false, TQString(), 0 );
@@ -204,7 +204,7 @@ void RarArch::addDir( const TQString & _dirName )
void RarArch::addFile( const TQStringList & urls )
{
- KProcess *kp = m_currentProcess = new KProcess;
+ TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments();
*kp << m_archiver_program;
@@ -234,14 +234,14 @@ void RarArch::addFile( const TQStringList & urls )
*kp << url.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 );
@@ -256,7 +256,7 @@ void RarArch::unarchFileInternal()
return;
}
- KProcess *kp = m_currentProcess = new KProcess;
+ TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments();
// extract (and maybe overwrite)
@@ -291,14 +291,14 @@ void RarArch::unarchFileInternal()
*kp << m_destDir ;
- 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 );
@@ -315,7 +315,7 @@ void RarArch::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;
@@ -327,14 +327,14 @@ void RarArch::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 );
@@ -345,7 +345,7 @@ void RarArch::test()
{
clearShellOutput();
- KProcess *kp = m_currentProcess = new KProcess;
+ TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments();
*kp << m_unarchiver_program << "t";
@@ -355,14 +355,14 @@ void RarArch::test()
*kp << m_filename;
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotTestExited(KProcess*) ) );
+ connect( kp, SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
+ SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
+ connect( kp, SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
+ SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
+ connect( kp, SIGNAL( processExited(TDEProcess*) ),
+ SLOT( slotTestExited(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 sigTest( false );