Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 11 years ago
parent 95d05392f9
commit aef5eada7f

@ -173,8 +173,8 @@
changes will be lost.) changes will be lost.)
2000-03-06: Emily Ezust <emilye@corel.com> 2000-03-06: Emily Ezust <emilye@corel.com>
* Got rid of KProcess data member in Arch - no need for it with the * Got rid of TDEProcess data member in Arch - no need for it with the
new way that KProcess does its work: we are always passing it new way that TDEProcess does its work: we are always passing it
around to the functions that need it. This way we won't get around to the functions that need it. This way we won't get
confused when there are more than one processes happening. confused when there are more than one processes happening.
* Made tar more asynchronous, redid the temp file creation & updating. * Made tar more asynchronous, redid the temp file creation & updating.
@ -199,7 +199,7 @@
2000-02-22: Emily Ezust <emilye@corel.com> 2000-02-22: Emily Ezust <emilye@corel.com>
* More work on the abstract base class for archives - moved lots of * More work on the abstract base class for archives - moved lots of
slots dealing with the KProcess from zip.cpp to arch.cpp slots dealing with the TDEProcess from zip.cpp to arch.cpp
* Some work on tar. Doesn't work yet. * Some work on tar. Doesn't work yet.
2000-02-16: Emily Ezust <emilye@corel.com> 2000-02-16: Emily Ezust <emilye@corel.com>

@ -83,23 +83,23 @@ void AceArch::open()
m_header_removed = false; m_header_removed = false;
m_finished = false; m_finished = false;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
*kp << m_archiver_program << "v" << m_filename; *kp << m_archiver_program << "v" << m_filename;
//kp->setUseShell( true ); //kp->setUseShell( true );
kdDebug() << "AceArch::open(): kp->args(): " << kp->args() << endl; kdDebug() << "AceArch::open(): kp->args(): " << kp->args() << endl;
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedTOC(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedTOC(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotOpenExited(KProcess*) ) ); TQT_SLOT( slotOpenExited(TDEProcess*) ) );
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
this, TQT_SLOT( catchMeIfYouCan(KProcess*, char*, int) ) ); this, TQT_SLOT( catchMeIfYouCan(TDEProcess*, char*, int) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) ) if ( !kp->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) )
{ {
KMessageBox::error( 0, i18n( "Could not start a subprocess." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigOpen( this, false, TQString(), 0 ); emit sigOpen( this, false, TQString(), 0 );
@ -132,7 +132,7 @@ void AceArch::unarchFileInternal( )
return; return;
} }
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
// extract (and maybe overwrite) // extract (and maybe overwrite)
@ -158,21 +158,21 @@ void AceArch::unarchFileInternal( )
} }
} }
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotExtractExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigExtract( false ); emit sigExtract( false );
} }
} }
void AceArch::catchMeIfYouCan( KProcess*, char *buffer, int buflen ) void AceArch::catchMeIfYouCan( TDEProcess*, char *buffer, int buflen )
{ {
TQString myBuf = TQString::fromLatin1( buffer, buflen ); TQString myBuf = TQString::fromLatin1( buffer, buflen );
kdDebug(1601) << " Wololo!: " << myBuf << endl; kdDebug(1601) << " Wololo!: " << myBuf << endl;

@ -27,7 +27,7 @@
#include "arch.h" #include "arch.h"
class KProcess; // TODO: Remove me! class TDEProcess; // TODO: Remove me!
class AceArch : public Arch class AceArch : public Arch
{ {
@ -47,7 +47,7 @@ class AceArch : public Arch
virtual void unarchFileInternal( ); virtual void unarchFileInternal( );
private slots: private slots:
void catchMeIfYouCan( KProcess*, char*, int ); void catchMeIfYouCan( TDEProcess*, char*, int );
private: private:
void setHeaders(); void setHeaders();

@ -87,17 +87,17 @@ void ArArch::open()
m_buffer = ""; m_buffer = "";
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
*kp << m_archiver_program << "vt" << m_filename; *kp << m_archiver_program << "vt" << m_filename;
connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedTOC(KProcess*, char*, int))); this, TQT_SLOT(slotReceivedTOC(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(processExited(KProcess*)), this, connect( kp, TQT_SIGNAL(processExited(TDEProcess*)), this,
TQT_SLOT(slotOpenExited(KProcess*))); 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.") ); KMessageBox::error( 0, i18n("Could not start a subprocess.") );
emit sigOpen(this, false, TQString(), 0 ); emit sigOpen(this, false, TQString(), 0 );
@ -107,16 +107,16 @@ void ArArch::open()
void ArArch::create() void ArArch::create()
{ {
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_archiver_program << "c" << m_filename; *kp << m_archiver_program << "c" << m_filename;
connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(KProcess*, 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.") ); KMessageBox::error( 0, i18n("Could not start a subprocess.") );
emit sigCreate(this, false, m_filename, emit sigCreate(this, false, m_filename,
@ -132,7 +132,7 @@ void ArArch::create()
void ArArch::addFile( const TQStringList &urls ) void ArArch::addFile( const TQStringList &urls )
{ {
kdDebug(1601) << "+ArArch::addFile" << endl; kdDebug(1601) << "+ArArch::addFile" << endl;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_archiver_program; *kp << m_archiver_program;
@ -152,15 +152,15 @@ void ArArch::addFile( const TQStringList &urls )
*kp << fileURL.fileName(); *kp << fileURL.fileName();
} }
connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(processExited(KProcess*)), this, connect( kp, TQT_SIGNAL(processExited(TDEProcess*)), this,
TQT_SLOT(slotAddExited(KProcess*))); 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.") ); KMessageBox::error( 0, i18n("Could not start a subprocess.") );
emit sigAdd(false); emit sigAdd(false);
@ -191,7 +191,7 @@ void ArArch::unarchFileInternal()
// I already checked the validity of the dir before coming here // I already checked the validity of the dir before coming here
Q_ASSERT(ret); Q_ASSERT(ret);
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_archiver_program; *kp << m_archiver_program;
@ -209,15 +209,15 @@ void ArArch::unarchFileInternal()
} }
} }
connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(processExited(KProcess*)), this, connect( kp, TQT_SIGNAL(processExited(TDEProcess*)), this,
TQT_SLOT(slotExtractExited(KProcess*))); 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.") ); KMessageBox::error( 0, i18n("Could not start a subprocess.") );
emit sigExtract(false); emit sigExtract(false);
@ -231,7 +231,7 @@ void ArArch::remove(TQStringList *list)
if (!list) if (!list)
return; return;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_archiver_program << "d" << m_filename; *kp << m_archiver_program << "d" << m_filename;
@ -242,15 +242,15 @@ void ArArch::remove(TQStringList *list)
*kp << str; *kp << str;
} }
connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(processExited(KProcess*)), this, connect( kp, TQT_SIGNAL(processExited(TDEProcess*)), this,
TQT_SLOT(slotDeleteExited(KProcess*))); 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.") ); KMessageBox::error( 0, i18n("Could not start a subprocess.") );
emit sigDelete(false); emit sigDelete(false);

@ -88,7 +88,7 @@ Arch::~Arch()
void Arch::verifyCompressUtilityIsAvailable( const TQString &utility ) void Arch::verifyCompressUtilityIsAvailable( const TQString &utility )
{ {
// see if the utility is in the PATH of the user. // see if the utility is in the PATH of the user.
TQString cmd = KGlobal::dirs()->findExe( utility ); TQString cmd = TDEGlobal::dirs()->findExe( utility );
m_bArchUtilityIsAvailable = !cmd.isEmpty(); m_bArchUtilityIsAvailable = !cmd.isEmpty();
} }
@ -96,11 +96,11 @@ void Arch::verifyCompressUtilityIsAvailable( const TQString &utility )
void Arch::verifyUncompressUtilityIsAvailable( const TQString &utility ) void Arch::verifyUncompressUtilityIsAvailable( const TQString &utility )
{ {
// see if the utility is in the PATH of the user. // see if the utility is in the PATH of the user.
TQString cmd = KGlobal::dirs()->findExe( utility ); TQString cmd = TDEGlobal::dirs()->findExe( utility );
m_bUnarchUtilityIsAvailable = !cmd.isEmpty(); m_bUnarchUtilityIsAvailable = !cmd.isEmpty();
} }
void Arch::slotOpenExited( KProcess* _kp ) void Arch::slotOpenExited( TDEProcess* _kp )
{ {
bool success = ( _kp->normalExit() && ( _kp->exitStatus() == 0 ) ); bool success = ( _kp->normalExit() && ( _kp->exitStatus() == 0 ) );
@ -148,7 +148,7 @@ void Arch::slotOpenExited( KProcess* _kp )
_kp = m_currentProcess = 0; _kp = m_currentProcess = 0;
} }
void Arch::slotDeleteExited( KProcess *_kp ) void Arch::slotDeleteExited( TDEProcess *_kp )
{ {
bool success = ( _kp->normalExit() && ( _kp->exitStatus() == 0 ) ); bool success = ( _kp->normalExit() && ( _kp->exitStatus() == 0 ) );
@ -175,7 +175,7 @@ void Arch::slotDeleteExited( KProcess *_kp )
_kp = m_currentProcess = 0; _kp = m_currentProcess = 0;
} }
void Arch::slotExtractExited( KProcess *_kp ) void Arch::slotExtractExited( TDEProcess *_kp )
{ {
bool success = ( _kp->normalExit() && ( _kp->exitStatus() == 0 ) ); bool success = ( _kp->normalExit() && ( _kp->exitStatus() == 0 ) );
@ -234,7 +234,7 @@ void Arch::unarchFile( TQStringList *fileList, const TQString & destDir,
unarchFileInternal(); unarchFileInternal();
} }
void Arch::slotAddExited( KProcess *_kp ) void Arch::slotAddExited( TDEProcess *_kp )
{ {
bool success = ( _kp->normalExit() && ( _kp->exitStatus() == 0 ) ); bool success = ( _kp->normalExit() && ( _kp->exitStatus() == 0 ) );
@ -261,7 +261,7 @@ void Arch::slotAddExited( KProcess *_kp )
_kp = m_currentProcess = 0; _kp = m_currentProcess = 0;
} }
void Arch::slotReceivedOutput( KProcess*, char* data, int length ) void Arch::slotReceivedOutput( TDEProcess*, char* data, int length )
{ {
char c = data[ length ]; char c = data[ length ];
data[ length ] = '\0'; data[ length ] = '\0';
@ -271,7 +271,7 @@ void Arch::slotReceivedOutput( KProcess*, char* data, int length )
} }
void Arch::slotReceivedTOC( KProcess*, char* data, int length ) void Arch::slotReceivedTOC( TDEProcess*, char* data, int length )
{ {
char c = data[ length ]; char c = data[ length ];
data[ length ] = '\0'; data[ length ] = '\0';
@ -400,7 +400,7 @@ void Arch::test()
KMessageBox::information(0, i18n("Not implemented.")); KMessageBox::information(0, i18n("Not implemented."));
} }
void Arch::slotTestExited( KProcess *_kp ) void Arch::slotTestExited( TDEProcess *_kp )
{ {
bool success = ( _kp->normalExit() && ( _kp->exitStatus() == 0 ) ); bool success = ( _kp->normalExit() && ( _kp->exitStatus() == 0 ) );

@ -26,7 +26,7 @@
*/ */
/* The following class is the base class for all of the archive types. /* The following class is the base class for all of the archive types.
* In order for it to work properly with the KProcess, you have to * In order for it to work properly with the TDEProcess, you have to
* connect the ProcessExited signal appropriately before spawning * connect the ProcessExited signal appropriately before spawning
* the core operations. Then the signal that the process exited can * the core operations. Then the signal that the process exited can
* be intercepted by the viewer (in ark, ArkWidget) and dealt with * be intercepted by the viewer (in ark, ArkWidget) and dealt with
@ -58,7 +58,7 @@
class TQCString; class TQCString;
class TQStringList; class TQStringList;
class KProcess; class TDEProcess;
class FileListView; class FileListView;
class ArkWidget; class ArkWidget;
@ -156,16 +156,16 @@ class Arch : public TQObject
virtual void createPassword() {} virtual void createPassword() {}
protected slots: protected slots:
void slotOpenExited( KProcess* ); void slotOpenExited( TDEProcess* );
void slotExtractExited( KProcess* ); void slotExtractExited( TDEProcess* );
void slotDeleteExited( KProcess* ); void slotDeleteExited( TDEProcess* );
void slotAddExited( KProcess* ); void slotAddExited( TDEProcess* );
void slotTestExited( KProcess* ); void slotTestExited( TDEProcess* );
void slotReceivedOutput( KProcess *, char*, int ); void slotReceivedOutput( TDEProcess *, char*, int );
virtual bool processLine( const TQCString &line ); virtual bool processLine( const TQCString &line );
virtual void slotReceivedTOC( KProcess *, char *, int ); virtual void slotReceivedTOC( TDEProcess *, char *, int );
signals: signals:
void sigOpen( Arch * archive, bool success, const TQString &filename, int ); void sigOpen( Arch * archive, bool success, const TQString &filename, int );
@ -202,7 +202,7 @@ class Arch : public TQObject
TQPtrList<ArchColumns> m_archCols; TQPtrList<ArchColumns> m_archCols;
int m_numCols, m_dateCol, m_fixYear, m_fixMonth, m_fixDay, m_fixTime; int m_numCols, m_dateCol, m_fixYear, m_fixMonth, m_fixDay, m_fixTime;
int m_repairYear, m_repairMonth, m_repairTime; int m_repairYear, m_repairMonth, m_repairTime;
KProcess *m_currentProcess; TDEProcess *m_currentProcess;
TQStringList *m_fileList; TQStringList *m_fileList;
TQString m_destDir; TQString m_destDir;
bool m_viewFriendly; bool m_viewFriendly;

@ -95,7 +95,7 @@ void ArjArch::addDir( const TQString & _dirName )
void ArjArch::addFile( const TQStringList & urls ) void ArjArch::addFile( const TQStringList & urls )
{ {
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_archiver_program; *kp << m_archiver_program;
@ -122,14 +122,14 @@ void ArjArch::addFile( const TQStringList & urls )
*kp << url.fileName(); *kp << url.fileName();
} }
connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( processExited(KProcess*) ), connect( kp, SIGNAL( processExited(TDEProcess*) ),
SLOT( slotAddExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigAdd( false ); emit sigAdd( false );
@ -186,18 +186,18 @@ void ArjArch::open()
m_header_removed = false; m_header_removed = false;
m_finished = false; m_finished = false;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
*kp << m_unarchiver_program << "v" << m_filename; *kp << m_unarchiver_program << "v" << m_filename;
connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
SLOT( slotReceivedTOC(KProcess*, char*, int) ) ); SLOT( slotReceivedTOC(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( processExited(KProcess*) ), connect( kp, SIGNAL( processExited(TDEProcess*) ),
SLOT( slotOpenExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigOpen( this, false, TQString::null, 0 ); emit sigOpen( this, false, TQString::null, 0 );
@ -214,7 +214,7 @@ void ArjArch::unarchFileInternal()
return; return;
} }
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_unarchiver_program; *kp << m_unarchiver_program;
@ -246,14 +246,14 @@ void ArjArch::unarchFileInternal()
} }
} }
connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( processExited(KProcess*) ), connect( kp, SIGNAL( processExited(TDEProcess*) ),
SLOT( slotExtractExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigExtract( false ); emit sigExtract( false );
@ -270,7 +270,7 @@ void ArjArch::remove( TQStringList *list )
if ( !list ) if ( !list )
return; return;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_archiver_program << "d" << m_filename; *kp << m_archiver_program << "d" << m_filename;
@ -282,14 +282,14 @@ void ArjArch::remove( TQStringList *list )
*kp << str; *kp << str;
} }
connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( processExited(KProcess*) ), connect( kp, SIGNAL( processExited(TDEProcess*) ),
SLOT( slotDeleteExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigDelete( false ); emit sigDelete( false );
@ -300,7 +300,7 @@ void ArjArch::test()
{ {
clearShellOutput(); clearShellOutput();
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_unarchiver_program << "t"; *kp << m_unarchiver_program << "t";
@ -310,14 +310,14 @@ void ArjArch::test()
*kp << m_filename; *kp << m_filename;
connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( processExited(KProcess*) ), connect( kp, SIGNAL( processExited(TDEProcess*) ),
SLOT( slotTestExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigTest( false ); emit sigTest( false );

@ -1611,17 +1611,17 @@ ArkWidget::editStart()
{ {
kdDebug(1601) << "Edit in progress..." << endl; kdDebug(1601) << "Edit in progress..." << endl;
KURL::List list; KURL::List list;
// edit will be in progress until the KProcess terminates. // edit will be in progress until the TDEProcess terminates.
KOpenWithDlg l( list, i18n("Edit with:"), KOpenWithDlg l( list, i18n("Edit with:"),
TQString(), (TQWidget*)0L ); TQString(), (TQWidget*)0L );
if ( l.exec() ) if ( l.exec() )
{ {
KProcess *kp = new KProcess; TDEProcess *kp = new TDEProcess;
*kp << l.text() << m_strFileToView; *kp << l.text() << m_strFileToView;
connect( kp, TQT_SIGNAL(processExited(KProcess *)), connect( kp, TQT_SIGNAL(processExited(TDEProcess *)),
this, TQT_SLOT(slotEditFinished(KProcess *)) ); this, TQT_SLOT(slotEditFinished(TDEProcess *)) );
if ( kp->start(KProcess::NotifyOnExit, KProcess::AllOutput) == false ) if ( kp->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput) == false )
{ {
KMessageBox::error(0, i18n("Trouble editing the file...")); KMessageBox::error(0, i18n("Trouble editing the file..."));
} }
@ -1629,7 +1629,7 @@ ArkWidget::editStart()
} }
void void
ArkWidget::slotEditFinished(KProcess *kp) ArkWidget::slotEditFinished(TDEProcess *kp)
{ {
kdDebug(1601) << "+ArkWidget::slotEditFinished" << endl; kdDebug(1601) << "+ArkWidget::slotEditFinished" << endl;
connect( arch, TQT_SIGNAL( sigAdd( bool ) ), this, TQT_SLOT( editSlotAddDone( bool ) ) ); connect( arch, TQT_SIGNAL( sigAdd( bool ) ), this, TQT_SLOT( editSlotAddDone( bool ) ) );
@ -1841,7 +1841,7 @@ ArkWidget::updateStatusSelection()
else if (m_nNumSelectedFiles != 1) else if (m_nNumSelectedFiles != 1)
{ {
strInfo = i18n("%1 files selected %2") strInfo = i18n("%1 files selected %2")
.arg(KGlobal::locale()->formatNumber(m_nNumSelectedFiles, 0)) .arg(TDEGlobal::locale()->formatNumber(m_nNumSelectedFiles, 0))
.arg(KIO::convertSize(m_nSizeOfSelectedFiles)); .arg(KIO::convertSize(m_nSizeOfSelectedFiles));
} }
else else

@ -45,7 +45,7 @@ class TQDragMoveEvent;
class TQDropEvent; class TQDropEvent;
class KPopupMenu; class KPopupMenu;
class KProcess; class TDEProcess;
class KURL; class KURL;
class KRun; class KRun;
class KTempFile; class KTempFile;
@ -133,7 +133,7 @@ protected slots:
void slotExtractDone(bool); void slotExtractDone(bool);
void slotExtractRemoteDone(KIO::Job *job); void slotExtractRemoteDone(KIO::Job *job);
void slotAddDone(bool); void slotAddDone(bool);
void slotEditFinished(KProcess *); void slotEditFinished(TDEProcess *);
void slotTestDone(bool); void slotTestDone(bool);
signals: signals:
void openURLRequest( const KURL & url ); void openURLRequest( const KURL & url );

@ -143,7 +143,7 @@ void CompressedFile::initData()
} }
if ( mimeType == "application/x-compress" ) if ( mimeType == "application/x-compress" )
{ {
m_unarchiver_program = KGlobal::dirs()->findExe( "uncompress" ).isNull()? "gunzip" : "uncompress"; m_unarchiver_program = TDEGlobal::dirs()->findExe( "uncompress" ).isNull()? "gunzip" : "uncompress";
m_archiver_program = "compress"; m_archiver_program = "compress";
m_defaultExtensions = ".Z"; m_defaultExtensions = ".Z";
} }
@ -184,14 +184,14 @@ void CompressedFile::open()
if ( !KIO::NetAccess::exists( target, true, NULL ) ) if ( !KIO::NetAccess::exists( target, true, NULL ) )
return; return;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_unarchiver_program << "-f" ; *kp << m_unarchiver_program << "-f" ;
if ( m_unarchiver_program == "lzop") if ( m_unarchiver_program == "lzop")
{ {
*kp << "-d"; *kp << "-d";
// lzop hack, see comment in tar.cpp createTmp() // lzop hack, see comment in tar.cpp createTmp()
kp->setUsePty( KProcess::Stdin, false ); kp->setUsePty( TDEProcess::Stdin, false );
} }
// gunzip 1.3 seems not to like original names with directories in them // gunzip 1.3 seems not to like original names with directories in them
// testcase: https://listman.redhat.com/pipermail/valhalla-list/2006-October.txt.gz // testcase: https://listman.redhat.com/pipermail/valhalla-list/2006-October.txt.gz
@ -202,14 +202,14 @@ void CompressedFile::open()
kdDebug(1601) << "Command is " << m_unarchiver_program << " " << m_tmpfile<< endl; kdDebug(1601) << "Command is " << m_unarchiver_program << " " << m_tmpfile<< endl;
connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(processExited(KProcess*)), this, connect( kp, TQT_SIGNAL(processExited(TDEProcess*)), this,
TQT_SLOT(slotUncompressDone(KProcess*))); TQT_SLOT(slotUncompressDone(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.") ); KMessageBox::error( 0, i18n("Could not start a subprocess.") );
emit sigOpen(this, false, TQString(), 0 ); emit sigOpen(this, false, TQString(), 0 );
@ -218,7 +218,7 @@ void CompressedFile::open()
kdDebug(1601) << "-CompressedFile::open" << endl; kdDebug(1601) << "-CompressedFile::open" << endl;
} }
void CompressedFile::slotUncompressDone(KProcess *_kp) void CompressedFile::slotUncompressDone(TDEProcess *_kp)
{ {
bool bSuccess = false; bool bSuccess = false;
kdDebug(1601) << "normalExit = " << _kp->normalExit() << endl; kdDebug(1601) << "normalExit = " << _kp->normalExit() << endl;
@ -284,9 +284,9 @@ void CompressedFile::addFile( const TQStringList &urls )
TQString file; TQString file;
file = url.path(); file = url.path();
KProcess proc; TDEProcess proc;
proc << "cp" << file << m_tmpdir; proc << "cp" << file << m_tmpdir;
proc.start(KProcess::Block); proc.start(TDEProcess::Block);
m_tmpfile = file.right(file.length() m_tmpfile = file.right(file.length()
- file.findRev("/")-1); - file.findRev("/")-1);
@ -296,23 +296,23 @@ void CompressedFile::addFile( const TQStringList &urls )
kdDebug(1601) << "File is " << file << endl; kdDebug(1601) << "File is " << file << endl;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
// lzop hack, see comment in tar.cpp createTmp() // lzop hack, see comment in tar.cpp createTmp()
if ( m_archiver_program == "lzop") if ( m_archiver_program == "lzop")
kp->setUsePty( KProcess::Stdin, false ); kp->setUsePty( TDEProcess::Stdin, false );
TQString compressor = m_archiver_program; TQString compressor = m_archiver_program;
*kp << compressor << "-c" << file; *kp << compressor << "-c" << file;
connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQT_SLOT(slotAddInProgress(KProcess*, char*, int))); this, TQT_SLOT(slotAddInProgress(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(processExited(KProcess*)), this, connect( kp, TQT_SIGNAL(processExited(TDEProcess*)), this,
TQT_SLOT(slotAddDone(KProcess*))); TQT_SLOT(slotAddDone(TDEProcess*)));
int f_desc = KDE_open(TQFile::encodeName(m_filename), O_CREAT | O_TRUNC | O_WRONLY, 0666); int f_desc = KDE_open(TQFile::encodeName(m_filename), O_CREAT | O_TRUNC | O_WRONLY, 0666);
if (f_desc != -1) if (f_desc != -1)
@ -320,7 +320,7 @@ void CompressedFile::addFile( const TQStringList &urls )
else else
fd = NULL; fd = NULL;
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.") ); KMessageBox::error( 0, i18n("Could not start a subprocess.") );
} }
@ -328,7 +328,7 @@ void CompressedFile::addFile( const TQStringList &urls )
kdDebug(1601) << "-CompressedFile::addFile" << endl; kdDebug(1601) << "-CompressedFile::addFile" << endl;
} }
void CompressedFile::slotAddInProgress(KProcess*, char* _buffer, int _bufflen) void CompressedFile::slotAddInProgress(TDEProcess*, char* _buffer, int _bufflen)
{ {
// we're trying to capture the output of a command like this // we're trying to capture the output of a command like this
// gzip -c myfile // gzip -c myfile
@ -342,7 +342,7 @@ void CompressedFile::slotAddInProgress(KProcess*, char* _buffer, int _bufflen)
} }
} }
void CompressedFile::slotAddDone(KProcess *_kp) void CompressedFile::slotAddDone(TDEProcess *_kp)
{ {
fclose(fd); fclose(fd);
slotAddExited(_kp); slotAddExited(_kp);
@ -361,9 +361,9 @@ void CompressedFile::unarchFileInternal()
else else
dest=m_destDir; dest=m_destDir;
KProcess proc; TDEProcess proc;
proc << "cp" << m_tmpfile << dest; proc << "cp" << m_tmpfile << dest;
proc.start(KProcess::Block); proc.start(TDEProcess::Block);
} }
emit sigExtract(true); emit sigExtract(true);
} }

@ -28,7 +28,7 @@
class TQString; class TQString;
class TQCString; class TQCString;
class TQStringList; class TQStringList;
class KProcess; class TDEProcess;
class KTempDir; class KTempDir;
class Arch; class Arch;
@ -61,9 +61,9 @@ public:
TQString tempFileName(){ return m_tmpfile; } TQString tempFileName(){ return m_tmpfile; }
private slots: private slots:
void slotUncompressDone(KProcess *); void slotUncompressDone(TDEProcess *);
void slotAddInProgress(KProcess*, char*, int); void slotAddInProgress(TDEProcess*, char*, int);
void slotAddDone(KProcess*); void slotAddDone(TDEProcess*);
private: private:
void initExtract( bool, bool, bool ); void initExtract( bool, bool, bool );

@ -105,7 +105,7 @@ ExtractionDialog::ExtractionDialog( TQWidget *parent, const char *name,
KURLCompletion *comp = new KURLCompletion(); KURLCompletion *comp = new KURLCompletion();
comp->setReplaceHome( true ); comp->setReplaceHome( true );
comp->setCompletionMode( KGlobalSettings::CompletionAuto ); comp->setCompletionMode( TDEGlobalSettings::CompletionAuto );
combobox->setCompletionObject( comp ); combobox->setCompletionObject( comp );
combobox->setMaxCount( 20 ); combobox->setMaxCount( 20 );
combobox->setInsertionPolicy( TQComboBox::AtTop ); combobox->setInsertionPolicy( TQComboBox::AtTop );

@ -153,7 +153,7 @@ void FileLVI::setText( int column, const TQString &text )
else else
m_ratio = text.toDouble(); m_ratio = text.toDouble();
TQListViewItem::setText( column, i18n( "Packed Ratio", "%1 %" ) TQListViewItem::setText( column, i18n( "Packed Ratio", "%1 %" )
.arg(KGlobal::locale()->formatNumber( m_ratio, 1 ) ) .arg(TDEGlobal::locale()->formatNumber( m_ratio, 1 ) )
); );
} }
else if ( colName == timeStampStrCol ) else if ( colName == timeStampStrCol )
@ -163,7 +163,7 @@ void FileLVI::setText( int column, const TQString &text )
else else
{ {
m_timeStamp = TQDateTime::fromString( text, Qt::ISODate ); m_timeStamp = TQDateTime::fromString( text, Qt::ISODate );
TQListViewItem::setText( column, KGlobal::locale()->formatDateTime( m_timeStamp ) ); TQListViewItem::setText( column, TDEGlobal::locale()->formatDateTime( m_timeStamp ) );
} }
} }
else else
@ -354,7 +354,7 @@ FileListView::contentsMouseMoveEvent(TQMouseEvent *e)
{ {
KListView::contentsMouseMoveEvent(e); KListView::contentsMouseMoveEvent(e);
} }
else if( ( m_presspos - e->pos() ).manhattanLength() > KGlobalSettings::dndEventDelay() ) else if( ( m_presspos - e->pos() ).manhattanLength() > TDEGlobalSettings::dndEventDelay() )
{ {
m_pressed = false; // Prevent triggering again m_pressed = false; // Prevent triggering again
if(isSelectionEmpty()) if(isSelectionEmpty())

@ -144,16 +144,16 @@ void LhaArch::open()
m_finished = false; m_finished = false;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
*kp << m_archiver_program << "v" << m_filename; *kp << m_archiver_program << "v" << m_filename;
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedTOC(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedTOC(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotOpenExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigOpen( this, false, TQString(), 0 ); emit sigOpen( this, false, TQString(), 0 );
@ -194,7 +194,7 @@ void LhaArch::addDir( const TQString & dirName )
void LhaArch::addFile( const TQStringList &urls ) void LhaArch::addFile( const TQStringList &urls )
{ {
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_archiver_program; *kp << m_archiver_program;
@ -216,14 +216,14 @@ void LhaArch::addFile( const TQStringList &urls )
*kp << fileURL.fileName(); *kp << fileURL.fileName();
} }
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotAddExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigAdd( false ); emit sigAdd( false );
@ -241,7 +241,7 @@ void LhaArch::unarchFileInternal()
return; return;
} }
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_archiver_program << "xfw=" + m_destDir << m_filename; *kp << m_archiver_program << "xfw=" + m_destDir << m_filename;
@ -257,14 +257,14 @@ void LhaArch::unarchFileInternal()
} }
} }
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotExtractExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigExtract( false ); emit sigExtract( false );
@ -276,7 +276,7 @@ void LhaArch::remove( TQStringList *list )
if ( !list ) if ( !list )
return; return;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_archiver_program << "df" << m_filename; *kp << m_archiver_program << "df" << m_filename;
@ -287,14 +287,14 @@ void LhaArch::remove( TQStringList *list )
*kp << ( *it ); *kp << ( *it );
} }
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotDeleteExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigDelete( false ); emit sigDelete( false );

@ -177,7 +177,7 @@ MainWindow::file_reload()
void void
MainWindow::editToolbars() MainWindow::editToolbars()
{ {
saveMainWindowSettings( KGlobal::config(), TQString::fromLatin1("MainWindow") ); saveMainWindowSettings( TDEGlobal::config(), TQString::fromLatin1("MainWindow") );
KEditToolbar dlg( factory(), this ); KEditToolbar dlg( factory(), this );
connect(&dlg, TQT_SIGNAL( newToolbarConfig() ), this, TQT_SLOT( slotNewToolbarConfig() )); connect(&dlg, TQT_SIGNAL( newToolbarConfig() ), this, TQT_SLOT( slotNewToolbarConfig() ));
dlg.exec(); dlg.exec();
@ -187,7 +187,7 @@ void
MainWindow::slotNewToolbarConfig() MainWindow::slotNewToolbarConfig()
{ {
createGUI( m_part ); createGUI( m_part );
applyMainWindowSettings( KGlobal::config(), TQString::fromLatin1("MainWindow") ); applyMainWindowSettings( TDEGlobal::config(), TQString::fromLatin1("MainWindow") );
} }
void void

@ -56,9 +56,9 @@ RarArch::RarArch( ArkWidget *_gui, const TQString & _fileName )
: Arch( _gui, _fileName ) : Arch( _gui, _fileName )
{ {
// Check if rar is available // Check if rar is available
bool have_rar = !KGlobal::dirs()->findExe( "rar" ).isNull(); bool have_rar = !TDEGlobal::dirs()->findExe( "rar" ).isNull();
bool have_unrar = !KGlobal::dirs()->findExe( "unrar" ).isNull(); bool have_unrar = !TDEGlobal::dirs()->findExe( "unrar" ).isNull();
bool have_unrar_free = !KGlobal::dirs()->findExe( "unrar-free" ).isNull(); bool have_unrar_free = !TDEGlobal::dirs()->findExe( "unrar-free" ).isNull();
if ( have_rar ) if ( have_rar )
{ {
@ -140,7 +140,7 @@ void RarArch::open()
m_header_removed = false; m_header_removed = false;
m_finished = false; m_finished = false;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
*kp << m_unarchiver_program << "v" << "-c-"; *kp << m_unarchiver_program << "v" << "-c-";
if ( !m_password.isEmpty() ) if ( !m_password.isEmpty() )
@ -150,14 +150,14 @@ void RarArch::open()
*kp << m_filename; *kp << m_filename;
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedTOC(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedTOC(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotOpenExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigOpen( this, false, TQString(), 0 ); emit sigOpen( this, false, TQString(), 0 );
@ -204,7 +204,7 @@ void RarArch::addDir( const TQString & _dirName )
void RarArch::addFile( const TQStringList & urls ) void RarArch::addFile( const TQStringList & urls )
{ {
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_archiver_program; *kp << m_archiver_program;
@ -234,14 +234,14 @@ void RarArch::addFile( const TQStringList & urls )
*kp << url.fileName(); *kp << url.fileName();
} }
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotAddExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigAdd( false ); emit sigAdd( false );
@ -256,7 +256,7 @@ void RarArch::unarchFileInternal()
return; return;
} }
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
// extract (and maybe overwrite) // extract (and maybe overwrite)
@ -291,14 +291,14 @@ void RarArch::unarchFileInternal()
*kp << m_destDir ; *kp << m_destDir ;
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotExtractExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigExtract( false ); emit sigExtract( false );
@ -315,7 +315,7 @@ void RarArch::remove( TQStringList *list )
if ( !list ) if ( !list )
return; return;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_archiver_program << "d" << m_filename; *kp << m_archiver_program << "d" << m_filename;
@ -327,14 +327,14 @@ void RarArch::remove( TQStringList *list )
*kp << str; *kp << str;
} }
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotDeleteExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigDelete( false ); emit sigDelete( false );
@ -345,7 +345,7 @@ void RarArch::test()
{ {
clearShellOutput(); clearShellOutput();
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_unarchiver_program << "t"; *kp << m_unarchiver_program << "t";
@ -355,14 +355,14 @@ void RarArch::test()
*kp << m_filename; *kp << m_filename;
connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( processExited(KProcess*) ), connect( kp, SIGNAL( processExited(TDEProcess*) ),
SLOT( slotTestExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigTest( false ); emit sigTest( false );

@ -46,9 +46,9 @@ SevenZipArch::SevenZipArch( ArkWidget *gui, const TQString &filename )
: Arch( gui, filename ), m_nameColumnPos( -1 ) : Arch( gui, filename ), m_nameColumnPos( -1 )
{ {
// Check if 7z is available // Check if 7z is available
bool have_7z = !KGlobal::dirs()->findExe( "7z" ).isNull(); bool have_7z = !TDEGlobal::dirs()->findExe( "7z" ).isNull();
// Check if 7za is available // Check if 7za is available
bool have_7za = !KGlobal::dirs()->findExe( "7za" ).isNull(); bool have_7za = !TDEGlobal::dirs()->findExe( "7za" ).isNull();
if ( have_7z ) if ( have_7z )
m_archiver_program = m_unarchiver_program = "7z"; // Use 7z m_archiver_program = m_unarchiver_program = "7z"; // Use 7z
@ -99,17 +99,17 @@ void SevenZipArch::open()
m_header_removed = false; m_header_removed = false;
m_finished = false; m_finished = false;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
*kp << m_archiver_program << "l" << m_filename; *kp << m_archiver_program << "l" << m_filename;
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedTOC(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedTOC(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotOpenExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigOpen( this, false, TQString(), 0 ); emit sigOpen( this, false, TQString(), 0 );
@ -130,7 +130,7 @@ void SevenZipArch::createPassword()
void SevenZipArch::addFile( const TQStringList & urls ) void SevenZipArch::addFile( const TQStringList & urls )
{ {
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_archiver_program << "a" ; *kp << m_archiver_program << "a" ;
@ -150,14 +150,14 @@ void SevenZipArch::addFile( const TQStringList & urls )
*kp << url.fileName(); *kp << url.fileName();
} }
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotAddExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigAdd( false ); emit sigAdd( false );
@ -184,7 +184,7 @@ void SevenZipArch::remove( TQStringList *list )
if ( !list ) if ( !list )
return; return;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_archiver_program << "d" << m_filename; *kp << m_archiver_program << "d" << m_filename;
@ -195,14 +195,14 @@ void SevenZipArch::remove( TQStringList *list )
*kp << *it; *kp << *it;
} }
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotDeleteExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigDelete( false ); emit sigDelete( false );
@ -217,7 +217,7 @@ void SevenZipArch::unarchFileInternal( )
return; return;
} }
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
// extract (and maybe overwrite) // extract (and maybe overwrite)
@ -249,14 +249,14 @@ void SevenZipArch::unarchFileInternal( )
*kp << "-o" + m_destDir ; *kp << "-o" + m_destDir ;
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotExtractExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigExtract( false ); emit sigExtract( false );
@ -333,7 +333,7 @@ bool SevenZipArch::processLine( const TQCString& _line )
return true; return true;
} }
void SevenZipArch::slotReceivedTOC( KProcess*, char* data, int length ) void SevenZipArch::slotReceivedTOC( TDEProcess*, char* data, int length )
{ {
char endchar = data[ length ]; char endchar = data[ length ];
data[ length ] = '\0'; data[ length ] = '\0';
@ -395,7 +395,7 @@ void SevenZipArch::test()
{ {
clearShellOutput(); clearShellOutput();
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_unarchiver_program << "t"; *kp << m_unarchiver_program << "t";
@ -405,14 +405,14 @@ void SevenZipArch::test()
*kp << m_filename; *kp << m_filename;
connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( processExited(KProcess*) ), connect( kp, SIGNAL( processExited(TDEProcess*) ),
SLOT( slotTestExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigTest( false ); emit sigTest( false );

@ -48,7 +48,7 @@ class SevenZipArch : public Arch
protected slots: protected slots:
virtual bool processLine( const TQCString& line ); virtual bool processLine( const TQCString& line );
virtual void slotReceivedTOC( KProcess*, char*, int ); virtual void slotReceivedTOC( TDEProcess*, char*, int );
private: private:
void setHeaders(); void setHeaders();

@ -149,13 +149,13 @@ void TarArch::updateArch()
else else
fd = NULL; fd = NULL;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
KProcess::Communication flag = KProcess::AllOutput; TDEProcess::Communication flag = TDEProcess::AllOutput;
if ( getCompressor() == "lzop" ) if ( getCompressor() == "lzop" )
{ {
kp->setUsePty( KProcess::Stdin, false ); kp->setUsePty( TDEProcess::Stdin, false );
flag = KProcess::Stdout; flag = TDEProcess::Stdout;
} }
if ( !getCompressor().isNull() ) if ( !getCompressor().isNull() )
*kp << getCompressor() << "-c" << tmpfile; *kp << getCompressor() << "-c" << tmpfile;
@ -163,15 +163,15 @@ void TarArch::updateArch()
*kp << "cat" << tmpfile; *kp << "cat" << tmpfile;
connect(kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), connect(kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQT_SLOT(updateProgress( KProcess *, char *, int ))); this, TQT_SLOT(updateProgress( TDEProcess *, char *, int )));
connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
(Arch *)this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); (Arch *)this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect(kp, TQT_SIGNAL(processExited(KProcess *)), connect(kp, TQT_SIGNAL(processExited(TDEProcess *)),
this, TQT_SLOT(updateFinished(KProcess *)) ); this, TQT_SLOT(updateFinished(TDEProcess *)) );
if ( !fd || kp->start(KProcess::NotifyOnExit, flag) == false) if ( !fd || kp->start(TDEProcess::NotifyOnExit, flag) == false)
{ {
KMessageBox::error(0, i18n("Trouble writing to the archive...")); KMessageBox::error(0, i18n("Trouble writing to the archive..."));
emit updateDone(); emit updateDone();
@ -179,7 +179,7 @@ void TarArch::updateArch()
} }
} }
void TarArch::updateProgress( KProcess * _proc, char *_buffer, int _bufflen ) void TarArch::updateProgress( TDEProcess * _proc, char *_buffer, int _bufflen )
{ {
// we're trying to capture the output of a command like this // we're trying to capture the output of a command like this
// gzip -c myarch.tar // gzip -c myarch.tar
@ -257,7 +257,7 @@ TarArch::open()
// //
// Now it's essential - used later to decide whether pathnames in the // Now it's essential - used later to decide whether pathnames in the
// tar archive are plain or start with "./" // tar archive are plain or start with "./"
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
*kp << m_archiver_program; *kp << m_archiver_program;
@ -272,14 +272,14 @@ TarArch::open()
m_header_removed = false; m_header_removed = false;
m_finished = false; m_finished = false;
connect(kp, TQT_SIGNAL(processExited(KProcess *)), connect(kp, TQT_SIGNAL(processExited(TDEProcess *)),
this, TQT_SLOT(slotListingDone(KProcess *))); this, TQT_SLOT(slotListingDone(TDEProcess *)));
connect(kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), connect(kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput( KProcess *, char *, int ))); this, TQT_SLOT(slotReceivedOutput( TDEProcess *, char *, int )));
connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
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.") ); KMessageBox::error( 0, i18n("Could not start a subprocess.") );
} }
@ -315,7 +315,7 @@ void TarArch::openFirstCreateTempDone()
m_listingThread->start(); m_listingThread->start();
} }
void TarArch::slotListingDone(KProcess *_kp) void TarArch::slotListingDone(TDEProcess *_kp)
{ {
const TQString list = getLastShellOutput(); const TQString list = getLastShellOutput();
FileListView *flv = m_gui->fileList(); FileListView *flv = m_gui->fileList();
@ -393,29 +393,29 @@ void TarArch::createTmp()
else else
fd = NULL; fd = NULL;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
kdDebug(1601) << "Uncompressor is " << strUncompressor << endl; kdDebug(1601) << "Uncompressor is " << strUncompressor << endl;
*kp << strUncompressor; *kp << strUncompressor;
KProcess::Communication flag = KProcess::AllOutput; TDEProcess::Communication flag = TDEProcess::AllOutput;
if (strUncompressor == "lzop") if (strUncompressor == "lzop")
{ {
// setting up a pty for lzop, since it doesn't like stdin to // setting up a pty for lzop, since it doesn't like stdin to
// be /dev/null ( "no filename allowed when reading from stdin" ) // be /dev/null ( "no filename allowed when reading from stdin" )
// - but it used to work without this ? ( Feb 13, 2003 ) // - but it used to work without this ? ( Feb 13, 2003 )
kp->setUsePty( KProcess::Stdin, false ); kp->setUsePty( TDEProcess::Stdin, false );
flag = KProcess::Stdout; flag = TDEProcess::Stdout;
*kp << "-d"; *kp << "-d";
} }
*kp << "-c" << m_filename; *kp << "-c" << m_filename;
connect(kp, TQT_SIGNAL(processExited(KProcess *)), connect(kp, TQT_SIGNAL(processExited(TDEProcess *)),
this, TQT_SLOT(createTmpFinished(KProcess *))); this, TQT_SLOT(createTmpFinished(TDEProcess *)));
connect(kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), connect(kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQT_SLOT(createTmpProgress( KProcess *, char *, int ))); this, TQT_SLOT(createTmpProgress( TDEProcess *, char *, int )));
connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
if (kp->start(KProcess::NotifyOnExit, flag ) == false) if (kp->start(TDEProcess::NotifyOnExit, flag ) == false)
{ {
KMessageBox::error(0, i18n("Unable to fork a decompressor")); KMessageBox::error(0, i18n("Unable to fork a decompressor"));
emit sigOpen( this, false, TQString(), 0 ); emit sigOpen( this, false, TQString(), 0 );
@ -433,7 +433,7 @@ void TarArch::createTmp()
} }
} }
void TarArch::createTmpProgress( KProcess * _proc, char *_buffer, int _bufflen ) void TarArch::createTmpProgress( TDEProcess * _proc, char *_buffer, int _bufflen )
{ {
// we're trying to capture the output of a command like this // we're trying to capture the output of a command like this
// gunzip -c myarch.tar.gz // gunzip -c myarch.tar.gz
@ -532,7 +532,7 @@ void TarArch::addFileCreateTempDone()
disconnect( this, TQT_SIGNAL( createTempDone() ), this, TQT_SLOT( addFileCreateTempDone() ) ); disconnect( this, TQT_SIGNAL( createTempDone() ), this, TQT_SLOT( addFileCreateTempDone() ) );
TQStringList * urls = &m_filesToAdd; TQStringList * urls = &m_filesToAdd;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
*kp << m_archiver_program; *kp << m_archiver_program;
if( ArkSettings::replaceOnlyWithNewer()) if( ArkSettings::replaceOnlyWithNewer())
@ -562,25 +562,25 @@ void TarArch::addFileCreateTempDone()
kdDebug(1601) << *strTemp << " " << endl; kdDebug(1601) << *strTemp << " " << endl;
} }
connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(processExited(KProcess*)), this, connect( kp, TQT_SIGNAL(processExited(TDEProcess*)), this,
TQT_SLOT(slotAddFinished(KProcess*))); TQT_SLOT(slotAddFinished(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.") ); KMessageBox::error( 0, i18n("Could not start a subprocess.") );
emit sigAdd(false); emit sigAdd(false);
} }
} }
void TarArch::slotAddFinished(KProcess *_kp) void TarArch::slotAddFinished(TDEProcess *_kp)
{ {
disconnect( _kp, TQT_SIGNAL(processExited(KProcess*)), this, disconnect( _kp, TQT_SIGNAL(processExited(TDEProcess*)), this,
TQT_SLOT(slotAddFinished(KProcess*))); TQT_SLOT(slotAddFinished(TDEProcess*)));
m_pTmpProc = _kp; m_pTmpProc = _kp;
m_filesToAdd = TQStringList(); m_filesToAdd = TQStringList();
if ( compressed ) if ( compressed )
@ -613,7 +613,7 @@ void TarArch::unarchFileInternal()
TQString tmp; TQString tmp;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_archiver_program; *kp << m_archiver_program;
@ -641,15 +641,15 @@ void TarArch::unarchFileInternal()
} }
} }
connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(processExited(KProcess*)), this, connect( kp, TQT_SIGNAL(processExited(TDEProcess*)), this,
TQT_SLOT(slotExtractExited(KProcess*))); 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.") ); KMessageBox::error( 0, i18n("Could not start a subprocess.") );
emit sigExtract(false); emit sigExtract(false);
@ -670,7 +670,7 @@ void TarArch::removeCreateTempDone()
disconnect( this, TQT_SIGNAL( createTempDone() ), this, TQT_SLOT( removeCreateTempDone() ) ); disconnect( this, TQT_SIGNAL( createTempDone() ), this, TQT_SLOT( removeCreateTempDone() ) );
TQString name, tmp; TQString name, tmp;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_archiver_program << "--delete" << "-f" ; *kp << m_archiver_program << "--delete" << "-f" ;
if (compressed) if (compressed)
@ -685,22 +685,22 @@ void TarArch::removeCreateTempDone()
} }
m_filesToRemove = TQStringList(); m_filesToRemove = TQStringList();
connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int))); this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(processExited(KProcess*)), this, connect( kp, TQT_SIGNAL(processExited(TDEProcess*)), this,
TQT_SLOT(slotDeleteExited(KProcess*))); 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.") ); KMessageBox::error( 0, i18n("Could not start a subprocess.") );
emit sigDelete(false); emit sigDelete(false);
} }
} }
void TarArch::slotDeleteExited(KProcess *_kp) void TarArch::slotDeleteExited(TDEProcess *_kp)
{ {
m_pTmpProc2 = _kp; m_pTmpProc2 = _kp;
if ( compressed ) if ( compressed )
@ -730,14 +730,14 @@ void TarArch::addDir(const TQString & _dirName)
addFile(list); addFile(list);
} }
void TarArch::openFinished( KProcess * ) void TarArch::openFinished( TDEProcess * )
{ {
// do nothing // do nothing
// turn off busy light (when someone makes one) // turn off busy light (when someone makes one)
kdDebug(1601) << "Open finshed" << endl; kdDebug(1601) << "Open finshed" << endl;
} }
void TarArch::createTmpFinished( KProcess *_kp ) void TarArch::createTmpFinished( TDEProcess *_kp )
{ {
createTmpInProgress = false; createTmpInProgress = false;
fclose(fd); fclose(fd);
@ -747,7 +747,7 @@ void TarArch::createTmpFinished( KProcess *_kp )
emit createTempDone(); emit createTempDone();
} }
void TarArch::updateFinished( KProcess *_kp ) void TarArch::updateFinished( TDEProcess *_kp )
{ {
fclose(fd); fclose(fd);
updateInProgress = false; updateInProgress = false;
@ -789,7 +789,7 @@ void TarArch::test()
{ {
clearShellOutput(); clearShellOutput();
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
TQString uncomp = getUnCompressor(); TQString uncomp = getUnCompressor();
@ -808,14 +808,14 @@ void TarArch::test()
*kp << m_filename; *kp << m_filename;
connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( processExited(KProcess*) ), connect( kp, SIGNAL( processExited(TDEProcess*) ),
SLOT( slotTestExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigTest( false ); emit sigTest( false );

@ -37,7 +37,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class TQString; class TQString;
class TQStrList; class TQStrList;
class KProcess; class TDEProcess;
class KTempDir; class KTempDir;
class KTarDirectory; class KTarDirectory;
class KTar; class KTar;
@ -77,14 +77,14 @@ class TarArch : public Arch
TQString getUnCompressor(); TQString getUnCompressor();
public slots: public slots:
void updateProgress( KProcess *_kp, char *_buffer, int _bufflen ); void updateProgress( TDEProcess *_kp, char *_buffer, int _bufflen );
void openFinished( KProcess * ); void openFinished( TDEProcess * );
void updateFinished( KProcess * ); void updateFinished( TDEProcess * );
void createTmpFinished( KProcess * ); void createTmpFinished( TDEProcess * );
void createTmpProgress( KProcess *_kp, char *_buffer, int _bufflen ); void createTmpProgress( TDEProcess *_kp, char *_buffer, int _bufflen );
void slotAddFinished( KProcess * ); void slotAddFinished( TDEProcess * );
void slotListingDone( KProcess * ); void slotListingDone( TDEProcess * );
void slotDeleteExited( KProcess * ); void slotDeleteExited( TDEProcess * );
signals: signals:
void removeDone(); void removeDone();
@ -126,8 +126,8 @@ class TarArch : public Arch
FILE *fd; FILE *fd;
TQStringList m_filesToAdd; TQStringList m_filesToAdd;
TQStringList m_filesToRemove; TQStringList m_filesToRemove;
KProcess * m_pTmpProc; TDEProcess * m_pTmpProc;
KProcess * m_pTmpProc2; TDEProcess * m_pTmpProc2;
bool failed; bool failed;
bool m_dotslash; bool m_dotslash;
TarListingThread *m_listingThread; TarListingThread *m_listingThread;

@ -90,18 +90,18 @@ void ZipArch::open()
m_header_removed = false; m_header_removed = false;
m_finished = false; m_finished = false;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
*kp << m_unarchiver_program << "-v" << m_filename; *kp << m_unarchiver_program << "-v" << m_filename;
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedTOC(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedTOC(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotOpenExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigOpen( this, false, TQString(), 0 ); emit sigOpen( this, false, TQString(), 0 );
@ -138,7 +138,7 @@ void ZipArch::addDir( const TQString & _dirName )
void ZipArch::addFile( const TQStringList &urls ) void ZipArch::addFile( const TQStringList &urls )
{ {
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_archiver_program; *kp << m_archiver_program;
@ -172,14 +172,14 @@ void ZipArch::addFile( const TQStringList &urls )
*kp << fileURL.fileName(); *kp << fileURL.fileName();
} }
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotAddExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigAdd( false ); emit sigAdd( false );
@ -196,7 +196,7 @@ void ZipArch::unarchFileInternal()
return; return;
} }
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_unarchiver_program; *kp << m_unarchiver_program;
@ -231,14 +231,14 @@ void ZipArch::unarchFileInternal()
*kp << "-d" << m_destDir; *kp << "-d" << m_destDir;
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotExtractExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigExtract( false ); emit sigExtract( false );
@ -256,7 +256,7 @@ void ZipArch::remove( TQStringList *list )
return; return;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_archiver_program << "-d" << m_filename; *kp << m_archiver_program << "-d" << m_filename;
@ -268,14 +268,14 @@ void ZipArch::remove( TQStringList *list )
*kp << str; *kp << str;
} }
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotDeleteExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigDelete( false ); emit sigDelete( false );
@ -286,7 +286,7 @@ void ZipArch::test()
{ {
clearShellOutput(); clearShellOutput();
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_unarchiver_program << "-t"; *kp << m_unarchiver_program << "-t";
@ -296,14 +296,14 @@ void ZipArch::test()
*kp << m_filename; *kp << m_filename;
connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( processExited(KProcess*) ), connect( kp, SIGNAL( processExited(TDEProcess*) ),
SLOT( slotTestExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigTest( false ); emit sigTest( false );

@ -108,16 +108,16 @@ void ZooArch::open()
m_finished = false; m_finished = false;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
*kp << m_archiver_program << "l" << m_filename; *kp << m_archiver_program << "l" << m_filename;
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedTOC(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedTOC(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotOpenExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigOpen( this, false, TQString(), 0 ); emit sigOpen( this, false, TQString(), 0 );
@ -155,7 +155,7 @@ void ZooArch::addDir( const TQString & _dirName )
void ZooArch::addFile( const TQStringList &urls ) void ZooArch::addFile( const TQStringList &urls )
{ {
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_archiver_program; *kp << m_archiver_program;
@ -177,14 +177,14 @@ void ZooArch::addFile( const TQStringList &urls )
*kp << fileURL.fileName(); *kp << fileURL.fileName();
} }
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotAddExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigAdd( false ); emit sigAdd( false );
@ -209,7 +209,7 @@ void ZooArch::unarchFileInternal()
// We already checked the validity of the dir before coming here // We already checked the validity of the dir before coming here
Q_ASSERT(ret); Q_ASSERT(ret);
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_archiver_program; *kp << m_archiver_program;
@ -236,14 +236,14 @@ void ZooArch::unarchFileInternal()
} }
} }
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotExtractExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigExtract( false ); emit sigExtract( false );
@ -255,7 +255,7 @@ void ZooArch::remove( TQStringList *list )
if (!list) if (!list)
return; return;
KProcess *kp = m_currentProcess = new KProcess; TDEProcess *kp = m_currentProcess = new TDEProcess;
kp->clearArguments(); kp->clearArguments();
*kp << m_archiver_program << "D" << m_filename; *kp << m_archiver_program << "D" << m_filename;
@ -267,14 +267,14 @@ void ZooArch::remove( TQStringList *list )
*kp << str; *kp << str;
} }
connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ), connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) ); TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(KProcess*) ), connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotDeleteExited(KProcess*) ) ); 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." ) ); KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
emit sigDelete( false ); emit sigDelete( false );

@ -43,7 +43,7 @@ extern "C"
{ {
KDE_EXPORT KPanelApplet* init(TQWidget *parent, const TQString& configFile) KDE_EXPORT KPanelApplet* init(TQWidget *parent, const TQString& configFile)
{ {
KGlobal::locale()->insertCatalogue("kcharselectapplet"); TDEGlobal::locale()->insertCatalogue("kcharselectapplet");
return new CharSelectApplet(configFile, KPanelApplet::Normal, return new CharSelectApplet(configFile, KPanelApplet::Normal,
KPanelApplet::About | KPanelApplet::Preferences, KPanelApplet::About | KPanelApplet::Preferences,
parent, "kcharselectapplet"); parent, "kcharselectapplet");

@ -584,7 +584,7 @@ TQWidget* KCalculator::setupNumericKeys(TQWidget *parent)
pbMinus, TQT_SLOT(slotSetAccelDisplayMode(bool))); pbMinus, TQT_SLOT(slotSetAccelDisplayMode(bool)));
connect(pbMinus, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotMinusclicked(void))); connect(pbMinus, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotMinusclicked(void)));
pbPeriod = new KCalcButton(KGlobal::locale()->decimalSymbol(), thisPage, pbPeriod = new KCalcButton(TDEGlobal::locale()->decimalSymbol(), thisPage,
"Period-Button", i18n("Decimal point")); "Period-Button", i18n("Decimal point"));
connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)), connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)),
TQT_TQOBJECT(pbPeriod), TQT_SLOT(slotSetAccelDisplayMode(bool))); TQT_TQOBJECT(pbPeriod), TQT_SLOT(slotSetAccelDisplayMode(bool)));

@ -45,7 +45,7 @@
<group name="Font"> <group name="Font">
<entry name="Font" type="Font"> <entry name="Font" type="Font">
<label>The font to use in the display.</label> <label>The font to use in the display.</label>
<default code="true">TQFont(KGlobalSettings::generalFont().family(), 14, TQFont::Bold)</default> <default code="true">TQFont(TDEGlobalSettings::generalFont().family(), 14, TQFont::Bold)</default>
</entry> </entry>
</group> </group>
<group name="Precision"> <group name="Precision">

@ -268,10 +268,10 @@ void KCalcDisplay::setText(TQString const &string)
// truncating, formatting and appending again // truncating, formatting and appending again
if (string.endsWith(".")) { if (string.endsWith(".")) {
localizedString.truncate(localizedString.length() - 1); localizedString.truncate(localizedString.length() - 1);
localizedString = KGlobal::locale()->formatNumber(localizedString, false, 0); // Note: rounding happened already above! localizedString = TDEGlobal::locale()->formatNumber(localizedString, false, 0); // Note: rounding happened already above!
localizedString.append(KGlobal::locale()->decimalSymbol()); localizedString.append(TDEGlobal::locale()->decimalSymbol());
} else } else
localizedString = KGlobal::locale()->formatNumber(string, false, 0); // Note: rounding happened already above! localizedString = TDEGlobal::locale()->formatNumber(string, false, 0); // Note: rounding happened already above!
TQLabel::setText(localizedString); TQLabel::setText(localizedString);
emit changedText(localizedString); emit changedText(localizedString);

@ -34,7 +34,7 @@ int main(int argc, char **argv)
KConfig *config = kapp->config(); KConfig *config = kapp->config();
config->setGroup("General"); config->setGroup("General");
TQString font(config->readEntry("selectedFont", KGlobalSettings::generalFont().family())); TQString font(config->readEntry("selectedFont", TDEGlobalSettings::generalFont().family()));
TQChar c = TQChar(static_cast<unsigned short>(config->readNumEntry("char",33))); TQChar c = TQChar(static_cast<unsigned short>(config->readNumEntry("char",33)));
int tn = config->readNumEntry("table",0); int tn = config->readNumEntry("table",0);
bool direction = config->readNumEntry("entryDirection",0); bool direction = config->readNumEntry("entryDirection",0);

@ -74,7 +74,7 @@ IRKick::IRKick(const TQCString &obj) : TQObject(), DCOPObject(obj), npApp(TQStri
theTrayIcon->contextMenu()->changeTitle(0, "IRKick"); theTrayIcon->contextMenu()->changeTitle(0, "IRKick");
theTrayIcon->contextMenu()->insertItem(SmallIcon( "configure" ), i18n("&Configure..."), this, TQT_SLOT(slotConfigure())); theTrayIcon->contextMenu()->insertItem(SmallIcon( "configure" ), i18n("&Configure..."), this, TQT_SLOT(slotConfigure()));
theTrayIcon->contextMenu()->insertSeparator(); theTrayIcon->contextMenu()->insertSeparator();
theTrayIcon->contextMenu()->insertItem(SmallIcon( "help" ), KStdGuiItem::help().text(), (new KHelpMenu(theTrayIcon, KGlobal::instance()->aboutData()))->menu()); theTrayIcon->contextMenu()->insertItem(SmallIcon( "help" ), KStdGuiItem::help().text(), (new KHelpMenu(theTrayIcon, TDEGlobal::instance()->aboutData()))->menu());
theTrayIcon->actionCollection()->action("file_quit")->disconnect(TQT_SIGNAL(activated())); theTrayIcon->actionCollection()->action("file_quit")->disconnect(TQT_SIGNAL(activated()));
connect(theTrayIcon->actionCollection()->action("file_quit"), TQT_SIGNAL(activated()), TQT_SLOT(doQuit())); connect(theTrayIcon->actionCollection()->action("file_quit"), TQT_SIGNAL(activated()), TQT_SLOT(doQuit()));

@ -29,7 +29,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char *argv[])
TDECmdLineArgs::init( argc, argv, aboutData ); TDECmdLineArgs::init( argc, argv, aboutData );
KUniqueApplication::addCmdLineOptions(); KUniqueApplication::addCmdLineOptions();
KUniqueApplication app; KUniqueApplication app;
KGlobal::locale()->insertCatalogue( "kdelirc" ); TDEGlobal::locale()->insertCatalogue( "kdelirc" );
app.disableSessionManagement(); app.disableSessionManagement();
IRKick *theIRKick = new IRKick("IRKick"); IRKick *theIRKick = new IRKick("IRKick");

@ -51,7 +51,7 @@ K_EXPORT_COMPONENT_FACTORY(kcmlirc, theFactory("kcmlirc"))
KCMLirc::KCMLirc(TQWidget *parent, const char *name, TQStringList /*args*/) : DCOPObject("KCMLirc"), KCModule(parent, name) KCMLirc::KCMLirc(TQWidget *parent, const char *name, TQStringList /*args*/) : DCOPObject("KCMLirc"), KCModule(parent, name)
{ {
KGlobal::locale()->insertCatalogue( "kcmlirc" ); TDEGlobal::locale()->insertCatalogue( "kcmlirc" );
setAboutData(new TDEAboutData("kcmlirc", I18N_NOOP("TDE Lirc"), VERSION, I18N_NOOP("The TDE IR Remote Control System"), TDEAboutData::License_GPL_V2, "Copyright (c)2003 Gav Wood", I18N_NOOP("Use this to configure TDE's infrared remote control system in order to control any TDE application with your infrared remote control."), "http://www.kde.org")); setAboutData(new TDEAboutData("kcmlirc", I18N_NOOP("TDE Lirc"), VERSION, I18N_NOOP("The TDE IR Remote Control System"), TDEAboutData::License_GPL_V2, "Copyright (c)2003 Gav Wood", I18N_NOOP("Use this to configure TDE's infrared remote control system in order to control any TDE application with your infrared remote control."), "http://www.kde.org"));
setButtons(KCModule::Help); setButtons(KCModule::Help);
setQuickHelp(i18n("<h1>Remote Controls</h1><p>This module allows you to configure bindings between your remote controls and TDE applications. Simply select your remote control and click Add under the Actions/Buttons list. If you want TDE to attempt to automatically assign buttons to a supported application's actions, try clicking the Auto-Populate button.</p><p>To view the recognised applications and remote controls, simply select the <em>Loaded Extensions</em> tab.</p>")); setQuickHelp(i18n("<h1>Remote Controls</h1><p>This module allows you to configure bindings between your remote controls and TDE applications. Simply select your remote control and click Add under the Actions/Buttons list. If you want TDE to attempt to automatically assign buttons to a supported application's actions, try clicking the Auto-Populate button.</p><p>To view the recognised applications and remote controls, simply select the <em>Loaded Extensions</em> tab.</p>"));
@ -535,7 +535,7 @@ void KCMLirc::configChanged()
extern "C" extern "C"
{ {
KDE_EXPORT KCModule *create_kcmlirc(TQWidget *parent, const char *) KDE_EXPORT KCModule *create_kcmlirc(TQWidget *parent, const char *)
{ KGlobal::locale()->insertCatalogue("kcmlirc"); { TDEGlobal::locale()->insertCatalogue("kcmlirc");
return new KCMLirc(parent, "KCMLirc"); return new KCMLirc(parent, "KCMLirc");
} }
} }

@ -34,7 +34,7 @@ ProfileServer::~ProfileServer()
void ProfileServer::loadProfiles() void ProfileServer::loadProfiles()
{ {
TQStringList theFiles = KGlobal::dirs()->findAllResources("data", "profiles/*.profile.xml"); TQStringList theFiles = TDEGlobal::dirs()->findAllResources("data", "profiles/*.profile.xml");
for(TQStringList::iterator i = theFiles.begin(); i != theFiles.end(); ++i) for(TQStringList::iterator i = theFiles.begin(); i != theFiles.end(); ++i)
{ kdDebug() << "Found data file: " << *i << endl; { kdDebug() << "Found data file: " << *i << endl;
Profile *p = new Profile(); Profile *p = new Profile();

@ -34,7 +34,7 @@ RemoteServer::~RemoteServer()
void RemoteServer::loadRemotes() void RemoteServer::loadRemotes()
{ {
TQStringList theFiles = KGlobal::dirs()->findAllResources("data", "remotes/*.remote.xml"); TQStringList theFiles = TDEGlobal::dirs()->findAllResources("data", "remotes/*.remote.xml");
for(TQStringList::iterator i = theFiles.begin(); i != theFiles.end(); ++i) for(TQStringList::iterator i = theFiles.begin(); i != theFiles.end(); ++i)
{ kdDebug() << "Found data file: " << *i << endl; { kdDebug() << "Found data file: " << *i << endl;
Remote *p = new Remote(); Remote *p = new Remote();

@ -150,7 +150,7 @@ int main(int argc, char *argv[])
// Read configuration // Read configuration
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup(TQString::fromLatin1("Passwords")); config->setGroup(TQString::fromLatin1("Passwords"));
int timeout = config->readNumEntry(TQString::fromLatin1("Timeout"), defTimeout); int timeout = config->readNumEntry(TQString::fromLatin1("Timeout"), defTimeout);

@ -52,10 +52,10 @@ DiskList::DiskList(TQObject *parent, const char *name)
disks->setAutoDelete(TRUE); disks->setAutoDelete(TRUE);
// BackgroundProcesses **************************************** // BackgroundProcesses ****************************************
dfProc = new KProcess(); TQ_CHECK_PTR(dfProc); dfProc = new TDEProcess(); TQ_CHECK_PTR(dfProc);
connect( dfProc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int) ), connect( dfProc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int) ),
this, TQT_SLOT (receivedDFStdErrOut(KProcess *, char *, int)) ); this, TQT_SLOT (receivedDFStdErrOut(TDEProcess *, char *, int)) );
connect(dfProc,TQT_SIGNAL(processExited(KProcess *) ), connect(dfProc,TQT_SIGNAL(processExited(TDEProcess *) ),
this, TQT_SLOT(dfDone() ) ); this, TQT_SLOT(dfDone() ) );
readingDFStdErrOut=FALSE; readingDFStdErrOut=FALSE;
@ -231,7 +231,7 @@ TQFile f(FSTAB);
/*************************************************************************** /***************************************************************************
* is called, when the df-command writes on StdOut or StdErr * is called, when the df-command writes on StdOut or StdErr
**/ **/
void DiskList::receivedDFStdErrOut(KProcess *, char *data, int len ) void DiskList::receivedDFStdErrOut(TDEProcess *, char *data, int len )
{ {
kdDebug() << k_funcinfo << endl; kdDebug() << k_funcinfo << endl;
@ -263,7 +263,7 @@ int DiskList::readDF()
dfStringErrOut=""; // yet no data received dfStringErrOut=""; // yet no data received
dfProc->clearArguments(); dfProc->clearArguments();
(*dfProc) << "env" << "LC_ALL=POSIX" << DF_COMMAND << DF_ARGS; (*dfProc) << "env" << "LC_ALL=POSIX" << DF_COMMAND << DF_ARGS;
if (!dfProc->start( KProcess::NotifyOnExit, KProcess::AllOutput )) if (!dfProc->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ))
tqFatal(i18n("could not execute [%s]").local8Bit().data(), DF_COMMAND); tqFatal(i18n("could not execute [%s]").local8Bit().data(), DF_COMMAND);
return 1; return 1;
} }

@ -119,14 +119,14 @@ public slots:
void applySettings(); void applySettings();
private slots: private slots:
void receivedDFStdErrOut(KProcess *, char *data, int len); void receivedDFStdErrOut(TDEProcess *, char *data, int len);
void dfDone(); void dfDone();
private: private:
void replaceDeviceEntry(DiskEntry *disk); void replaceDeviceEntry(DiskEntry *disk);
Disks *disks; Disks *disks;
KProcess *dfProc; TDEProcess *dfProc;
TQString dfStringErrOut; TQString dfStringErrOut;
bool readingDFStdErrOut; bool readingDFStdErrOut;
KConfig *config; KConfig *config;

@ -56,10 +56,10 @@ void DiskEntry::init()
// BackgroundProcesses **************************************** // BackgroundProcesses ****************************************
sysProc = new KShellProcess(); TQ_CHECK_PTR(sysProc); sysProc = new KShellProcess(); TQ_CHECK_PTR(sysProc);
connect( sysProc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int) ), connect( sysProc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int) ),
this, TQT_SLOT (receivedSysStdErrOut(KProcess *, char *, int)) ); this, TQT_SLOT (receivedSysStdErrOut(TDEProcess *, char *, int)) );
connect( sysProc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int) ), connect( sysProc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int) ),
this, TQT_SLOT (receivedSysStdErrOut(KProcess *, char *, int)) ); this, TQT_SLOT (receivedSysStdErrOut(TDEProcess *, char *, int)) );
readingSysStdErrOut=FALSE; readingSysStdErrOut=FALSE;
@ -229,7 +229,7 @@ int DiskEntry::sysCall(const TQString & command)
sysStringErrOut=i18n("Called: %1\n\n").arg(command); // put the called command on ErrOut sysStringErrOut=i18n("Called: %1\n\n").arg(command); // put the called command on ErrOut
sysProc->clearArguments(); sysProc->clearArguments();
(*sysProc) << command; (*sysProc) << command;
if (!sysProc->start( KProcess::Block, KProcess::AllOutput )) if (!sysProc->start( TDEProcess::Block, TDEProcess::AllOutput ))
kdFatal() << i18n("could not execute %1").arg(command.local8Bit().data()) << endl; kdFatal() << i18n("could not execute %1").arg(command.local8Bit().data()) << endl;
if (sysProc->exitStatus()!=0) emit sysCallError(this, sysProc->exitStatus()); if (sysProc->exitStatus()!=0) emit sysCallError(this, sysProc->exitStatus());
@ -241,7 +241,7 @@ int DiskEntry::sysCall(const TQString & command)
/*************************************************************************** /***************************************************************************
* is called, when the Sys-command writes on StdOut or StdErr * is called, when the Sys-command writes on StdOut or StdErr
**/ **/
void DiskEntry::receivedSysStdErrOut(KProcess *, char *data, int len) void DiskEntry::receivedSysStdErrOut(TDEProcess *, char *data, int len)
{ {
TQString tmp = TQString::fromLocal8Bit(data, len); TQString tmp = TQString::fromLocal8Bit(data, len);
sysStringErrOut.append(tmp); sysStringErrOut.append(tmp);

@ -119,7 +119,7 @@ public slots:
TQString guessIconName(); TQString guessIconName();
private slots: private slots:
void receivedSysStdErrOut(KProcess *, char *data, int len); void receivedSysStdErrOut(TDEProcess *, char *data, int len);
private: private:
void init(); void init();

@ -332,7 +332,7 @@ void KDFWidget::updateDFDone( void ){
TQString size, percent; TQString size, percent;
if( disk->kBSize() > 0 ) if( disk->kBSize() > 0 )
{ {
percent = KGlobal::locale()->formatNumber(disk->percentFull(), 1) + '%'; percent = TDEGlobal::locale()->formatNumber(disk->percentFull(), 1) + '%';
size = disk->prettyKBSize(); size = disk->prettyKBSize();
} }
else else
@ -518,11 +518,11 @@ void KDFWidget::popupMenu( TQListViewItem *item, const TQPoint &p )
int pos = cmd.find("%m"); int pos = cmd.find("%m");
if( pos > 0 ) if( pos > 0 )
{ {
cmd = cmd.replace( pos, 2, KProcess::quote(disk->mountPoint()) ) + " &"; cmd = cmd.replace( pos, 2, TDEProcess::quote(disk->mountPoint()) ) + " &";
} }
else else
{ {
cmd += " " + KProcess::quote(disk->mountPoint()) +" &"; cmd += " " + TDEProcess::quote(disk->mountPoint()) +" &";
} }
system( TQFile::encodeName(cmd) ); system( TQFile::encodeName(cmd) );
} }

@ -267,11 +267,11 @@ void KwikDisk::toggleMount(int item)
int pos = cmd.find("%m"); int pos = cmd.find("%m");
if( pos > 0 ) if( pos > 0 )
{ {
cmd = cmd.replace( pos, 2, KProcess::quote(disk->mountPoint()) ) + " &"; cmd = cmd.replace( pos, 2, TDEProcess::quote(disk->mountPoint()) ) + " &";
} }
else else
{ {
cmd += " " + KProcess::quote(disk->mountPoint()) +" &"; cmd += " " + TDEProcess::quote(disk->mountPoint()) +" &";
} }
system( TQFile::encodeName(cmd) ); system( TQFile::encodeName(cmd) );
} }

@ -273,7 +273,7 @@ void MntConfigWidget::iconChanged(const TQString &iconName)
{ {
disk->setIconName(iconName); disk->setIconName(iconName);
mIconLineEdit->setText(iconName); mIconLineEdit->setText(iconName);
KIconLoader &loader = *KGlobal::iconLoader(); KIconLoader &loader = *TDEGlobal::iconLoader();
item->setPixmap( ICONCOL, loader.loadIcon( iconName, KIcon::Small)); item->setPixmap( ICONCOL, loader.loadIcon( iconName, KIcon::Small));
} }
break; break;

@ -342,7 +342,7 @@ void TopLevel::insertDate(){
TQString string; TQString string;
TQDate dt = TQDate::currentDate(); TQDate dt = TQDate::currentDate();
string = KGlobal::locale()->formatDate(dt); string = TDEGlobal::locale()->formatDate(dt);
eframe->getCursorPosition(&line,&column); eframe->getCursorPosition(&line,&column);
eframe->insertAt(string,line,column); eframe->insertAt(string,line,column);
@ -896,7 +896,7 @@ void TopLevel::statusbar_slot(){
void TopLevel::print() void TopLevel::print()
{ {
bool aborted = false; bool aborted = false;
TQString headerLeft = i18n("Date: %1").arg(KGlobal::locale()->formatDate(TQDate::currentDate(),true)); TQString headerLeft = i18n("Date: %1").arg(TDEGlobal::locale()->formatDate(TQDate::currentDate(),true));
TQString headerMid = i18n("File: %1").arg(m_caption); TQString headerMid = i18n("File: %1").arg(m_caption);
TQString headerRight; TQString headerRight;
@ -1215,8 +1215,8 @@ void TopLevel::set_colors()
} }
else else
{ {
ncgrp.setColor(TQColorGroup::Text, KGlobalSettings::textColor()); ncgrp.setColor(TQColorGroup::Text, TDEGlobalSettings::textColor());
ncgrp.setColor(TQColorGroup::Base, KGlobalSettings::baseColor()); ncgrp.setColor(TQColorGroup::Base, TDEGlobalSettings::baseColor());
} }
mypalette.setActive(ncgrp); mypalette.setActive(ncgrp);

@ -8,7 +8,7 @@
<group name="Text Font"> <group name="Text Font">
<entry name="Font" type="Font" key="KEditFont"> <entry name="Font" type="Font" key="KEditFont">
<label>Font</label> <label>Font</label>
<default code="true">KGlobalSettings::fixedFont()</default> <default code="true">TDEGlobalSettings::fixedFont()</default>
</entry> </entry>
</group> </group>
<group name="General Options"> <group name="General Options">
@ -18,11 +18,11 @@
</entry> </entry>
<entry name="TextColor" type="Color" key="ForeColor"> <entry name="TextColor" type="Color" key="ForeColor">
<label>Text color</label> <label>Text color</label>
<default code="true">KGlobalSettings::textColor()</default> <default code="true">TDEGlobalSettings::textColor()</default>
</entry> </entry>
<entry name="BackgroundColor" type="Color" key="BackColor"> <entry name="BackgroundColor" type="Color" key="BackColor">
<label>Background color</label> <label>Background color</label>
<default code="true">KGlobalSettings::baseColor()</default> <default code="true">TDEGlobalSettings::baseColor()</default>
</entry> </entry>
<entry name="WrapMode" type="Enum"> <entry name="WrapMode" type="Enum">
<label>Wrapping mode</label> <label>Wrapping mode</label>

@ -43,7 +43,7 @@ KTextFileDialog::KTextFileDialog(const TQString& startDir,
TQT_SLOT( slotSetEncoding() ), this, TQT_SLOT( slotSetEncoding() ), this,
"encoding" ); "encoding" );
TQStringList encodings = KGlobal::charsets()->descriptiveEncodingNames(); TQStringList encodings = TDEGlobal::charsets()->descriptiveEncodingNames();
encodings.prepend( i18n( "Default encoding" ) ); encodings.prepend( i18n( "Default encoding" ) );
mEncoding->setItems( encodings ); mEncoding->setItems( encodings );
mEncoding->setCurrentItem(0); mEncoding->setCurrentItem(0);
@ -103,7 +103,7 @@ void KTextFileDialog::slotShowEncCombo()
encCombo->setInsertionPolicy(TQComboBox::NoInsertion); encCombo->setInsertionPolicy(TQComboBox::NoInsertion);
encCombo->insertItem(i18n("Default Encoding")); encCombo->insertItem(i18n("Default Encoding"));
TQStringList encodings = KGlobal::charsets()->descriptiveEncodingNames(); TQStringList encodings = TDEGlobal::charsets()->descriptiveEncodingNames();
encodings.prepend( i18n( "Default encoding" ) ); encodings.prepend( i18n( "Default encoding" ) );
encCombo->insertStringList( encodings ); encCombo->insertStringList( encodings );
encCombo->setCurrentItem(0); encCombo->setCurrentItem(0);
@ -131,7 +131,7 @@ void KTextFileDialog::slotShowEncCombo()
if (encCombo->currentItem() == 0) { // Default if (encCombo->currentItem() == 0) { // Default
setEncoding(""); setEncoding("");
} else { } else {
setEncoding(KGlobal::charsets()-> setEncoding(TDEGlobal::charsets()->
encodingForName(encCombo->currentText())); encodingForName(encCombo->currentText()));
} }
} }

@ -272,7 +272,7 @@ FloppyData::FloppyData(TQWidget * parent, const char * name)
v3->addStretch( 1 ); v3->addStretch( 1 );
//Setup the Help Menu //Setup the Help Menu
helpMenu = new KHelpMenu(this, KGlobal::instance()->aboutData(), false); helpMenu = new KHelpMenu(this, TDEGlobal::instance()->aboutData(), false);
helpbutton = new KPushButton( KStdGuiItem::help(), this ); helpbutton = new KPushButton( KStdGuiItem::help(), this );
helpbutton->setAutoRepeat( false ); helpbutton->setAutoRepeat( false );

@ -46,7 +46,7 @@ static TQString extPath = TQString();
extPath = path; extPath = path;
} }
return KGlobal::dirs()->findExe(e, extPath); return TDEGlobal::dirs()->findExe(e, extPath);
} }
@ -324,7 +324,7 @@ bool FloppyAction::configureDevice(int drive,int density)
return true; return true;
} }
void FloppyAction::processDone(KProcess *p) void FloppyAction::processDone(TDEProcess *p)
{ {
DEBUGSETUP; DEBUGSETUP;
@ -354,14 +354,14 @@ void FloppyAction::processDone(KProcess *p)
} }
} }
void FloppyAction::processStdOut(KProcess *, char *b, int l) void FloppyAction::processStdOut(TDEProcess *, char *b, int l)
{ {
Q_UNUSED(b); Q_UNUSED(b);
Q_UNUSED(l); Q_UNUSED(l);
kdDebug(KFAREA) << "stdout:" << TQString::fromLatin1(b,l) << endl; kdDebug(KFAREA) << "stdout:" << TQString::fromLatin1(b,l) << endl;
} }
void FloppyAction::processStdErr(KProcess *p, char *b, int l) void FloppyAction::processStdErr(TDEProcess *p, char *b, int l)
{ {
processStdOut(p,b,l); processStdOut(p,b,l);
} }
@ -370,16 +370,16 @@ bool FloppyAction::startProcess()
{ {
DEBUGSETUP; DEBUGSETUP;
connect(theProcess,TQT_SIGNAL(processExited(KProcess *)), connect(theProcess,TQT_SIGNAL(processExited(TDEProcess *)),
this,TQT_SLOT(processDone(KProcess *))); this,TQT_SLOT(processDone(TDEProcess *)));
connect(theProcess,TQT_SIGNAL(receivedStdout(KProcess *,char *,int)), connect(theProcess,TQT_SIGNAL(receivedStdout(TDEProcess *,char *,int)),
this,TQT_SLOT(processStdOut(KProcess *,char *,int))); this,TQT_SLOT(processStdOut(TDEProcess *,char *,int)));
connect(theProcess,TQT_SIGNAL(receivedStderr(KProcess *,char *,int)), connect(theProcess,TQT_SIGNAL(receivedStderr(TDEProcess *,char *,int)),
this,TQT_SLOT(processStdErr(KProcess *,char *,int))); this,TQT_SLOT(processStdErr(TDEProcess *,char *,int)));
theProcess->setEnvironment( "LC_ALL", "C" ); // We need the untranslated output of the tool theProcess->setEnvironment( "LC_ALL", "C" ); // We need the untranslated output of the tool
return theProcess->start(KProcess::NotifyOnExit, return theProcess->start(TDEProcess::NotifyOnExit,
KProcess::AllOutput); TDEProcess::AllOutput);
} }
@ -425,7 +425,7 @@ bool FDFormat::configure(bool v)
} }
if (theProcess) delete theProcess; if (theProcess) delete theProcess;
theProcess = new KProcess; theProcess = new TDEProcess;
formatTrackCount=0; formatTrackCount=0;
@ -464,7 +464,7 @@ bool FDFormat::configure(bool v)
// need, since the messages can be standardized across OSsen. // need, since the messages can be standardized across OSsen.
// //
// //
void FDFormat::processStdOut(KProcess *, char *b, int l) void FDFormat::processStdOut(TDEProcess *, char *b, int l)
{ {
DEBUGSETUP; DEBUGSETUP;
TQString s; TQString s;
@ -586,7 +586,7 @@ DDZeroOut::DDZeroOut(TQObject *p) :
} }
delete theProcess; delete theProcess;
theProcess = new KProcess; theProcess = new TDEProcess;
*theProcess << m_ddName ; *theProcess << m_ddName ;
@ -601,7 +601,7 @@ DDZeroOut::DDZeroOut(TQObject *p) :
} }
void DDZeroOut::processDone(KProcess *p) void DDZeroOut::processDone(TDEProcess *p)
{ {
kdDebug(KFAREA) << (__PRETTY_FUNCTION__) << endl; kdDebug(KFAREA) << (__PRETTY_FUNCTION__) << endl;
@ -685,7 +685,7 @@ void FATFilesystem::exec()
} }
if (theProcess) delete theProcess; if (theProcess) delete theProcess;
KProcess *p = theProcess = new KProcess; TDEProcess *p = theProcess = new TDEProcess;
*p << newfs_fat; *p << newfs_fat;
#ifdef ANY_BSD #ifdef ANY_BSD
@ -715,7 +715,7 @@ void FATFilesystem::exec()
} }
} }
void FATFilesystem::processStdOut(KProcess *, char *b, int l) void FATFilesystem::processStdOut(TDEProcess *, char *b, int l)
{ {
#ifdef ANY_BSD #ifdef ANY_BSD
// ### TODO: do some checks // ### TODO: do some checks
@ -786,7 +786,7 @@ void UFSFilesystem::exec()
} }
if (theProcess) delete theProcess; if (theProcess) delete theProcess;
KProcess *p = theProcess = new KProcess; TDEProcess *p = theProcess = new TDEProcess;
*p << newfs; *p << newfs;
@ -865,7 +865,7 @@ void Ext2Filesystem::exec()
} }
if (theProcess) delete theProcess; if (theProcess) delete theProcess;
KProcess *p = theProcess = new KProcess; TDEProcess *p = theProcess = new TDEProcess;
*p << newfs; *p << newfs;
*p << "-q"; *p << "-q";
@ -881,7 +881,7 @@ void Ext2Filesystem::exec()
} }
} }
void Ext2Filesystem::processStdOut(KProcess *, char *b, int l) void Ext2Filesystem::processStdOut(TDEProcess *, char *b, int l)
{ {
#ifdef ANY_BSD #ifdef ANY_BSD
// ### TODO: do some checks // ### TODO: do some checks
@ -959,7 +959,7 @@ void MinixFilesystem::exec()
} }
if (theProcess) delete theProcess; if (theProcess) delete theProcess;
KProcess *p = theProcess = new KProcess; TDEProcess *p = theProcess = new TDEProcess;
*p << newfs; *p << newfs;
@ -975,7 +975,7 @@ void MinixFilesystem::exec()
} }
} }
void MinixFilesystem::processStdOut(KProcess *, char *b, int l) void MinixFilesystem::processStdOut(TDEProcess *, char *b, int l)
{ {
TQString s ( TQString::fromLatin1( b, l ) ); TQString s ( TQString::fromLatin1( b, l ) );
kdDebug(KFAREA) << s << endl; kdDebug(KFAREA) << s << endl;

@ -167,7 +167,7 @@ typedef struct { const char **devices;
int tracks; int tracks;
int flags; } fdinfo; int flags; } fdinfo;
class KProcess; class TDEProcess;
/** /**
* Concrete action for running a single external program. * Concrete action for running a single external program.
@ -219,11 +219,11 @@ protected slots:
/** /**
* \brief Provide handling of the exit of the external program * \brief Provide handling of the exit of the external program
*/ */
virtual void processDone(KProcess *); virtual void processDone(TDEProcess *);
/** /**
* \brief Provide handling of stdout * \brief Provide handling of stdout
*/ */
virtual void processStdOut(KProcess *, char *, int); virtual void processStdOut(TDEProcess *, char *, int);
/** /**
* \brief Provide handling stderr. * \brief Provide handling stderr.
* *
@ -231,14 +231,14 @@ protected slots:
* to processStdOut(), so you need reimplement only * to processStdOut(), so you need reimplement only
* FloppyAction::processStdOut if you choose. * FloppyAction::processStdOut if you choose.
*/ */
virtual void processStdErr(KProcess *, char *, int); virtual void processStdErr(TDEProcess *, char *, int);
protected: protected:
KProcess *theProcess; TDEProcess *theProcess;
TQString theProcessName; ///< human-readable TQString theProcessName; ///< human-readable
/** /**
* Sets up connections, calls KProcess::run(). * Sets up connections, calls TDEProcess::run().
* You need to *theProcess << program << args ; first. * You need to *theProcess << program << args ; first.
*/ */
@ -273,7 +273,7 @@ public:
bool configure(bool verify); bool configure(bool verify);
virtual void processStdOut(KProcess *, char *,int); virtual void processStdOut(TDEProcess *, char *,int);
protected: protected:
static TQString fdformatName; ///< path to executable. static TQString fdformatName; ///< path to executable.
@ -306,7 +306,7 @@ protected:
/** /**
* \brief Provide handling of the exit of the external program * \brief Provide handling of the exit of the external program
*/ */
virtual void processDone(KProcess *); virtual void processDone(TDEProcess *);
protected: protected:
static TQString m_ddName; ///< path to executable. static TQString m_ddName; ///< path to executable.
} ; } ;
@ -333,7 +333,7 @@ public:
bool configure(bool verify, bool label, const TQString &l); bool configure(bool verify, bool label, const TQString &l);
/// Parse output /// Parse output
virtual void processStdOut(KProcess*, char* b, int l); virtual void processStdOut(TDEProcess*, char* b, int l);
protected: protected:
static TQString newfs_fat; static TQString newfs_fat;
@ -359,7 +359,7 @@ public:
bool configure(bool verify, bool label, const TQString &l); bool configure(bool verify, bool label, const TQString &l);
/// Parse output /// Parse output
virtual void processStdOut(KProcess*, char* b, int l); virtual void processStdOut(TDEProcess*, char* b, int l);
protected: protected:
static TQString newfs; static TQString newfs;
@ -409,7 +409,7 @@ public:
bool configure(bool verify, bool label, const TQString &l); bool configure(bool verify, bool label, const TQString &l);
/// Parse output /// Parse output
virtual void processStdOut(KProcess*, char* b, int l); virtual void processStdOut(TDEProcess*, char* b, int l);
protected: protected:
static TQString newfs; static TQString newfs;

@ -138,17 +138,17 @@ void ZipFormat::quit()
formatStep=0; formatStep=0;
if (p) delete p; if (p) delete p;
p = new KProcess(); p = new TDEProcess();
if (statusTimer) delete statusTimer; if (statusTimer) delete statusTimer;
statusTimer = new TQTimer(this); statusTimer = new TQTimer(this);
connect(p,TQT_SIGNAL(processExited(KProcess *)), connect(p,TQT_SIGNAL(processExited(TDEProcess *)),
this,TQT_SLOT(transition())); this,TQT_SLOT(transition()));
connect(p,TQT_SIGNAL(receivedStdout(KProcess *,char *,int)), connect(p,TQT_SIGNAL(receivedStdout(TDEProcess *,char *,int)),
this,TQT_SLOT(processResult(KProcess *,char *,int))); this,TQT_SLOT(processResult(TDEProcess *,char *,int)));
connect(p,TQT_SIGNAL(receivedStderr(KProcess *,char *,int)), connect(p,TQT_SIGNAL(receivedStderr(TDEProcess *,char *,int)),
this,TQT_SLOT(processResult(KProcess *,char *,int))); this,TQT_SLOT(processResult(TDEProcess *,char *,int)));
connect(statusTimer,TQT_SIGNAL(timeout()), connect(statusTimer,TQT_SIGNAL(timeout()),
this,TQT_SLOT(statusRequest())); this,TQT_SLOT(statusRequest()));
@ -189,7 +189,7 @@ void ZipFormat::transition()
<< "of=/dev/afd0c" << "of=/dev/afd0c"
<< "bs=8192" ; << "bs=8192" ;
*p << TQString("count=%1").arg(totalBlocks); *p << TQString("count=%1").arg(totalBlocks);
if (!p->start(KProcess::NotifyOnExit,KProcess::AllOutput)) if (!p->start(TDEProcess::NotifyOnExit,TDEProcess::AllOutput))
{ {
emit statusMessage(i18n("Cannot start dd to zero disk.")); emit statusMessage(i18n("Cannot start dd to zero disk."));
emit formatDone(-1); emit formatDone(-1);
@ -222,7 +222,7 @@ void ZipFormat::transition()
*p << "-U" ; *p << "-U" ;
} }
*p << "/dev/afd0c" ; *p << "/dev/afd0c" ;
if (!p->start(KProcess::NotifyOnExit,KProcess::AllOutput)) if (!p->start(TDEProcess::NotifyOnExit,TDEProcess::AllOutput))
{ {
emit statusMessage(i18n("Cannot start newfs.")); emit statusMessage(i18n("Cannot start newfs."));
emit formatDone(-1); emit formatDone(-1);
@ -245,7 +245,7 @@ void ZipFormat::transition()
} }
} }
void ZipFormat::processResult(KProcess *, char *b, int l) void ZipFormat::processResult(TDEProcess *, char *b, int l)
{ {
DEBUGSETUP; DEBUGSETUP;

@ -41,7 +41,7 @@
class TQCheckBox; class TQCheckBox;
class TQTimer; class TQTimer;
class KProcess; class TDEProcess;
class KConfig; class KConfig;
class ZipFormat : public DiskFormat class ZipFormat : public DiskFormat
@ -74,7 +74,7 @@ protected:
static TQString newfs,dd; static TQString newfs,dd;
KProcess *p; ///< dd or newfs, doing the real work TDEProcess *p; ///< dd or newfs, doing the real work
int formatStep; ///< keeps track of what phase we are in int formatStep; ///< keeps track of what phase we are in
// Variables for the zeroing phase // Variables for the zeroing phase
@ -93,7 +93,7 @@ protected slots:
* processResult() reads output * processResult() reads output
* from either dd or newfs and interprets it. * from either dd or newfs and interprets it.
*/ */
void processResult(KProcess *,char *,int); void processResult(TDEProcess *,char *,int);
/** /**
*statusRequest() *statusRequest()

@ -90,7 +90,7 @@ KgpgKeyInfo::KgpgKeyInfo(TQWidget *parent, const char *name,TQString sigkey):KDi
void KgpgKeyInfo::slotDisableKey(bool isOn) void KgpgKeyInfo::slotDisableKey(bool isOn)
{ {
KProcess kp; TDEProcess kp;
kp<<"gpg" kp<<"gpg"
<<"--no-tty" <<"--no-tty"
@ -99,7 +99,7 @@ KProcess kp;
if (isOn) kp<<"disable"; if (isOn) kp<<"disable";
else kp<<"enable"; else kp<<"enable";
kp<<"save"; kp<<"save";
kp.start(KProcess::Block); kp.start(TDEProcess::Block);
loadKey(displayedKeyID); loadKey(displayedKeyID);
keyWasChanged=true; keyWasChanged=true;
} }
@ -205,13 +205,13 @@ TQString gpgcmd="gpg --no-tty --no-secmem-warning --with-colon --with-fingerprin
TQString fullname=gpgOutput.section(':',9,9); TQString fullname=gpgOutput.section(':',9,9);
TQDate date = TQDate::fromString(gpgOutput.section(':',5,5), Qt::ISODate); TQDate date = TQDate::fromString(gpgOutput.section(':',5,5), Qt::ISODate);
prop->tLCreation->setText(KGlobal::locale()->formatDate(date)); prop->tLCreation->setText(TDEGlobal::locale()->formatDate(date));
if (gpgOutput.section(':',6,6).isEmpty()) expirationDate=i18n("Unlimited"); if (gpgOutput.section(':',6,6).isEmpty()) expirationDate=i18n("Unlimited");
else else
{ {
date = TQDate::fromString(gpgOutput.section(':',6,6), Qt::ISODate); date = TQDate::fromString(gpgOutput.section(':',6,6), Qt::ISODate);
expirationDate=KGlobal::locale()->formatDate(date); expirationDate=TDEGlobal::locale()->formatDate(date);
} }
prop->tLExpiration->setText(expirationDate); prop->tLExpiration->setText(expirationDate);
@ -297,13 +297,13 @@ void KgpgKeyInfo::reloadMainPhoto(const TQString &uid)
*p<<"gpg"<<"--no-tty"<<"--show-photos"<<"--photo-viewer"<<TQString(TQFile::encodeName(pgpgOutput)); *p<<"gpg"<<"--no-tty"<<"--show-photos"<<"--photo-viewer"<<TQString(TQFile::encodeName(pgpgOutput));
*p<<"--edit-key"<<displayedKeyID<<"uid"<<uid<<"showphoto"; *p<<"--edit-key"<<displayedKeyID<<"uid"<<uid<<"showphoto";
TQObject::connect(p, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(finishphotoreadprocess(KProcIO *))); TQObject::connect(p, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(finishphotoreadprocess(KProcIO *)));
TQObject::connect(p, TQT_SIGNAL(processExited(KProcess *)),this, TQT_SLOT(slotMainImageRead(KProcess *))); TQObject::connect(p, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(slotMainImageRead(TDEProcess *)));
p->start(KProcess::NotifyOnExit,true); p->start(TDEProcess::NotifyOnExit,true);
} }
void KgpgKeyInfo::slotMainImageRead(KProcess *p) void KgpgKeyInfo::slotMainImageRead(TDEProcess *p)
{ {
p->deleteLater(); p->deleteLater();
TQPixmap pixmap; TQPixmap pixmap;
@ -347,7 +347,7 @@ void KgpgKeyInfo::openPhoto()
//KMessageBox::sorry(0,ptr->desktopEntryName()); //KMessageBox::sorry(0,ptr->desktopEntryName());
KProcIO *p=new KProcIO(); KProcIO *p=new KProcIO();
*p<<"gpg"<<"--show-photos"<<"--photo-viewer"<<TQString(TQFile::encodeName(ptr->desktopEntryName()+" %i"))<<"--list-keys"<<displayedKeyID; *p<<"gpg"<<"--show-photos"<<"--photo-viewer"<<TQString(TQFile::encodeName(ptr->desktopEntryName()+" %i"))<<"--list-keys"<<displayedKeyID;
p->start(KProcess::DontCare,true); p->start(TDEProcess::DontCare,true);
} }
void KgpgKeyInfo::slotChangeExp() void KgpgKeyInfo::slotChangeExp()
@ -363,7 +363,7 @@ kb->setChecked(true);
kdt->setEnabled(false); kdt->setEnabled(false);
} }
else else
kdt= new KDatePicker(page,KGlobal::locale()->readDate(prop->tLExpiration->text())); kdt= new KDatePicker(page,TDEGlobal::locale()->readDate(prop->tLExpiration->text()));
TQVBoxLayout *vbox=new TQVBoxLayout(page,3); TQVBoxLayout *vbox=new TQVBoxLayout(page,3);
vbox->addWidget(kdt); vbox->addWidget(kdt);
vbox->addWidget(kb); vbox->addWidget(kb);
@ -405,7 +405,7 @@ chdate->enableButtonOK(kdt->date()>=TQDate::currentDate ());
} }
} }
void KgpgKeyInfo::slotinfoimgread(KProcess *) void KgpgKeyInfo::slotinfoimgread(TDEProcess *)
{ {
TQPixmap pixmap; TQPixmap pixmap;
pixmap.load(kgpginfotmp->name()); pixmap.load(kgpginfotmp->name());
@ -430,14 +430,14 @@ void KgpgKeyInfo::slotChangeTrust(int newTrust)
void KgpgKeyInfo::slotInfoPasswordChanged() void KgpgKeyInfo::slotInfoPasswordChanged()
{ {
KPassivePopup::message(i18n("Passphrase for the key was changed"),TQString(),KGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop),this); KPassivePopup::message(i18n("Passphrase for the key was changed"),TQString(),TDEGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop),this);
} }
void KgpgKeyInfo::slotInfoTrustChanged() void KgpgKeyInfo::slotInfoTrustChanged()
{ {
keyWasChanged=true; keyWasChanged=true;
loadKey(displayedKeyID); loadKey(displayedKeyID);
//KPassivePopup::message(i18n("Owner trust of the key was changed"),TQString(),KGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop),this,0,600); //KPassivePopup::message(i18n("Owner trust of the key was changed"),TQString(),TDEGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop),this,0,600);
} }
void KgpgKeyInfo::slotInfoExpirationChanged(int res) void KgpgKeyInfo::slotInfoExpirationChanged(int res)
@ -447,11 +447,11 @@ if (res==3)
{ {
keyWasChanged=true; keyWasChanged=true;
if (kb->isChecked()) prop->tLExpiration->setText(i18n("Unlimited")); if (kb->isChecked()) prop->tLExpiration->setText(i18n("Unlimited"));
else prop->tLExpiration->setText(KGlobal::locale()->formatDate(kdt->date())); else prop->tLExpiration->setText(TDEGlobal::locale()->formatDate(kdt->date()));
} }
if (res==2) { if (res==2) {
infoMessage=i18n("Could not change expiration");infoText=i18n("Bad passphrase"); infoMessage=i18n("Could not change expiration");infoText=i18n("Bad passphrase");
KPassivePopup::message(infoMessage,infoText,KGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop),this); KPassivePopup::message(infoMessage,infoText,TDEGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop),this);
} }
} }

@ -27,7 +27,7 @@ class KDialogBase;
class TQCheckBox; class TQCheckBox;
class KDatePicker; class KDatePicker;
class KeyProperties; class KeyProperties;
class KProcess; class TDEProcess;
class KProcIO; class KProcIO;
class KgpgKeyInfo : public KDialogBase class KgpgKeyInfo : public KDialogBase
@ -42,7 +42,7 @@ public:
KeyProperties *prop; KeyProperties *prop;
private slots: private slots:
void slotinfoimgread(KProcess *); void slotinfoimgread(TDEProcess *);
void slotChangePass(); void slotChangePass();
void slotPreOk(); void slotPreOk();
void slotChangeExp(); void slotChangeExp();
@ -52,7 +52,7 @@ private slots:
void openPhoto(); void openPhoto();
void slotSetPhoto(const TQPixmap &pix); void slotSetPhoto(const TQPixmap &pix);
void finishphotoreadprocess(KProcIO *p); void finishphotoreadprocess(KProcIO *p);
void slotMainImageRead(KProcess *); void slotMainImageRead(TDEProcess *);
void slotSetMainPhoto(TQStringList list); void slotSetMainPhoto(TQStringList list);
void reloadMainPhoto(const TQString &uid); void reloadMainPhoto(const TQString &uid);
void slotInfoPasswordChanged(); void slotInfoPasswordChanged();

@ -85,7 +85,7 @@ keyServer::keyServer(TQWidget *parent, const char *name,bool modal,bool autoClos
KProcIO *encid=new KProcIO(TQTextCodec::codecForLocale()); KProcIO *encid=new KProcIO(TQTextCodec::codecForLocale());
*encid << "gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--with-colon"<<"--list-keys"; *encid << "gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--with-colon"<<"--list-keys";
TQObject::connect(encid, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(slotprocread(KProcIO *))); TQObject::connect(encid, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(slotprocread(KProcIO *)));
encid->start(KProcess::NotifyOnExit,true); encid->start(TDEProcess::NotifyOnExit,true);
page->Buttonimport->setEnabled( !page->kLEimportid->text().isEmpty()); page->Buttonimport->setEnabled( !page->kLEimportid->text().isEmpty());
page->Buttonsearch->setEnabled( !page->kLEimportid->text().isEmpty()); page->Buttonsearch->setEnabled( !page->kLEimportid->text().isEmpty());
setMinimumSize(sizeHint()); setMinimumSize(sizeHint());
@ -119,7 +119,7 @@ void keyServer::slotprocread(KProcIO *p)
///////////////////////////////////////////////////////////////// extract encryption keys ///////////////////////////////////////////////////////////////// extract encryption keys
bool dead; bool dead;
TQString tst; TQString tst;
//TQPixmap pixkeySingle(KGlobal::iconLoader()->loadIcon("kgpg_key1",KIcon::Small,20)); //TQPixmap pixkeySingle(TDEGlobal::iconLoader()->loadIcon("kgpg_key1",KIcon::Small,20));
while (p->readln(tst)!=-1) { while (p->readln(tst)!=-1) {
//tst=tst.stripWhiteSpace(); //tst=tst.stripWhiteSpace();
if (tst.startsWith("pub")) { if (tst.startsWith("pub")) {
@ -196,9 +196,9 @@ void keyServer::slotSearch()
*searchproc<<"--keyserver"<<keyserv<<"--command-fd=0"<<"--status-fd=2"<<"--search-keys"<<page->kLEimportid->text().stripWhiteSpace(); *searchproc<<"--keyserver"<<keyserv<<"--command-fd=0"<<"--status-fd=2"<<"--search-keys"<<page->kLEimportid->text().stripWhiteSpace();
keyNumbers=0; keyNumbers=0;
TQObject::connect(searchproc, TQT_SIGNAL(processExited(KProcess *)),this, TQT_SLOT(slotsearchresult(KProcess *))); TQObject::connect(searchproc, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(slotsearchresult(TDEProcess *)));
TQObject::connect(searchproc, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(slotsearchread(KProcIO *))); TQObject::connect(searchproc, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(slotsearchread(KProcIO *)));
searchproc->start(KProcess::NotifyOnExit,true); searchproc->start(TDEProcess::NotifyOnExit,true);
TQApplication::setOverrideCursor(TQCursor(TQt::BusyCursor)); TQApplication::setOverrideCursor(TQCursor(TQt::BusyCursor));
dialogServer->setMainWidget(listpop); dialogServer->setMainWidget(listpop);
listpop->setMinimumSize(listpop->sizeHint()); listpop->setMinimumSize(listpop->sizeHint());
@ -255,7 +255,7 @@ void keyServer::transferKeyID()
listpop->kLEID->setText(keysToSearch.stripWhiteSpace()); listpop->kLEID->setText(keysToSearch.stripWhiteSpace());
} }
void keyServer::slotsearchresult(KProcess *) void keyServer::slotsearchresult(TDEProcess *)
{ {
TQString nb; TQString nb;
dialogServer->enableButtonOK(true); dialogServer->enableButtonOK(true);
@ -364,9 +364,9 @@ void keyServer::slotExport(TQStringList keyIds)
*exportproc<< "--keyserver-options"<<"no-honor-http-proxy"; *exportproc<< "--keyserver-options"<<"no-honor-http-proxy";
*exportproc << "--status-fd=2" << "--keyserver" << keyserv << "--send-keys" << keyIds; *exportproc << "--status-fd=2" << "--keyserver" << keyserv << "--send-keys" << keyIds;
TQObject::connect(exportproc, TQT_SIGNAL(processExited(KProcess *)),this, TQT_SLOT(slotexportresult(KProcess *))); TQObject::connect(exportproc, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(slotexportresult(TDEProcess *)));
TQObject::connect(exportproc, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(slotimportread(KProcIO *))); TQObject::connect(exportproc, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(slotimportread(KProcIO *)));
exportproc->start(KProcess::NotifyOnExit,true); exportproc->start(TDEProcess::NotifyOnExit,true);
TQApplication::setOverrideCursor(TQCursor(TQt::BusyCursor)); TQApplication::setOverrideCursor(TQCursor(TQt::BusyCursor));
importpop = new TQDialog( this,0,true,TQt::WDestructiveClose); importpop = new TQDialog( this,0,true,TQt::WDestructiveClose);
TQVBoxLayout *vbox=new TQVBoxLayout(importpop,3); TQVBoxLayout *vbox=new TQVBoxLayout(importpop,3);
@ -392,7 +392,7 @@ void keyServer::abortExport()
} }
} }
void keyServer::slotexportresult(KProcess*) void keyServer::slotexportresult(TDEProcess*)
{ {
TQApplication::restoreOverrideCursor(); TQApplication::restoreOverrideCursor();
KMessageBox::information(0,readmessage); KMessageBox::information(0,readmessage);
@ -431,9 +431,9 @@ void keyServer::slotImport()
*importproc<<TQString(TQFile::encodeName(fkeyNames)); *importproc<<TQString(TQFile::encodeName(fkeyNames));
} }
TQObject::connect(importproc, TQT_SIGNAL(processExited(KProcess *)),this, TQT_SLOT(slotimportresult(KProcess *))); TQObject::connect(importproc, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(slotimportresult(TDEProcess *)));
TQObject::connect(importproc, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(slotimportread(KProcIO *))); TQObject::connect(importproc, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(slotimportread(KProcIO *)));
importproc->start(KProcess::NotifyOnExit,true); importproc->start(TDEProcess::NotifyOnExit,true);
importproc->closeWhenDone(); importproc->closeWhenDone();
TQApplication::setOverrideCursor(TQCursor(TQt::BusyCursor)); TQApplication::setOverrideCursor(TQCursor(TQt::BusyCursor));
importpop = new TQDialog( this,0,true,TQt::WDestructiveClose); importpop = new TQDialog( this,0,true,TQt::WDestructiveClose);
@ -462,7 +462,7 @@ void keyServer::abortImport()
if (autoCloseWindow) close(); if (autoCloseWindow) close();
} }
void keyServer::slotimportresult(KProcess*) void keyServer::slotimportresult(TDEProcess*)
{ {
TQApplication::restoreOverrideCursor(); TQApplication::restoreOverrideCursor();
TQString importedNb,importedNbSucess,importedNbProcess,resultMessage, parsedOutput,importedNbUnchanged,importedNbSig; TQString importedNb,importedNbSucess,importedNbProcess,resultMessage, parsedOutput,importedNbUnchanged,importedNbSig;

@ -24,7 +24,7 @@
class KListViewItem; class KListViewItem;
class KSimpleConfig; class KSimpleConfig;
class KProcIO; class KProcIO;
class KProcess; class TDEProcess;
class searchRes; class searchRes;
@ -47,14 +47,14 @@ public slots:
void syncCombobox(); void syncCombobox();
void slotImport(); void slotImport();
void slotSearch(); void slotSearch();
void slotimportresult(KProcess*); void slotimportresult(TDEProcess*);
void slotexportresult(KProcess*); void slotexportresult(TDEProcess*);
void slotimportread(KProcIO *p); void slotimportread(KProcIO *p);
void slotprocread(KProcIO *p); void slotprocread(KProcIO *p);
void slotPreExport(); void slotPreExport();
void slotExport(TQStringList keyIds); void slotExport(TQStringList keyIds);
void preimport(); void preimport();
void slotsearchresult(KProcess *); void slotsearchresult(TDEProcess *);
void slotEnableProxyI(bool on); void slotEnableProxyI(bool on);
void slotEnableProxyE(bool on); void slotEnableProxyE(bool on);
void handleQuit(); void handleQuit();

@ -206,7 +206,7 @@ if (encryptedFolder.exists()) {
} }
pop = new KPassivePopup(); pop = new KPassivePopup();
pop->setView(i18n("Processing folder compression and encryption"),i18n("Please wait..."),KGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop)); pop->setView(i18n("Processing folder compression and encryption"),i18n("Please wait..."),TDEGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop));
pop->setAutoDelete(false); pop->setAutoDelete(false);
pop->show(); pop->show();
kapp->processEvents(); kapp->processEvents();
@ -592,7 +592,7 @@ void MyView::firstRun()
{ {
KProcIO *p=new KProcIO(); KProcIO *p=new KProcIO();
*p<<"gpg"<<"--no-tty"<<"--list-secret-keys"; *p<<"gpg"<<"--no-tty"<<"--list-secret-keys";
p->start(KProcess::Block); //// start gnupg so that it will create a config file p->start(TDEProcess::Block); //// start gnupg so that it will create a config file
startWizard(); startWizard();
} }
@ -642,7 +642,7 @@ void MyView::startWizard()
wiz->kURLRequester1->setURL(confPath); wiz->kURLRequester1->setURL(confPath);
/* /*
wiz->kURLRequester2->setURL(KGlobalSettings::desktopPath()); wiz->kURLRequester2->setURL(TDEGlobalSettings::desktopPath());
wiz->kURLRequester2->setMode(2);*/ wiz->kURLRequester2->setMode(2);*/
FILE *fp,*fp2; FILE *fp,*fp2;
@ -715,7 +715,7 @@ void MyView::slotWizardChange()
void MyView::installShred() void MyView::installShred()
{ {
KURL path; KURL path;
path.setPath(KGlobalSettings::desktopPath()); path.setPath(TDEGlobalSettings::desktopPath());
path.addPath("shredder.desktop"); path.addPath("shredder.desktop");
KDesktopFile configl2(path.path(), false); KDesktopFile configl2(path.path(), false);
if (configl2.isImmutable() ==false) { if (configl2.isImmutable() ==false) {
@ -865,7 +865,7 @@ KgpgAppletApp::~KgpgAppletApp()
void KgpgAppletApp::slotHandleQuit() void KgpgAppletApp::slotHandleQuit()
{ {
s_keyManager->keysList2->saveLayout(KGlobal::config(),"KeyView"); s_keyManager->keysList2->saveLayout(TDEGlobal::config(),"KeyView");
KGpgSettings::setPhotoProperties(s_keyManager->photoProps->currentItem()); KGpgSettings::setPhotoProperties(s_keyManager->photoProps->currentItem());
KGpgSettings::setShowTrust(s_keyManager->sTrust->isChecked()); KGpgSettings::setShowTrust(s_keyManager->sTrust->isChecked());
KGpgSettings::setShowExpi(s_keyManager->sExpi->isChecked()); KGpgSettings::setShowExpi(s_keyManager->sExpi->isChecked());
@ -1009,7 +1009,7 @@ int KgpgAppletApp::newInstance()
void MyView::encryptClipboard(TQStringList selec,TQStringList encryptOptions,bool,bool symmetric) void MyView::encryptClipboard(TQStringList selec,TQStringList encryptOptions,bool,bool symmetric)
{ {
if (kapp->clipboard()->text(clipboardMode).isEmpty()) { if (kapp->clipboard()->text(clipboardMode).isEmpty()) {
KPassivePopup::message(i18n("Clipboard is empty."),TQString(),KGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop),this); KPassivePopup::message(i18n("Clipboard is empty."),TQString(),TDEGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop),this);
return; return;
} }
if (KGpgSettings::pgpCompatibility()) if (KGpgSettings::pgpCompatibility())
@ -1033,7 +1033,7 @@ if (newtxt.length()>300)
newtxt.replace(TQRegExp("\n"),"<br>"); newtxt.replace(TQRegExp("\n"),"<br>");
pop = new KPassivePopup( this); pop = new KPassivePopup( this);
pop->setView(i18n("Encrypted following text:"),newtxt,KGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop)); pop->setView(i18n("Encrypted following text:"),newtxt,TDEGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop));
pop->setTimeout(3200); pop->setTimeout(3200);
pop->show(); pop->show();
TQRect qRect(TQApplication::desktop()->screenGeometry()); TQRect qRect(TQApplication::desktop()->screenGeometry());

@ -193,7 +193,7 @@
<group name="Text Font"> <group name="Text Font">
<entry name="Font" type="Font" key="KEditFont"> <entry name="Font" type="Font" key="KEditFont">
<label>Font</label> <label>Font</label>
<default code="true">KGlobalSettings::fixedFont()</default> <default code="true">TDEGlobalSettings::fixedFont()</default>
</entry> </entry>
</group> </group>

@ -300,7 +300,7 @@ void KgpgApp::slotFileOpen()
bool KgpgApp::checkEncoding(TQTextCodec *codec) bool KgpgApp::checkEncoding(TQTextCodec *codec)
{ {
///////////// KGlobal::locale()->encoding()->name() ///////////// TDEGlobal::locale()->encoding()->name()
return codec->canEncode(view->editor->text()); return codec->canEncode(view->editor->text());
} }

@ -111,9 +111,9 @@ void KgpgInterface::KgpgEncryptFile(TQStringList encryptKeys,KURL srcUrl,KURL de
*proc<<TQString(TQFile::encodeName(srcUrl.path())); *proc<<TQString(TQFile::encodeName(srcUrl.path()));
///////// when process ends, update dialog infos ///////// when process ends, update dialog infos
TQObject::connect(proc, TQT_SIGNAL(processExited(KProcess *)),this,TQT_SLOT(encryptfin(KProcess *))); TQObject::connect(proc, TQT_SIGNAL(processExited(TDEProcess *)),this,TQT_SLOT(encryptfin(TDEProcess *)));
TQObject::connect(proc,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(readencprocess(KProcIO *))); TQObject::connect(proc,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(readencprocess(KProcIO *)));
proc->start(KProcess::NotifyOnExit,true); proc->start(TDEProcess::NotifyOnExit,true);
} }
@ -121,7 +121,7 @@ KgpgInterface::~KgpgInterface()
{} {}
void KgpgInterface::encryptfin(KProcess *) void KgpgInterface::encryptfin(TDEProcess *)
{ {
if (message.find("END_ENCRYPTION")!=-1) if (message.find("END_ENCRYPTION")!=-1)
emit encryptionfinished(sourceFile); emit encryptionfinished(sourceFile);
@ -180,12 +180,12 @@ void KgpgInterface::KgpgDecryptFile(KURL srcUrl,KURL destUrl,TQStringList Option
*proc<<"-d"<<TQString(TQFile::encodeName(srcUrl.path())); *proc<<"-d"<<TQString(TQFile::encodeName(srcUrl.path()));
TQObject::connect(proc, TQT_SIGNAL(processExited(KProcess *)),this,TQT_SLOT(decryptfin(KProcess *))); TQObject::connect(proc, TQT_SIGNAL(processExited(TDEProcess *)),this,TQT_SLOT(decryptfin(TDEProcess *)));
TQObject::connect(proc,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(readdecprocess(KProcIO *))); TQObject::connect(proc,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(readdecprocess(KProcIO *)));
proc->start(KProcess::NotifyOnExit,true); proc->start(TDEProcess::NotifyOnExit,true);
} }
void KgpgInterface::decryptfin(KProcess *) void KgpgInterface::decryptfin(TDEProcess *)
{ {
if ((message.find("DECRYPTION_OKAY")!=-1) && (message.find("END_DECRYPTION")!=-1)) //&& (message.find("GOODMDC")!=-1) if ((message.find("DECRYPTION_OKAY")!=-1) && (message.find("END_DECRYPTION")!=-1)) //&& (message.find("GOODMDC")!=-1)
emit decryptionfinished(); emit decryptionfinished();
@ -248,7 +248,7 @@ void KgpgInterface::readdecprocess(KProcIO *p)
void KgpgInterface::KgpgEncryptText(TQString text,TQStringList userIDs, TQStringList Options) void KgpgInterface::KgpgEncryptText(TQString text,TQStringList userIDs, TQStringList Options)
{ {
message=TQString(); message=TQString();
//TQTextCodec *codec = KGlobal::charsets()->codecForName(KGlobal::locale()->encoding()); //TQTextCodec *codec = TDEGlobal::charsets()->codecForName(TDEGlobal::locale()->encoding());
TQTextCodec *codec =TQTextCodec::codecForLocale (); TQTextCodec *codec =TQTextCodec::codecForLocale ();
if (codec->canEncode(text)) txtToEncrypt=text; if (codec->canEncode(text)) txtToEncrypt=text;
else txtToEncrypt=text.utf8(); else txtToEncrypt=text.utf8();
@ -270,14 +270,14 @@ void KgpgInterface::KgpgEncryptText(TQString text,TQStringList userIDs, TQString
///////// when process ends, update dialog infos ///////// when process ends, update dialog infos
TQObject::connect(proc, TQT_SIGNAL(processExited(KProcess *)),this,TQT_SLOT(txtencryptfin(KProcess *))); TQObject::connect(proc, TQT_SIGNAL(processExited(TDEProcess *)),this,TQT_SLOT(txtencryptfin(TDEProcess *)));
TQObject::connect(proc,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(txtreadencprocess(KProcIO *))); TQObject::connect(proc,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(txtreadencprocess(KProcIO *)));
proc->start(KProcess::NotifyOnExit,false); proc->start(TDEProcess::NotifyOnExit,false);
emit txtencryptionstarted(); emit txtencryptionstarted();
} }
void KgpgInterface::txtencryptfin(KProcess *) void KgpgInterface::txtencryptfin(TDEProcess *)
{ {
if (!message.isEmpty()) if (!message.isEmpty())
emit txtencryptionfinished(message); emit txtencryptionfinished(message);
@ -328,7 +328,7 @@ void KgpgInterface::KgpgDecryptText(TQString text,TQStringList Options)
decfinished=false; decfinished=false;
decok=false; decok=false;
badmdc=false; badmdc=false;
KProcess *proc=new KProcess(); TDEProcess *proc=new TDEProcess();
*proc<<"gpg"<<"--no-tty"<<"--no-secmem-warning"<<"--command-fd=0"<<"--status-fd=2"<<"--no-batch"<<"--utf8-strings"; *proc<<"gpg"<<"--no-tty"<<"--no-secmem-warning"<<"--command-fd=0"<<"--status-fd=2"<<"--no-batch"<<"--utf8-strings";
for ( TQStringList::Iterator it = Options.begin(); it != Options.end(); ++it ) for ( TQStringList::Iterator it = Options.begin(); it != Options.end(); ++it )
if (!TQFile::encodeName(*it).isEmpty()) *proc<< TQString(TQFile::encodeName(*it)); if (!TQFile::encodeName(*it).isEmpty()) *proc<< TQString(TQFile::encodeName(*it));
@ -336,14 +336,14 @@ void KgpgInterface::KgpgDecryptText(TQString text,TQStringList Options)
///////// when process ends, update dialog infos ///////// when process ends, update dialog infos
TQObject::connect(proc, TQT_SIGNAL(processExited(KProcess *)),this,TQT_SLOT(txtdecryptfin(KProcess *))); TQObject::connect(proc, TQT_SIGNAL(processExited(TDEProcess *)),this,TQT_SLOT(txtdecryptfin(TDEProcess *)));
connect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)),this, TQT_SLOT(getOutput(KProcess *, char *, int))); connect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),this, TQT_SLOT(getOutput(TDEProcess *, char *, int)));
connect(proc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)),this, TQT_SLOT(getCmdOutput(KProcess *, char *, int))); connect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),this, TQT_SLOT(getCmdOutput(TDEProcess *, char *, int)));
proc->start(KProcess::NotifyOnExit,KProcess::All); proc->start(TDEProcess::NotifyOnExit,TDEProcess::All);
proc->writeStdin(text.utf8(), text.length()); proc->writeStdin(text.utf8(), text.length());
} }
void KgpgInterface::txtdecryptfin(KProcess *) void KgpgInterface::txtdecryptfin(TDEProcess *)
{ {
if ((decok) && (!badmdc)) if ((decok) && (!badmdc))
emit txtdecryptionfinished(message); emit txtdecryptionfinished(message);
@ -358,13 +358,13 @@ emit txtdecryptionfailed(log);
} }
void KgpgInterface::getOutput(KProcess *, char *data, int ) void KgpgInterface::getOutput(TDEProcess *, char *data, int )
{ {
message.append(TQString::fromUtf8(data)); message.append(TQString::fromUtf8(data));
} }
void KgpgInterface::getCmdOutput(KProcess *p, char *data, int ) void KgpgInterface::getCmdOutput(TDEProcess *p, char *data, int )
{ {
gpgOutput.append(TQString::fromUtf8(data)); gpgOutput.append(TQString::fromUtf8(data));
log.append(data); log.append(data);
@ -450,12 +450,12 @@ void KgpgInterface::KgpgSignText(TQString text,TQString userIDs, TQStringList Op
///////// when process ends, update dialog infos ///////// when process ends, update dialog infos
TQObject::connect(proc, TQT_SIGNAL(processExited(KProcess *)),this,TQT_SLOT(txtsignfin(KProcess *))); TQObject::connect(proc, TQT_SIGNAL(processExited(TDEProcess *)),this,TQT_SLOT(txtsignfin(TDEProcess *)));
TQObject::connect(proc,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(txtsignprocess(KProcIO *))); TQObject::connect(proc,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(txtsignprocess(KProcIO *)));
//emit txtsigningstarted(); //emit txtsigningstarted();
proc->start(KProcess::NotifyOnExit,false); proc->start(TDEProcess::NotifyOnExit,false);
/*if (useAgent) /*if (useAgent)
{ {
kdDebug(2100)<<"Using Agent+++++++++++++"<<endl; kdDebug(2100)<<"Using Agent+++++++++++++"<<endl;
@ -468,7 +468,7 @@ void KgpgInterface::KgpgSignText(TQString text,TQString userIDs, TQStringList Op
} }
void KgpgInterface::txtsignfin(KProcess *) void KgpgInterface::txtsignfin(TDEProcess *)
{ {
if (!message.isEmpty()) if (!message.isEmpty())
emit txtSignOver(message); emit txtSignOver(message);
@ -530,7 +530,7 @@ decfinished=false;
decok=false; decok=false;
badmdc=false; badmdc=false;
KProcess *proc=new KProcess(); TDEProcess *proc=new TDEProcess();
*proc<<"gpg"<<"--no-tty"<<"--utf8-strings"<<"--no-secmem-warning"<<"--command-fd=0"<<"--status-fd=2"<<"--no-batch"<<"-o"<<"-"; *proc<<"gpg"<<"--no-tty"<<"--utf8-strings"<<"--no-secmem-warning"<<"--command-fd=0"<<"--status-fd=2"<<"--no-batch"<<"-o"<<"-";
for ( TQStringList::Iterator it = Options.begin(); it != Options.end(); ++it ) { for ( TQStringList::Iterator it = Options.begin(); it != Options.end(); ++it ) {
if (!TQFile::encodeName(*it).isEmpty()) *proc<< TQString(TQFile::encodeName(*it)); if (!TQFile::encodeName(*it).isEmpty()) *proc<< TQString(TQFile::encodeName(*it));
@ -539,10 +539,10 @@ badmdc=false;
///////// when process ends, update dialog infos ///////// when process ends, update dialog infos
connect(proc, TQT_SIGNAL(processExited(KProcess *)),this,TQT_SLOT(txtdecryptfin(KProcess *))); connect(proc, TQT_SIGNAL(processExited(TDEProcess *)),this,TQT_SLOT(txtdecryptfin(TDEProcess *)));
connect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)),this, TQT_SLOT(getOutput(KProcess *, char *, int))); connect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),this, TQT_SLOT(getOutput(TDEProcess *, char *, int)));
connect(proc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)),this, TQT_SLOT(getCmdOutput(KProcess *, char *, int))); connect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),this, TQT_SLOT(getCmdOutput(TDEProcess *, char *, int)));
proc->start(KProcess::NotifyOnExit,KProcess::All); proc->start(TDEProcess::NotifyOnExit,TDEProcess::All);
} }
@ -559,15 +559,15 @@ void KgpgInterface::KgpgVerifyText(TQString text)
message=TQString(); message=TQString();
KProcIO *verifyproc=new KProcIO(TQTextCodec::codecForLocale()); KProcIO *verifyproc=new KProcIO(TQTextCodec::codecForLocale());
*verifyproc<<"gpg"<<"--no-secmem-warning"<<"--status-fd=2"<<"--command-fd=0"<<"--utf8-strings"<<"--verify"; *verifyproc<<"gpg"<<"--no-secmem-warning"<<"--status-fd=2"<<"--command-fd=0"<<"--utf8-strings"<<"--verify";
connect(verifyproc, TQT_SIGNAL(processExited(KProcess *)),this, TQT_SLOT(slotverifyresult(KProcess *))); connect(verifyproc, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(slotverifyresult(TDEProcess *)));
connect(verifyproc, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(slotverifyread(KProcIO *))); connect(verifyproc, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(slotverifyread(KProcIO *)));
verifyproc->start(KProcess::NotifyOnExit,true); verifyproc->start(TDEProcess::NotifyOnExit,true);
verifyproc->writeStdin (text); verifyproc->writeStdin (text);
verifyproc->closeWhenDone(); verifyproc->closeWhenDone();
} }
void KgpgInterface::slotverifyresult(KProcess*) void KgpgInterface::slotverifyresult(TDEProcess*)
{ {
if (signmiss) emit missingSignature(signID); if (signmiss) emit missingSignature(signID);
else { else {
@ -705,14 +705,14 @@ void KgpgInterface::KgpgSignFile(TQString keyID,KURL srcUrl,TQStringList Options
*proc<<"--output"<<TQString(TQFile::encodeName(srcUrl.path()+".sig")); *proc<<"--output"<<TQString(TQFile::encodeName(srcUrl.path()+".sig"));
*proc<<"--detach-sig"<<TQString(TQFile::encodeName(srcUrl.path())); *proc<<"--detach-sig"<<TQString(TQFile::encodeName(srcUrl.path()));
TQObject::connect(proc, TQT_SIGNAL(processExited(KProcess *)),this,TQT_SLOT(signfin(KProcess *))); TQObject::connect(proc, TQT_SIGNAL(processExited(TDEProcess *)),this,TQT_SLOT(signfin(TDEProcess *)));
TQObject::connect(proc,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(readsignprocess(KProcIO *))); TQObject::connect(proc,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(readsignprocess(KProcIO *)));
proc->start(KProcess::NotifyOnExit,true); proc->start(TDEProcess::NotifyOnExit,true);
} }
void KgpgInterface::signfin(KProcess *) void KgpgInterface::signfin(TDEProcess *)
{ {
if (message.find("SIG_CREATED")!=-1) if (message.find("SIG_CREATED")!=-1)
KMessageBox::information(0,i18n("The signature file %1 was successfully created.").arg(file.fileName())); KMessageBox::information(0,i18n("The signature file %1 was successfully created.").arg(file.fileName()));
@ -778,9 +778,9 @@ void KgpgInterface::KgpgVerifyFile(KURL sigUrl,KURL srcUrl)
*proc<<TQString(TQFile::encodeName(srcUrl.path())); *proc<<TQString(TQFile::encodeName(srcUrl.path()));
*proc<<TQString(TQFile::encodeName(sigUrl.path())); *proc<<TQString(TQFile::encodeName(sigUrl.path()));
TQObject::connect(proc, TQT_SIGNAL(processExited(KProcess *)),this,TQT_SLOT(verifyfin(KProcess *))); TQObject::connect(proc, TQT_SIGNAL(processExited(TDEProcess *)),this,TQT_SLOT(verifyfin(TDEProcess *)));
TQObject::connect(proc,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(readprocess(KProcIO *))); TQObject::connect(proc,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(readprocess(KProcIO *)));
proc->start(KProcess::NotifyOnExit,true); proc->start(TDEProcess::NotifyOnExit,true);
} }
@ -819,7 +819,7 @@ TQString required;
} }
void KgpgInterface::verifyfin(KProcess *) void KgpgInterface::verifyfin(TDEProcess *)
{ {
if (!signmiss) { if (!signmiss) {
if (signID.isEmpty()) signID=i18n("No signature found."); if (signID.isEmpty()) signID=i18n("No signature found.");
@ -860,8 +860,8 @@ void KgpgInterface::KgpgSignKey(TQString keyID,TQString signKeyID,TQString signK
if (local) *conprocess<<"lsign"; if (local) *conprocess<<"lsign";
else *conprocess<<"sign"; else *conprocess<<"sign";
TQObject::connect(conprocess,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(sigprocess(KProcIO *))); TQObject::connect(conprocess,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(sigprocess(KProcIO *)));
TQObject::connect(conprocess, TQT_SIGNAL(processExited(KProcess *)),this, TQT_SLOT(signover(KProcess *))); TQObject::connect(conprocess, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(signover(TDEProcess *)));
conprocess->start(KProcess::NotifyOnExit,true); conprocess->start(TDEProcess::NotifyOnExit,true);
} }
void KgpgInterface::sigprocess(KProcIO *p) void KgpgInterface::sigprocess(KProcIO *p)
@ -941,7 +941,7 @@ void KgpgInterface::sigprocess(KProcIO *p)
} }
void KgpgInterface::signover(KProcess *) void KgpgInterface::signover(TDEProcess *)
{ {
if (signSuccess>1) if (signSuccess>1)
emit signatureFinished(signSuccess); //// signature successful or bad passphrase emit signatureFinished(signSuccess); //// signature successful or bad passphrase
@ -957,8 +957,8 @@ void KgpgInterface::signover(KProcess *)
void KgpgInterface::openSignConsole() void KgpgInterface::openSignConsole()
{ {
KProcess conprocess; TDEProcess conprocess;
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup("General"); config->setGroup("General");
conprocess<< config->readPathEntry("TerminalApplication","konsole"); conprocess<< config->readPathEntry("TerminalApplication","konsole");
conprocess<<"-e"<<"gpg"; conprocess<<"-e"<<"gpg";
@ -967,7 +967,7 @@ void KgpgInterface::openSignConsole()
conprocess<<"--sign-key"<<konsKeyID; conprocess<<"--sign-key"<<konsKeyID;
else else
conprocess<<"--lsign-key"<<konsKeyID; conprocess<<"--lsign-key"<<konsKeyID;
conprocess.start(KProcess::Block); conprocess.start(TDEProcess::Block);
emit signatureFinished(3); emit signatureFinished(3);
} }
@ -1008,8 +1008,8 @@ void KgpgInterface::KgpgDelSignature(TQString keyID,TQString signKeyID)
*conprocess<<"gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--utf8-strings"<<"--command-fd=0"<<"--status-fd=2"; *conprocess<<"gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--utf8-strings"<<"--command-fd=0"<<"--status-fd=2";
*conprocess<<"--edit-key"<<keyID<<"uid 1"<<"delsig"; *conprocess<<"--edit-key"<<keyID<<"uid 1"<<"delsig";
TQObject::connect(conprocess,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(delsigprocess(KProcIO *))); TQObject::connect(conprocess,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(delsigprocess(KProcIO *)));
TQObject::connect(conprocess, TQT_SIGNAL(processExited(KProcess *)),this, TQT_SLOT(delsignover(KProcess *))); TQObject::connect(conprocess, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(delsignover(TDEProcess *)));
conprocess->start(KProcess::NotifyOnExit,true); conprocess->start(TDEProcess::NotifyOnExit,true);
} }
@ -1042,7 +1042,7 @@ void KgpgInterface::delsigprocess(KProcIO *p)
} }
} }
void KgpgInterface::delsignover(KProcess *) void KgpgInterface::delsignover(TDEProcess *)
{ {
emit delsigfinished(deleteSuccess); emit delsigfinished(deleteSuccess);
} }
@ -1085,8 +1085,8 @@ void KgpgInterface::KgpgKeyExpire(TQString keyID,TQDate date,bool unlimited)
*conprocess<<"gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--command-fd=0"<<"--status-fd=2"<<"--utf8-strings"; *conprocess<<"gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--command-fd=0"<<"--status-fd=2"<<"--utf8-strings";
*conprocess<<"--edit-key"<<keyID<<"expire"; *conprocess<<"--edit-key"<<keyID<<"expire";
TQObject::connect(conprocess,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(expprocess(KProcIO *))); TQObject::connect(conprocess,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(expprocess(KProcIO *)));
TQObject::connect(conprocess, TQT_SIGNAL(processExited(KProcess *)),this, TQT_SLOT(expover(KProcess *))); TQObject::connect(conprocess, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(expover(TDEProcess *)));
conprocess->start(KProcess::NotifyOnExit,KProcess::AllOutput); conprocess->start(TDEProcess::NotifyOnExit,TDEProcess::AllOutput);
} }
@ -1150,7 +1150,7 @@ void KgpgInterface::expprocess(KProcIO *p)
void KgpgInterface::expover(KProcess *) void KgpgInterface::expover(TDEProcess *)
{ {
if ((expSuccess==3) || (expSuccess==2)) if ((expSuccess==3) || (expSuccess==2))
emit expirationFinished(expSuccess); //// signature successful or bad passphrase emit expirationFinished(expSuccess); //// signature successful or bad passphrase
@ -1179,8 +1179,8 @@ void KgpgInterface::KgpgTrustExpire(TQString keyID,int keyTrust)
*conprocess<<"gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--command-fd=0"<<"--status-fd=2"<<"--utf8-strings"; *conprocess<<"gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--command-fd=0"<<"--status-fd=2"<<"--utf8-strings";
*conprocess<<"--edit-key"<<keyID<<"trust"; *conprocess<<"--edit-key"<<keyID<<"trust";
TQObject::connect(conprocess,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(trustprocess(KProcIO *))); TQObject::connect(conprocess,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(trustprocess(KProcIO *)));
TQObject::connect(conprocess, TQT_SIGNAL(processExited(KProcess *)),this, TQT_SLOT(trustover(KProcess *))); TQObject::connect(conprocess, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(trustover(TDEProcess *)));
conprocess->start(KProcess::NotifyOnExit,true); conprocess->start(TDEProcess::NotifyOnExit,true);
} }
@ -1217,7 +1217,7 @@ void KgpgInterface::trustprocess(KProcIO *p)
void KgpgInterface::trustover(KProcess *) void KgpgInterface::trustover(TDEProcess *)
{ {
emit trustfinished(); emit trustfinished();
} }
@ -1235,8 +1235,8 @@ void KgpgInterface::KgpgChangePass(TQString keyID)
*conprocess<<"gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--no-use-agent"<<"--command-fd=0"<<"--status-fd=2"<<"--utf8-strings"; *conprocess<<"gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--no-use-agent"<<"--command-fd=0"<<"--status-fd=2"<<"--utf8-strings";
*conprocess<<"--edit-key"<<keyID<<"passwd"; *conprocess<<"--edit-key"<<keyID<<"passwd";
TQObject::connect(conprocess,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(passprocess(KProcIO *))); TQObject::connect(conprocess,TQT_SIGNAL(readReady(KProcIO *)),this,TQT_SLOT(passprocess(KProcIO *)));
TQObject::connect(conprocess, TQT_SIGNAL(processExited(KProcess *)),this, TQT_SLOT(passover(KProcess *))); TQObject::connect(conprocess, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(passover(TDEProcess *)));
conprocess->start(KProcess::NotifyOnExit,KProcess::AllOutput); conprocess->start(TDEProcess::NotifyOnExit,TDEProcess::AllOutput);
} }
@ -1318,7 +1318,7 @@ void KgpgInterface::passprocess(KProcIO *p)
void KgpgInterface::passover(KProcess *) void KgpgInterface::passover(TDEProcess *)
{ {
//emit trustfinished(); //emit trustfinished();
} }
@ -1339,7 +1339,7 @@ TQString KgpgInterface::getKey(TQStringList IDs, bool attributes)
for ( TQStringList::Iterator it = IDs.begin(); it != IDs.end(); ++it ) for ( TQStringList::Iterator it = IDs.begin(); it != IDs.end(); ++it )
*proc << *it; *proc << *it;
TQObject::connect(proc, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(slotReadKey(KProcIO *))); TQObject::connect(proc, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(slotReadKey(KProcIO *)));
proc->start(KProcess::Block,false); proc->start(TDEProcess::Block,false);
return keyString; return keyString;
} }
@ -1364,9 +1364,9 @@ void KgpgInterface::importKeyURL(KURL url)
*conprocess<< "gpg"<<"--no-tty"<<"--no-secmem-warning"<<"--status-fd=2"<<"--utf8-strings"<<"--import"; *conprocess<< "gpg"<<"--no-tty"<<"--no-secmem-warning"<<"--status-fd=2"<<"--utf8-strings"<<"--import";
*conprocess<<"--allow-secret-key-import"; *conprocess<<"--allow-secret-key-import";
*conprocess<<tempKeyFile; *conprocess<<tempKeyFile;
TQObject::connect(conprocess, TQT_SIGNAL(processExited(KProcess *)),this, TQT_SLOT(importURLover(KProcess *))); TQObject::connect(conprocess, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(importURLover(TDEProcess *)));
TQObject::connect(conprocess, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(importprocess(KProcIO *))); TQObject::connect(conprocess, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(importprocess(KProcIO *)));
conprocess->start(KProcess::NotifyOnExit,true); conprocess->start(TDEProcess::NotifyOnExit,true);
} }
} }
@ -1377,14 +1377,14 @@ void KgpgInterface::importKey(TQString keystr)
KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale()); KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale());
*conprocess<< "gpg"<<"--no-tty"<<"--no-secmem-warning"<<"--status-fd=2"<<"--import"; *conprocess<< "gpg"<<"--no-tty"<<"--no-secmem-warning"<<"--status-fd=2"<<"--import";
*conprocess<<"--allow-secret-key-import"; *conprocess<<"--allow-secret-key-import";
TQObject::connect(conprocess, TQT_SIGNAL(processExited(KProcess *)),this, TQT_SLOT(importover(KProcess *))); TQObject::connect(conprocess, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(importover(TDEProcess *)));
TQObject::connect(conprocess, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(importprocess(KProcIO *))); TQObject::connect(conprocess, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(importprocess(KProcIO *)));
conprocess->start(KProcess::NotifyOnExit,true); conprocess->start(TDEProcess::NotifyOnExit,true);
conprocess->writeStdin(keystr, true); conprocess->writeStdin(keystr, true);
conprocess->closeWhenDone(); conprocess->closeWhenDone();
} }
void KgpgInterface::importover(KProcess *) void KgpgInterface::importover(TDEProcess *)
{ {
TQStringList importedKeysIds; TQStringList importedKeysIds;
TQStringList messageList; TQStringList messageList;
@ -1448,7 +1448,7 @@ kdDebug(2100)<<"Importing is over"<<endl;
(void) new KDetailedInfo(0,"import_result",resultMessage,message,importedKeys); (void) new KDetailedInfo(0,"import_result",resultMessage,message,importedKeys);
} }
void KgpgInterface::importURLover(KProcess *p) void KgpgInterface::importURLover(TDEProcess *p)
{ {
KIO::NetAccess::removeTempFile(tempKeyFile); KIO::NetAccess::removeTempFile(tempKeyFile);
importover(p); importover(p);
@ -1480,12 +1480,12 @@ addSuccess=true;
KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale()); KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale());
*conprocess<< "gpg"<<"--no-tty"<<"--status-fd=2"<<"--command-fd=0"<<"--utf8-strings"; *conprocess<< "gpg"<<"--no-tty"<<"--status-fd=2"<<"--command-fd=0"<<"--utf8-strings";
*conprocess<<"--edit-key"<<keyID<<"adduid"; *conprocess<<"--edit-key"<<keyID<<"adduid";
TQObject::connect(conprocess, TQT_SIGNAL(processExited(KProcess *)),this, TQT_SLOT(adduidover(KProcess *))); TQObject::connect(conprocess, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(adduidover(TDEProcess *)));
TQObject::connect(conprocess, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(adduidprocess(KProcIO *))); TQObject::connect(conprocess, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(adduidprocess(KProcIO *)));
conprocess->start(KProcess::NotifyOnExit,true); conprocess->start(TDEProcess::NotifyOnExit,true);
} }
void KgpgInterface::adduidover(KProcess *) void KgpgInterface::adduidover(TDEProcess *)
{ {
if (addSuccess) emit addUidFinished(); if (addSuccess) emit addUidFinished();
else emit addUidError(output); else emit addUidError(output);
@ -1564,9 +1564,9 @@ userIDs=keyID;
KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale()); KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale());
*conprocess<< "gpg"<<"--no-tty"<<"--status-fd=2"<<"--command-fd=0"; *conprocess<< "gpg"<<"--no-tty"<<"--status-fd=2"<<"--command-fd=0";
*conprocess<<"--with-colon"<<"--list-keys"<<keyID; *conprocess<<"--with-colon"<<"--list-keys"<<keyID;
TQObject::connect(conprocess, TQT_SIGNAL(processExited(KProcess *)),this, TQT_SLOT(photoreadover(KProcess *))); TQObject::connect(conprocess, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(photoreadover(TDEProcess *)));
TQObject::connect(conprocess, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(photoreadprocess(KProcIO *))); TQObject::connect(conprocess, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(photoreadprocess(KProcIO *)));
conprocess->start(KProcess::NotifyOnExit,true); conprocess->start(TDEProcess::NotifyOnExit,true);
} }
void KgpgInterface::photoreadprocess(KProcIO *p) void KgpgInterface::photoreadprocess(KProcIO *p)
@ -1579,7 +1579,7 @@ void KgpgInterface::photoreadprocess(KProcIO *p)
} }
void KgpgInterface::photoreadover(KProcess *) void KgpgInterface::photoreadover(TDEProcess *)
{ {
for (int i=1;i<photoCount+1;i++) for (int i=1;i<photoCount+1;i++)
if (isPhotoId(i)) photoList+=TQString::number(i); if (isPhotoId(i)) photoList+=TQString::number(i);
@ -1596,7 +1596,7 @@ KTempFile *kgpginfotmp=new KTempFile();
KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale()); KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale());
*conprocess<< "gpg"<<"--no-tty"<<"--status-fd=2"<<"--command-fd=0"<<"--utf8-strings"; *conprocess<< "gpg"<<"--no-tty"<<"--status-fd=2"<<"--command-fd=0"<<"--utf8-strings";
*conprocess<<"--photo-viewer"<<TQString(TQFile::encodeName(pgpgOutput))<<"--edit-key"<<userIDs<<"uid"<<TQString::number(uid)<<"showphoto"; *conprocess<<"--photo-viewer"<<TQString(TQFile::encodeName(pgpgOutput))<<"--edit-key"<<userIDs<<"uid"<<TQString::number(uid)<<"showphoto";
conprocess->start(KProcess::Block); conprocess->start(TDEProcess::Block);
if (kgpginfotmp->file()->size()>0) if (kgpginfotmp->file()->size()>0)
{ {
kgpginfotmp->unlink(); kgpginfotmp->unlink();
@ -1613,12 +1613,12 @@ void KgpgInterface::KgpgDeletePhoto(TQString keyID,TQString uid)
KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale()); KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale());
*conprocess<< "gpg"<<"--no-tty"<<"--status-fd=2"<<"--command-fd=0"<<"--utf8-strings"; *conprocess<< "gpg"<<"--no-tty"<<"--status-fd=2"<<"--command-fd=0"<<"--utf8-strings";
*conprocess<<"--edit-key"<<keyID<<"uid"<<uid<<"deluid"; *conprocess<<"--edit-key"<<keyID<<"uid"<<uid<<"deluid";
TQObject::connect(conprocess, TQT_SIGNAL(processExited(KProcess *)),this, TQT_SLOT(delphotoover(KProcess *))); TQObject::connect(conprocess, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(delphotoover(TDEProcess *)));
TQObject::connect(conprocess, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(delphotoprocess(KProcIO *))); TQObject::connect(conprocess, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(delphotoprocess(KProcIO *)));
conprocess->start(KProcess::NotifyOnExit,true); conprocess->start(TDEProcess::NotifyOnExit,true);
} }
void KgpgInterface::delphotoover(KProcess *) void KgpgInterface::delphotoover(TDEProcess *)
{ {
if (delSuccess) emit delPhotoFinished(); if (delSuccess) emit delPhotoFinished();
else emit delPhotoError(output); else emit delPhotoError(output);
@ -1676,12 +1676,12 @@ addSuccess=true;
KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale()); KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale());
*conprocess<< "gpg"<<"--no-tty"<<"--status-fd=2"<<"--command-fd=0"<<"--utf8-strings"; *conprocess<< "gpg"<<"--no-tty"<<"--status-fd=2"<<"--command-fd=0"<<"--utf8-strings";
*conprocess<<"--edit-key"<<keyID<<"addphoto"; *conprocess<<"--edit-key"<<keyID<<"addphoto";
TQObject::connect(conprocess, TQT_SIGNAL(processExited(KProcess *)),this, TQT_SLOT(addphotoover(KProcess *))); TQObject::connect(conprocess, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(addphotoover(TDEProcess *)));
TQObject::connect(conprocess, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(addphotoprocess(KProcIO *))); TQObject::connect(conprocess, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(addphotoprocess(KProcIO *)));
conprocess->start(KProcess::NotifyOnExit,true); conprocess->start(TDEProcess::NotifyOnExit,true);
} }
void KgpgInterface::addphotoover(KProcess *) void KgpgInterface::addphotoover(TDEProcess *)
{ {
if (addSuccess) emit addPhotoFinished(); if (addSuccess) emit addPhotoFinished();
else emit addPhotoError(output); else emit addPhotoError(output);
@ -1757,12 +1757,12 @@ void KgpgInterface::KgpgRevokeKey(TQString keyID,TQString revokeUrl,int reason,T
if (!revokeUrl.isEmpty()) if (!revokeUrl.isEmpty())
*conprocess<<"-o"<<revokeUrl; *conprocess<<"-o"<<revokeUrl;
*conprocess<<"--gen-revoke"<<keyID; *conprocess<<"--gen-revoke"<<keyID;
TQObject::connect(conprocess, TQT_SIGNAL(processExited(KProcess *)),this, TQT_SLOT(revokeover(KProcess *))); TQObject::connect(conprocess, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(revokeover(TDEProcess *)));
TQObject::connect(conprocess, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(revokeprocess(KProcIO *))); TQObject::connect(conprocess, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(revokeprocess(KProcIO *)));
conprocess->start(KProcess::NotifyOnExit,true); conprocess->start(TDEProcess::NotifyOnExit,true);
} }
void KgpgInterface::revokeover(KProcess *) void KgpgInterface::revokeover(TDEProcess *)
{ {
if (!revokeSuccess) if (!revokeSuccess)
KMessageBox::detailedSorry(0,i18n("Creation of the revocation certificate failed..."),output); KMessageBox::detailedSorry(0,i18n("Creation of the revocation certificate failed..."),output);

@ -26,7 +26,7 @@
class TQLabel; class TQLabel;
class KProcIO; class KProcIO;
class KProcess; class TDEProcess;
class KLed; class KLed;
/** /**
@ -84,7 +84,7 @@ public slots:
void KgpgVerifyText(TQString text); void KgpgVerifyText(TQString text);
void slotverifyread(KProcIO *p); void slotverifyread(KProcIO *p);
void slotverifyresult(KProcess*); void slotverifyresult(TDEProcess*);
/**Import key function /**Import key function
@ -124,15 +124,15 @@ public slots:
*/ */
//static TQString KgpgDecryptText(TQString text,TQString userID); //static TQString KgpgDecryptText(TQString text,TQString userID);
void KgpgDecryptText(TQString text,TQStringList Options=TQString()); void KgpgDecryptText(TQString text,TQStringList Options=TQString());
void txtdecryptfin(KProcess *); void txtdecryptfin(TDEProcess *);
/**Extract list of photographic user id's /**Extract list of photographic user id's
* @param keyID the recipients key id's. * @param keyID the recipients key id's.
*/ */
void KgpgGetPhotoList(TQString keyID); void KgpgGetPhotoList(TQString keyID);
void getOutput(KProcess *, char *data, int ); void getOutput(TDEProcess *, char *data, int );
void getCmdOutput(KProcess *p, char *data, int ); void getCmdOutput(TDEProcess *p, char *data, int );
TQString getKey(TQStringList IDs, bool attributes); TQString getKey(TQStringList IDs, bool attributes);
@ -141,7 +141,7 @@ public slots:
void KgpgChangePass(TQString keyID); void KgpgChangePass(TQString keyID);
void KgpgRevokeKey(TQString keyID,TQString revokeUrl,int reason,TQString description); void KgpgRevokeKey(TQString keyID,TQString revokeUrl,int reason,TQString description);
void revokeover(KProcess *); void revokeover(TDEProcess *);
void revokeprocess(KProcIO *p); void revokeprocess(KProcIO *p);
void KgpgDeletePhoto(TQString keyID,TQString uid); void KgpgDeletePhoto(TQString keyID,TQString uid);
void KgpgAddPhoto(TQString keyID,TQString imagePath); void KgpgAddPhoto(TQString keyID,TQString imagePath);
@ -173,7 +173,7 @@ private slots:
/** /**
* Checks output of the signature process * Checks output of the signature process
*/ */
void signover(KProcess *); void signover(TDEProcess *);
/** /**
* Read output of the signature process * Read output of the signature process
*/ */
@ -182,17 +182,17 @@ private slots:
/** /**
* Checks if the encrypted file was saved. * Checks if the encrypted file was saved.
*/ */
void encryptfin(KProcess *); void encryptfin(TDEProcess *);
/** /**
* Checks if the decrypted file was saved. * Checks if the decrypted file was saved.
*/ */
void decryptfin(KProcess *); void decryptfin(TDEProcess *);
/** /**
* Checks if the signing was successful. * Checks if the signing was successful.
*/ */
void signfin(KProcess *p); void signfin(TDEProcess *p);
/** /**
* Checks the number of uid's for a key-> if greater than one, key signature will switch to konsole mode * Checks the number of uid's for a key-> if greater than one, key signature will switch to konsole mode
@ -206,12 +206,12 @@ private slots:
/** /**
* Checks output of the delete signature process * Checks output of the delete signature process
*/ */
void delsignover(KProcess *p); void delsignover(TDEProcess *p);
/** /**
* Checks output of the import process * Checks output of the import process
*/ */
void importURLover(KProcess *p); void importURLover(TDEProcess *p);
void importover(KProcess *); void importover(TDEProcess *);
/** /**
* Read output of the import process * Read output of the import process
*/ */
@ -235,37 +235,37 @@ private slots:
/** /**
* Checks output of the verify process * Checks output of the verify process
*/ */
void verifyfin(KProcess *p); void verifyfin(TDEProcess *p);
void expprocess(KProcIO *p); void expprocess(KProcIO *p);
void expover(KProcess*); void expover(TDEProcess*);
void trustprocess(KProcIO *p); void trustprocess(KProcIO *p);
void passprocess(KProcIO *p); void passprocess(KProcIO *p);
void trustover(KProcess *); void trustover(TDEProcess *);
void passover(KProcess *); void passover(TDEProcess *);
void txtreadencprocess(KProcIO *p); void txtreadencprocess(KProcIO *p);
void txtencryptfin(KProcess *); void txtencryptfin(TDEProcess *);
void delphotoover(KProcess *); void delphotoover(TDEProcess *);
void delphotoprocess(KProcIO *p); void delphotoprocess(KProcIO *p);
void addphotoover(KProcess *); void addphotoover(TDEProcess *);
void addphotoprocess(KProcIO *p); void addphotoprocess(KProcIO *p);
void adduidover(KProcess *); void adduidover(TDEProcess *);
void adduidprocess(KProcIO *p); void adduidprocess(KProcIO *p);
void slotReadKey(KProcIO *p); void slotReadKey(KProcIO *p);
void photoreadover(KProcess *); void photoreadover(TDEProcess *);
void photoreadprocess(KProcIO *p); void photoreadprocess(KProcIO *p);
bool isPhotoId(int uid); bool isPhotoId(int uid);
void updateIDs(TQString txtString); void updateIDs(TQString txtString);
void txtsignprocess(KProcIO *p); void txtsignprocess(KProcIO *p);
void txtsignfin(KProcess *); void txtsignfin(TDEProcess *);
//void txtdecryptfin(KProcess *); //void txtdecryptfin(TDEProcess *);
signals: signals:

@ -122,7 +122,7 @@ void KgpgLibrary::processpopup2(TQString fileName)
{ {
//pop->setTimeout(0); //pop->setTimeout(0);
pop->setView(i18n("Processing encryption (%1)").arg(fileName),i18n("Please wait..."),KGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop)); pop->setView(i18n("Processing encryption (%1)").arg(fileName),i18n("Please wait..."),TDEGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop));
pop->show(); pop->show();
/*TQRect qRect(TQApplication::desktop()->screenGeometry()); /*TQRect qRect(TQApplication::desktop()->screenGeometry());
int iXpos=qRect.width()/2-pop->width()/2; int iXpos=qRect.width()/2-pop->width()/2;
@ -154,7 +154,7 @@ void KgpgLibrary::slotShredResult( KIO::Job * job )
{ {
job->showErrorDialog( (TQWidget*)parent() ); job->showErrorDialog( (TQWidget*)parent() );
emit systemMessage(TQString(),true); emit systemMessage(TQString(),true);
KPassivePopup::message(i18n("KGpg Error"),i18n("Process halted, not all files were shredded."),KGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop),panel,"kgpg_error",0); KPassivePopup::message(i18n("KGpg Error"),i18n("Process halted, not all files were shredded."),TDEGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop),panel,"kgpg_error",0);
} }
} }
@ -194,7 +194,7 @@ void KgpgLibrary::processpopup(TQString fileName)
{ {
emit systemMessage(i18n("Decrypting %1").arg(fileName)); emit systemMessage(i18n("Decrypting %1").arg(fileName));
pop->setTimeout(0); pop->setTimeout(0);
pop->setView(i18n("Processing decryption"),i18n("Please wait..."),KGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop)); pop->setView(i18n("Processing decryption"),i18n("Please wait..."),TDEGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop));
pop->show(); pop->show();
TQRect qRect(TQApplication::desktop()->screenGeometry()); TQRect qRect(TQApplication::desktop()->screenGeometry());
int iXpos=qRect.width()/2-pop->width()/2; int iXpos=qRect.width()/2-pop->width()/2;

@ -96,8 +96,8 @@ kdDebug(2100)<<"Adding pages"<<endl;
page7->shredInfo->setText(i18n( "<qt><p>You must be aware that <b>shredding is not secure</b> on all file systems, and that parts of the file may have been saved in a temporary file or in the spooler of your printer if you previously opened it in an editor or tried to print it. Only works on files (not on folders).</p></qt>")); page7->shredInfo->setText(i18n( "<qt><p>You must be aware that <b>shredding is not secure</b> on all file systems, and that parts of the file may have been saved in a temporary file or in the spooler of your printer if you previously opened it in an editor or tried to print it. Only works on files (not on folders).</p></qt>"));
page7->groupShred->adjustSize(); page7->groupShred->adjustSize();
pixkeySingle=KGlobal::iconLoader()->loadIcon("kgpg_key1",KIcon::Small,20); pixkeySingle=TDEGlobal::iconLoader()->loadIcon("kgpg_key1",KIcon::Small,20);
pixkeyDouble=KGlobal::iconLoader()->loadIcon("kgpg_key2",KIcon::Small,20); pixkeyDouble=TDEGlobal::iconLoader()->loadIcon("kgpg_key2",KIcon::Small,20);
addPage(page1, i18n("Encryption"), "encrypted"); addPage(page1, i18n("Encryption"), "encrypted");
addPage(page2, i18n("Decryption"), "decrypted"); addPage(page2, i18n("Decryption"), "decrypted");
addPage(page3, i18n("Appearance"), "looknfeel"); addPage(page3, i18n("Appearance"), "looknfeel");
@ -197,7 +197,7 @@ if (!gpgHome.endsWith("/")) gpgHome.append("/");
{ {
KProcIO *p=new KProcIO(); KProcIO *p=new KProcIO();
*p<<"gpg"<<"--homedir"<<gpgHome<<"--no-tty"<<"--list-secret-keys"; *p<<"gpg"<<"--homedir"<<gpgHome<<"--no-tty"<<"--list-secret-keys";
p->start(KProcess::Block); //// start gnupg so that it will create a config file p->start(TDEProcess::Block); //// start gnupg so that it will create a config file
confPath="gpg.conf"; confPath="gpg.conf";
TQFile confFile(gpgHome+confPath); TQFile confFile(gpgHome+confPath);
if (!confFile.open(IO_WriteOnly)) if (!confFile.open(IO_WriteOnly))

@ -167,8 +167,8 @@ int UpdateViewItem :: compare( TQListViewItem * item, int c, bool ascending ) c
{ {
int rc = 0; int rc = 0;
if ((c==3) || (c==5)) { if ((c==3) || (c==5)) {
TQDate d = KGlobal::locale()->readDate(text(c)); TQDate d = TDEGlobal::locale()->readDate(text(c));
TQDate itemDate = KGlobal::locale()->readDate(item->text(c)); TQDate itemDate = TDEGlobal::locale()->readDate(item->text(c));
bool itemDateValid = itemDate.isValid(); bool itemDateValid = itemDate.isValid();
if (d.isValid()) { if (d.isValid()) {
if (itemDateValid) { if (itemDateValid) {
@ -219,7 +219,7 @@ KDialogBase( parent, name, true,i18n("Private Key List"),Ok | Cancel)
TQString keyname; TQString keyname;
page = new TQWidget(this); page = new TQWidget(this);
TQLabel *labeltxt; TQLabel *labeltxt;
KIconLoader *loader = KGlobal::iconLoader(); KIconLoader *loader = TDEGlobal::iconLoader();
keyPair=loader->loadIcon("kgpg_key2",KIcon::Small,20); keyPair=loader->loadIcon("kgpg_key2",KIcon::Small,20);
setMinimumSize(350,100); setMinimumSize(350,100);
@ -395,7 +395,7 @@ TQString KgpgSelKey::getkeyMail()
KeyView::KeyView( TQWidget *parent, const char *name ) KeyView::KeyView( TQWidget *parent, const char *name )
: KListView( parent, name ) : KListView( parent, name )
{ {
KIconLoader *loader = KGlobal::iconLoader(); KIconLoader *loader = TDEGlobal::iconLoader();
pixkeyOrphan=loader->loadIcon("kgpg_key4",KIcon::Small,20); pixkeyOrphan=loader->loadIcon("kgpg_key4",KIcon::Small,20);
pixkeyGroup=loader->loadIcon("kgpg_key3",KIcon::Small,20); pixkeyGroup=loader->loadIcon("kgpg_key3",KIcon::Small,20);
@ -680,7 +680,7 @@ listKeys::listKeys(TQWidget *parent, const char *name) : DCOPObject( "KeyInterfa
newContact->setEnabled(false); newContact->setEnabled(false);
setCentralWidget(keysList2); setCentralWidget(keysList2);
keysList2->restoreLayout(KGlobal::config(), "KeyView"); keysList2->restoreLayout(TDEGlobal::config(), "KeyView");
TQObject::connect(keysList2,TQT_SIGNAL(returnPressed(TQListViewItem *)),TQT_TQOBJECT(this),TQT_SLOT(listsigns())); TQObject::connect(keysList2,TQT_SIGNAL(returnPressed(TQListViewItem *)),TQT_TQOBJECT(this),TQT_SLOT(listsigns()));
TQObject::connect(keysList2,TQT_SIGNAL(doubleClicked(TQListViewItem *,const TQPoint &,int)),TQT_TQOBJECT(this),TQT_SLOT(listsigns())); TQObject::connect(keysList2,TQT_SIGNAL(doubleClicked(TQListViewItem *,const TQPoint &,int)),TQT_TQOBJECT(this),TQT_SLOT(listsigns()));
@ -889,13 +889,13 @@ void listKeys::slotDelUid()
while (item->depth()>0) while (item->depth()>0)
item=item->parent(); item=item->parent();
KProcess *conprocess=new KProcess(); TDEProcess *conprocess=new TDEProcess();
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup("General"); config->setGroup("General");
*conprocess<< config->readPathEntry("TerminalApplication","konsole"); *conprocess<< config->readPathEntry("TerminalApplication","konsole");
*conprocess<<"-e"<<"gpg"; *conprocess<<"-e"<<"gpg";
*conprocess<<"--edit-key"<<item->text(6)<<"uid"; *conprocess<<"--edit-key"<<item->text(6)<<"uid";
conprocess->start(KProcess::Block); conprocess->start(TDEProcess::Block);
keysList2->refreshselfkey(); keysList2->refreshselfkey();
} }
@ -1475,7 +1475,7 @@ void listKeys::slotexportsec()
KProcIO *p=new KProcIO(TQTextCodec::codecForLocale()); KProcIO *p=new KProcIO(TQTextCodec::codecForLocale());
*p<<"gpg"<<"--no-tty"<<"--output"<<TQString(TQFile::encodeName(url.path()))<<"--armor"<<"--export-secret-keys"<<keysList2->currentItem()->text(6); *p<<"gpg"<<"--no-tty"<<"--output"<<TQString(TQFile::encodeName(url.path()))<<"--armor"<<"--export-secret-keys"<<keysList2->currentItem()->text(6);
p->start(KProcess::Block); p->start(TDEProcess::Block);
if (fgpg.exists()) if (fgpg.exists())
KMessageBox::information(this,i18n("Your PRIVATE key \"%1\" was successfully exported.\nDO NOT leave it in an insecure place.").arg(url.path())); KMessageBox::information(this,i18n("Your PRIVATE key \"%1\" was successfully exported.\nDO NOT leave it in an insecure place.").arg(url.path()));
@ -1551,7 +1551,7 @@ void listKeys::slotexport()
*p<<(exportList.at(i)->text(6)).stripWhiteSpace(); *p<<(exportList.at(i)->text(6)).stripWhiteSpace();
p->start(KProcess::Block); p->start(TDEProcess::Block);
if (fgpg.exists()) if (fgpg.exists())
KMessageBox::information(this,i18n("Your public key \"%1\" was successfully exported\n").arg(expname)); KMessageBox::information(this,i18n("Your public key \"%1\" was successfully exported\n").arg(expname));
else else
@ -1611,7 +1611,7 @@ void listKeys::slotShowPhoto()
//KMessageBox::sorry(0,ptr->desktopEntryName()); //KMessageBox::sorry(0,ptr->desktopEntryName());
KProcIO *p=new KProcIO(TQTextCodec::codecForLocale()); KProcIO *p=new KProcIO(TQTextCodec::codecForLocale());
*p<<"gpg"<<"--no-tty"<<"--photo-viewer"<<TQString(TQFile::encodeName(ptr->desktopEntryName()+" %i"))<<"--edit-key"<<keysList2->currentItem()->parent()->text(6)<<"uid"<<keysList2->currentItem()->text(6)<<"showphoto"<<"quit"; *p<<"gpg"<<"--no-tty"<<"--photo-viewer"<<TQString(TQFile::encodeName(ptr->desktopEntryName()+" %i"))<<"--edit-key"<<keysList2->currentItem()->parent()->text(6)<<"uid"<<keysList2->currentItem()->text(6)<<"showphoto"<<"quit";
p->start(KProcess::DontCare,true); p->start(TDEProcess::DontCare,true);
} }
void listKeys::listsigns() void listKeys::listsigns()
@ -1778,8 +1778,8 @@ void listKeys::editGroup()
KDialogBase *dialogGroupEdit=new KDialogBase(KDialogBase::Swallow, i18n("Group Properties"), KDialogBase::Ok | KDialogBase::Cancel,KDialogBase::Ok,this,0,true); KDialogBase *dialogGroupEdit=new KDialogBase(KDialogBase::Swallow, i18n("Group Properties"), KDialogBase::Ok | KDialogBase::Cancel,KDialogBase::Ok,this,0,true);
gEdit=new groupEdit(); gEdit=new groupEdit();
gEdit->buttonAdd->setPixmap(KGlobal::iconLoader()->loadIcon("down",KIcon::Small,20)); gEdit->buttonAdd->setPixmap(TDEGlobal::iconLoader()->loadIcon("down",KIcon::Small,20));
gEdit->buttonRemove->setPixmap(KGlobal::iconLoader()->loadIcon("up",KIcon::Small,20)); gEdit->buttonRemove->setPixmap(TDEGlobal::iconLoader()->loadIcon("up",KIcon::Small,20));
connect(gEdit->buttonAdd,TQT_SIGNAL(clicked()),TQT_TQOBJECT(this),TQT_SLOT(groupAdd())); connect(gEdit->buttonAdd,TQT_SIGNAL(clicked()),TQT_TQOBJECT(this),TQT_SLOT(groupAdd()));
connect(gEdit->buttonRemove,TQT_SIGNAL(clicked()),TQT_TQOBJECT(this),TQT_SLOT(groupRemove())); connect(gEdit->buttonRemove,TQT_SIGNAL(clicked()),TQT_TQOBJECT(this),TQT_SLOT(groupRemove()));
@ -1919,9 +1919,9 @@ void listKeys::signkey()
if (!terminalSign->isChecked()) if (!terminalSign->isChecked())
signLoop(); signLoop();
else { else {
KProcess kp; TDEProcess kp;
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup("General"); config->setGroup("General");
kp<< config->readPathEntry("TerminalApplication","konsole"); kp<< config->readPathEntry("TerminalApplication","konsole");
kp<<"-e" kp<<"-e"
@ -1935,7 +1935,7 @@ void listKeys::signkey()
kp<<"lsign"; kp<<"lsign";
else else
kp<<"sign"; kp<<"sign";
kp.start(KProcess::Block); kp.start(TDEProcess::Block);
keysList2->refreshcurrentkey(keysList2->currentItem()); keysList2->refreshcurrentkey(keysList2->currentItem());
} }
} }
@ -2095,9 +2095,9 @@ void listKeys::slotedit()
if (keysList2->currentItem()->text(6).isEmpty()) if (keysList2->currentItem()->text(6).isEmpty())
return; return;
KProcess kp; TDEProcess kp;
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup("General"); config->setGroup("General");
kp<< config->readPathEntry("TerminalApplication","konsole"); kp<< config->readPathEntry("TerminalApplication","konsole");
kp<<"-e" kp<<"-e"
@ -2107,7 +2107,7 @@ void listKeys::slotedit()
<<"--edit-key" <<"--edit-key"
<<keysList2->currentItem()->text(6) <<keysList2->currentItem()->text(6)
<<"help"; <<"help";
kp.start(KProcess::Block); kp.start(TDEProcess::Block);
keysList2->refreshcurrentkey(keysList2->currentItem()); keysList2->refreshcurrentkey(keysList2->currentItem());
} }
@ -2149,7 +2149,7 @@ void listKeys::slotgenkey()
TQWidget *wid=new TQWidget(pop); TQWidget *wid=new TQWidget(pop);
TQVBoxLayout *vbox=new TQVBoxLayout(wid,3); TQVBoxLayout *vbox=new TQVBoxLayout(wid,3);
TQVBox *passiveBox=pop->standardView(i18n("Generating new key pair."),TQString(),KGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop),wid); TQVBox *passiveBox=pop->standardView(i18n("Generating new key pair."),TQString(),TDEGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop),wid);
TQMovie anim; TQMovie anim;
@ -2179,8 +2179,8 @@ void listKeys::slotgenkey()
//*proc<<"gpg"<<"--no-tty"<<"--no-secmem-warning"<<"--batch"<<"--passphrase-fd"<<res<<"--gen-key"<<"-a"<<"kgpg.tmp"; //*proc<<"gpg"<<"--no-tty"<<"--no-secmem-warning"<<"--batch"<<"--passphrase-fd"<<res<<"--gen-key"<<"-a"<<"kgpg.tmp";
*proc<<"gpg"<<"--no-tty"<<"--status-fd=2"<<"--no-secmem-warning"<<"--batch"<<"--gen-key"<<"--utf8-strings"; *proc<<"gpg"<<"--no-tty"<<"--status-fd=2"<<"--no-secmem-warning"<<"--batch"<<"--gen-key"<<"--utf8-strings";
///////// when process ends, update dialog infos ///////// when process ends, update dialog infos
TQObject::connect(proc, TQT_SIGNAL(processExited(KProcess *)),TQT_TQOBJECT(this), TQT_SLOT(genover(KProcess *))); TQObject::connect(proc, TQT_SIGNAL(processExited(TDEProcess *)),TQT_TQOBJECT(this), TQT_SLOT(genover(TDEProcess *)));
proc->start(KProcess::NotifyOnExit,true); proc->start(TDEProcess::NotifyOnExit,true);
if (ktype=="RSA") if (ktype=="RSA")
proc->writeStdin(TQString("Key-Type: 1")); proc->writeStdin(TQString("Key-Type: 1"));
@ -2214,15 +2214,15 @@ void listKeys::slotgenkey()
proc->closeWhenDone(); proc->closeWhenDone();
} else ////// start expert (=konsole) mode } else ////// start expert (=konsole) mode
{ {
KProcess kp; TDEProcess kp;
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup("General"); config->setGroup("General");
kp<< config->readPathEntry("TerminalApplication","konsole"); kp<< config->readPathEntry("TerminalApplication","konsole");
kp<<"-e" kp<<"-e"
<<"gpg" <<"gpg"
<<"--gen-key"; <<"--gen-key";
kp.start(KProcess::Block); kp.start(TDEProcess::Block);
refreshkey(); refreshkey();
} }
} }
@ -2240,7 +2240,7 @@ void listKeys::readgenprocess(KProcIO *p)
// sample: [GNUPG:] KEY_CREATED B 156A4305085A58C01E2988229282910254D1B368 // sample: [GNUPG:] KEY_CREATED B 156A4305085A58C01E2988229282910254D1B368
} }
void listKeys::genover(KProcess *) void listKeys::genover(TDEProcess *)
{ {
newkeyID=TQString(); newkeyID=TQString();
continueSearch=true; continueSearch=true;
@ -2248,8 +2248,8 @@ void listKeys::genover(KProcess *)
*conprocess<< "gpg"; *conprocess<< "gpg";
*conprocess<<"--no-secmem-warning"<<"--with-colons"<<"--fingerprint"<<"--list-keys"<<newKeyName; *conprocess<<"--no-secmem-warning"<<"--with-colons"<<"--fingerprint"<<"--list-keys"<<newKeyName;
TQObject::connect(conprocess,TQT_SIGNAL(readReady(KProcIO *)),TQT_TQOBJECT(this),TQT_SLOT(slotReadFingerProcess(KProcIO *))); TQObject::connect(conprocess,TQT_SIGNAL(readReady(KProcIO *)),TQT_TQOBJECT(this),TQT_SLOT(slotReadFingerProcess(KProcIO *)));
TQObject::connect(conprocess, TQT_SIGNAL(processExited(KProcess *)),TQT_TQOBJECT(this), TQT_SLOT(newKeyDone(KProcess *))); TQObject::connect(conprocess, TQT_SIGNAL(processExited(TDEProcess *)),TQT_TQOBJECT(this), TQT_SLOT(newKeyDone(TDEProcess *)));
conprocess->start(KProcess::NotifyOnExit,true); conprocess->start(TDEProcess::NotifyOnExit,true);
} }
@ -2270,7 +2270,7 @@ void listKeys::slotReadFingerProcess(KProcIO *p)
} }
void listKeys::newKeyDone(KProcess *) void listKeys::newKeyDone(TDEProcess *)
{ {
changeMessage(i18n("Ready"),0); changeMessage(i18n("Ready"),0);
// refreshkey(); // refreshkey();
@ -2351,15 +2351,15 @@ void listKeys::deleteseckey()
if (result!=KMessageBox::Continue) if (result!=KMessageBox::Continue)
return; return;
KProcess *conprocess=new KProcess(); TDEProcess *conprocess=new TDEProcess();
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup("General"); config->setGroup("General");
*conprocess<< config->readPathEntry("TerminalApplication","konsole"); *conprocess<< config->readPathEntry("TerminalApplication","konsole");
*conprocess<<"-e"<<"gpg" *conprocess<<"-e"<<"gpg"
<<"--no-secmem-warning" <<"--no-secmem-warning"
<<"--delete-secret-key"<<keysList2->currentItem()->text(6); <<"--delete-secret-key"<<keysList2->currentItem()->text(6);
TQObject::connect(conprocess, TQT_SIGNAL(processExited(KProcess *)),TQT_TQOBJECT(this), TQT_SLOT(reloadSecretKeys())); TQObject::connect(conprocess, TQT_SIGNAL(processExited(TDEProcess *)),TQT_TQOBJECT(this), TQT_SLOT(reloadSecretKeys()));
conprocess->start(KProcess::NotifyOnExit,KProcess::AllOutput); conprocess->start(TDEProcess::NotifyOnExit,TDEProcess::AllOutput);
} }
void listKeys::reloadSecretKeys() void listKeys::reloadSecretKeys()
@ -2425,7 +2425,7 @@ void listKeys::deletekey()
TQPtrList<TQListViewItem> exportList=keysList2->selectedItems(); TQPtrList<TQListViewItem> exportList=keysList2->selectedItems();
if (exportList.count()==0) if (exportList.count()==0)
return; return;
KProcess gp; TDEProcess gp;
gp << "gpg" gp << "gpg"
<< "--no-tty" << "--no-tty"
<< "--no-secmem-warning" << "--no-secmem-warning"
@ -2435,7 +2435,7 @@ void listKeys::deletekey()
for ( uint i = 0; i < exportList.count(); ++i ) for ( uint i = 0; i < exportList.count(); ++i )
if ( exportList.at(i) ) if ( exportList.at(i) )
gp<<(exportList.at(i)->text(6)).stripWhiteSpace(); gp<<(exportList.at(i)->text(6)).stripWhiteSpace();
gp.start(KProcess::Block); gp.start(TDEProcess::Block);
for ( uint i = 0; i < exportList.count(); ++i ) for ( uint i = 0; i < exportList.count(); ++i )
if ( exportList.at(i) ) if ( exportList.at(i) )
@ -2520,7 +2520,7 @@ TQPixmap KeyView::slotGetPhoto(TQString photoId,bool mini)
TQString popt="cp %i "+phototmp->name(); TQString popt="cp %i "+phototmp->name();
KProcIO *p=new KProcIO(TQTextCodec::codecForLocale()); KProcIO *p=new KProcIO(TQTextCodec::codecForLocale());
*p<<"gpg"<<"--show-photos"<<"--photo-viewer"<<TQString(TQFile::encodeName(popt))<<"--list-keys"<<photoId; *p<<"gpg"<<"--show-photos"<<"--photo-viewer"<<TQString(TQFile::encodeName(popt))<<"--list-keys"<<photoId;
p->start(KProcess::Block); p->start(TDEProcess::Block);
TQPixmap pixmap; TQPixmap pixmap;
@ -2580,7 +2580,7 @@ void KeyView::expandKey(TQListViewItem *item)
KProcIO *p=new KProcIO(TQTextCodec::codecForLocale()); KProcIO *p=new KProcIO(TQTextCodec::codecForLocale());
*p<<"gpg"<<"--no-tty"<<"--photo-viewer"<<TQString(TQFile::encodeName(pgpgOutput)); *p<<"gpg"<<"--no-tty"<<"--photo-viewer"<<TQString(TQFile::encodeName(pgpgOutput));
*p<<"--edit-key"<<item->text(6)<<"uid"<<TQString::number(uidNumber)<<"showphoto"<<"quit"; *p<<"--edit-key"<<item->text(6)<<"uid"<<TQString::number(uidNumber)<<"showphoto"<<"quit";
p->start(KProcess::Block); p->start(TDEProcess::Block);
TQPixmap pixmap; TQPixmap pixmap;
pixmap.load(kgpgphototmp->name()); pixmap.load(kgpgphototmp->name());
TQImage dup=pixmap.convertToImage(); TQImage dup=pixmap.convertToImage();
@ -3047,7 +3047,7 @@ gpgKey KeyView::extractKey(TQString keyColon)
ret.gpgkeycreation=keyString[5]; ret.gpgkeycreation=keyString[5];
if(!ret.gpgkeycreation.isEmpty()) { if(!ret.gpgkeycreation.isEmpty()) {
TQDate date = TQDate::fromString(ret.gpgkeycreation, Qt::ISODate); TQDate date = TQDate::fromString(ret.gpgkeycreation, Qt::ISODate);
ret.gpgkeycreation=KGlobal::locale()->formatDate(date, true); ret.gpgkeycreation=TDEGlobal::locale()->formatDate(date, true);
} }
TQString tid=keyString[4]; TQString tid=keyString[4];
ret.gpgkeyid=TQString("0x"+tid.right(8)); ret.gpgkeyid=TQString("0x"+tid.right(8));
@ -3056,7 +3056,7 @@ gpgKey KeyView::extractKey(TQString keyColon)
ret.gpgkeyexpiration=i18n("Unlimited"); ret.gpgkeyexpiration=i18n("Unlimited");
else { else {
TQDate date = TQDate::fromString(ret.gpgkeyexpiration, Qt::ISODate); TQDate date = TQDate::fromString(ret.gpgkeyexpiration, Qt::ISODate);
ret.gpgkeyexpiration=KGlobal::locale()->formatDate(date, true); ret.gpgkeyexpiration=TDEGlobal::locale()->formatDate(date, true);
} }
TQString fullname=keyString[9]; TQString fullname=keyString[9];
if (fullname.find("<")!=-1) { if (fullname.find("<")!=-1) {

@ -41,7 +41,7 @@ class TQLabel;
class TQCheckbox; class TQCheckbox;
class KStatusBar; class KStatusBar;
class KPassivePopup; class KPassivePopup;
class KProcess; class TDEProcess;
class KProcIO; class KProcIO;
class TQEvent; class TQEvent;
class KTempFile; class KTempFile;
@ -236,7 +236,7 @@ private slots:
void slotSetPhotoSize(int size); void slotSetPhotoSize(int size);
void slotShowPhoto(); void slotShowPhoto();
void readgenprocess(KProcIO *p); void readgenprocess(KProcIO *p);
void newKeyDone(KProcess *); void newKeyDone(TDEProcess *);
void slotrevoke(TQString keyID,TQString revokeUrl,int reason,TQString description); void slotrevoke(TQString keyID,TQString revokeUrl,int reason,TQString description);
void revokeWidget(); void revokeWidget();
void doFilePrint(TQString url); void doFilePrint(TQString url);
@ -251,7 +251,7 @@ private slots:
void slotProcessExportMail(TQString keys); void slotProcessExportMail(TQString keys);
void slotProcessExportClip(TQString keys); void slotProcessExportClip(TQString keys);
void readOptions(); void readOptions();
void genover(KProcess *p); void genover(TDEProcess *p);
void showOptions(); void showOptions();
void slotSetDefKey(); void slotSetDefKey();
void slotSetDefaultKey(TQListViewItem *newdef); void slotSetDefaultKey(TQListViewItem *newdef);

@ -100,7 +100,7 @@ KDialogBase( Plain, i18n("Select Public Key"), Details | Ok | Cancel, Ok, parent
if (KGpgSettings::allowCustomEncryptionOptions()) if (KGpgSettings::allowCustomEncryptionOptions())
customOptions=KGpgSettings::customEncryptionOptions(); customOptions=KGpgSettings::customEncryptionOptions();
KIconLoader *loader = KGlobal::iconLoader(); KIconLoader *loader = TDEGlobal::iconLoader();
keyPair=loader->loadIcon("kgpg_key2",KIcon::Small,20); keyPair=loader->loadIcon("kgpg_key2",KIcon::Small,20);
keySingle=loader->loadIcon("kgpg_key1",KIcon::Small,20); keySingle=loader->loadIcon("kgpg_key1",KIcon::Small,20);
@ -337,9 +337,9 @@ void popupPublic::refreshkeys()
KProcIO *encid=new KProcIO(TQTextCodec::codecForLocale()); KProcIO *encid=new KProcIO(TQTextCodec::codecForLocale());
*encid << "gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--with-colon"<<"--list-keys"; *encid << "gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--with-colon"<<"--list-keys";
///////// when process ends, update dialog infos ///////// when process ends, update dialog infos
TQObject::connect(encid, TQT_SIGNAL(processExited(KProcess *)),this, TQT_SLOT(slotpreselect())); TQObject::connect(encid, TQT_SIGNAL(processExited(TDEProcess *)),this, TQT_SLOT(slotpreselect()));
TQObject::connect(encid, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(slotprocread(KProcIO *))); TQObject::connect(encid, TQT_SIGNAL(readReady(KProcIO *)),this, TQT_SLOT(slotprocread(KProcIO *)));
encid->start(KProcess::NotifyOnExit,true); encid->start(TDEProcess::NotifyOnExit,true);
} }
void popupPublic::slotpreselect() void popupPublic::slotpreselect()

@ -38,7 +38,7 @@ CDigitLabel::~CDigitLabel( void )
void CDigitLabel::initialize( void ) void CDigitLabel::initialize( void )
{ {
TQFont font( KGlobalSettings::generalFont() ); TQFont font( TDEGlobalSettings::generalFont() );
font.setBold( true ); font.setBold( true );
setFont( font ); setFont( font );
} }

@ -45,7 +45,7 @@ CCharTableDialog::CCharTableDialog( TQWidget *parent, const char *name,
if( topLayout == 0 ) { return; } if( topLayout == 0 ) { return; }
mCharacterList = new CListView( plainPage(), "characterList" ); mCharacterList = new CListView( plainPage(), "characterList" );
mCharacterList->setFont( KGlobalSettings::fixedFont() ); mCharacterList->setFont( TDEGlobalSettings::fixedFont() );
mCharacterList->addColumn( i18n("Decimal") ); mCharacterList->addColumn( i18n("Decimal") );
mCharacterList->addColumn( i18n("Hexadecimal") ); mCharacterList->addColumn( i18n("Hexadecimal") );
mCharacterList->addColumn( i18n("Octal") ); mCharacterList->addColumn( i18n("Octal") );

@ -100,7 +100,7 @@ CFileInfoDialog::CFileInfoDialog( TQWidget *parent,const char *name,bool modal)
gbox->addWidget( mFileSizeLabel, 1, 1 ); gbox->addWidget( mFileSizeLabel, 1, 1 );
mFrequencyList = new CListView( plainPage(), "stringList" ); mFrequencyList = new CListView( plainPage(), "stringList" );
mFrequencyList->setFont( KGlobalSettings::fixedFont() ); mFrequencyList->setFont( TDEGlobalSettings::fixedFont() );
mFrequencyList->addColumn( i18n("Hexadecimal") ); mFrequencyList->addColumn( i18n("Hexadecimal") );
mFrequencyList->addColumn( i18n("Decimal") ); mFrequencyList->addColumn( i18n("Decimal") );
@ -219,7 +219,7 @@ void CFileInfoDialog::setStatistics( SStatisticControl &sc )
setClean(); setClean();
mFrequencyList->clear(); mFrequencyList->clear();
mFileNameLabel->setText( sc.documentName ); mFileNameLabel->setText( sc.documentName );
mFileSizeLabel->setText( KGlobal::locale()->formatNumber(sc.documentSize, 0) ); mFileSizeLabel->setText( TDEGlobal::locale()->formatNumber(sc.documentSize, 0) );
TQString d, h, o, b, c, n, p; TQString d, h, o, b, c, n, p;
TQListViewItem *item = 0; TQListViewItem *item = 0;

@ -1860,7 +1860,7 @@ void CHexBuffer::drawText( TQPainter &paint, uint line, int x1, int x2, int y,
int CHexBuffer::headerHeight( TQPainter &paint ) int CHexBuffer::headerHeight( TQPainter &paint )
{ {
TQFont font( paint.font() ); TQFont font( paint.font() );
paint.setFont( KGlobalSettings::generalFont() ); paint.setFont( TDEGlobalSettings::generalFont() );
const TQFontMetrics &fm = paint.fontMetrics(); const TQFontMetrics &fm = paint.fontMetrics();
int height = fm.height(); int height = fm.height();
@ -1871,7 +1871,7 @@ int CHexBuffer::headerHeight( TQPainter &paint )
int CHexBuffer::headerMargin( TQPainter &paint ) int CHexBuffer::headerMargin( TQPainter &paint )
{ {
TQFont font( paint.font() ); TQFont font( paint.font() );
paint.setFont( KGlobalSettings::generalFont() ); paint.setFont( TDEGlobalSettings::generalFont() );
const TQFontMetrics &fm = paint.fontMetrics(); const TQFontMetrics &fm = paint.fontMetrics();
int margin = fm.height() / 2; int margin = fm.height() / 2;
@ -1885,7 +1885,7 @@ void CHexBuffer::drawHeader( TQPainter &paint, int sx, int width, int y,
const SPagePosition &position ) const SPagePosition &position )
{ {
TQFont font( paint.font() ); TQFont font( paint.font() );
paint.setFont( KGlobalSettings::generalFont() ); paint.setFont( TDEGlobalSettings::generalFont() );
const TQFontMetrics &fm = paint.fontMetrics(); const TQFontMetrics &fm = paint.fontMetrics();
paint.fillRect( sx, y, width, fm.height(), TQt::white ); paint.fillRect( sx, y, width, fm.height(), TQt::white );
@ -1918,13 +1918,13 @@ void CHexBuffer::drawHeader( TQPainter &paint, int sx, int width, int y,
{ {
TQDateTime datetime; TQDateTime datetime;
datetime.setTime_t( position.now ); datetime.setTime_t( position.now );
msg = KGlobal::locale()->formatDateTime(datetime); msg = TDEGlobal::locale()->formatDateTime(datetime);
} }
else if( header.pos[i] == SPageHeader::PageNumber ) else if( header.pos[i] == SPageHeader::PageNumber )
{ {
msg = i18n("Page %1 of %2") msg = i18n("Page %1 of %2")
.arg(KGlobal::locale()->formatNumber(position.curPage, 0)) .arg(TDEGlobal::locale()->formatNumber(position.curPage, 0))
.arg(KGlobal::locale()->formatNumber(position.maxPage, 0)); .arg(TDEGlobal::locale()->formatNumber(position.maxPage, 0));
} }
else if( header.pos[i] == SPageHeader::FileName ) else if( header.pos[i] == SPageHeader::FileName )
{ {
@ -1937,7 +1937,7 @@ void CHexBuffer::drawHeader( TQPainter &paint, int sx, int width, int y,
if( 0 && pos[i] == TQPainter::AlignRight ) if( 0 && pos[i] == TQPainter::AlignRight )
{ {
//const TQFontMetrics &f = TQFontMetrics( KGlobalSettings::generalFont() ); //const TQFontMetrics &f = TQFontMetrics( TDEGlobalSettings::generalFont() );
//TQRect r = paint.boundingRect(sx, y, width, fm.height(), pos[i], msg ); //TQRect r = paint.boundingRect(sx, y, width, fm.height(), pos[i], msg );
//printf("R: %d, %d, %d, %d\n", r.x(), r.y(), r.width(), r.height() ); //printf("R: %d, %d, %d, %d\n", r.x(), r.y(), r.width(), r.height() );

@ -52,7 +52,7 @@ void CHexDrag::prepPixmap(void)
// Wont use it yet, // Wont use it yet,
// //
/* /*
KIconLoader &loader = *KGlobal::iconLoader(); KIconLoader &loader = *TDEGlobal::iconLoader();
TQPixmap pix = loader.loadIcon( "binary.xpm" ); TQPixmap pix = loader.loadIcon( "binary.xpm" );
TQPoint hotspot( pix.width()-20,pix.height()/2 ); TQPoint hotspot( pix.width()-20,pix.height()/2 );

@ -493,7 +493,7 @@ void CHexEditorWidget::setFont( const SDisplayFont &font )
SDisplayFontInfo fontInfo; SDisplayFontInfo fontInfo;
if( mDisplayState.font.useSystemFont == true ) if( mDisplayState.font.useSystemFont == true )
{ {
fontInfo.font = KGlobalSettings::fixedFont(); fontInfo.font = TDEGlobalSettings::fixedFont();
} }
else else
{ {

@ -429,7 +429,7 @@ class SDisplayFontInfo
SDisplayFontInfo &init( void ) SDisplayFontInfo &init( void )
{ {
font = KGlobalSettings::fixedFont(); font = TDEGlobalSettings::fixedFont();
nonPrintChar = '.'; nonPrintChar = '.';
return( *this ); return( *this );
} }
@ -444,7 +444,7 @@ class SDisplayFont
SDisplayFont( void ) SDisplayFont( void )
{ {
useSystemFont = false; useSystemFont = false;
localFont = KGlobalSettings::fixedFont(); localFont = TDEGlobalSettings::fixedFont();
nonPrintChar = '.'; nonPrintChar = '.';
} }

@ -89,7 +89,7 @@ bool CDragManager::start( TQMouseEvent *e )
if( mActivateMode == Movement ) if( mActivateMode == Movement )
{ {
if( (mOrigin - e->pos()).manhattanLength() > KGlobalSettings::dndEventDelay() ) if( (mOrigin - e->pos()).manhattanLength() > TDEGlobalSettings::dndEventDelay() )
{ {
mPending = false; mPending = false;
emit startDrag( e->state() & ShiftButton ? true : false ); emit startDrag( e->state() & ShiftButton ? true : false );

@ -79,7 +79,7 @@ static bool is8Bit( TQTextCodec *Codec )
static TQTextCodec *createLatin1() static TQTextCodec *createLatin1()
{ {
return KGlobal::charsets()->codecForName( EncodingNames[0].Name ); return TDEGlobal::charsets()->codecForName( EncodingNames[0].Name );
} }
/** heuristic seems to be doomed :( /** heuristic seems to be doomed :(
@ -120,12 +120,12 @@ const TQStringList &KTextCharCodec::codecNames()
// first call? // first call?
if( CodecNames.isEmpty() ) if( CodecNames.isEmpty() )
{ {
const TQStringList &CharSets = KGlobal::charsets()->availableEncodingNames(); const TQStringList &CharSets = TDEGlobal::charsets()->availableEncodingNames();
for( TQStringList::ConstIterator it = CharSets.begin(); it != CharSets.end(); ++it ) for( TQStringList::ConstIterator it = CharSets.begin(); it != CharSets.end(); ++it )
{ {
bool Found = true; bool Found = true;
TQTextCodec* Codec = KGlobal::charsets()->codecForName( *it, Found ); TQTextCodec* Codec = TDEGlobal::charsets()->codecForName( *it, Found );
if( Found && is8Bit(Codec) ) if( Found && is8Bit(Codec) )
CodecNames.append( TQString::fromLatin1(Codec->name()) ); CodecNames.append( TQString::fromLatin1(Codec->name()) );
} }
@ -161,7 +161,7 @@ TQStringList KTextCharCodec::CodecNames;
KTextCharCodec *KTextCharCodec::createLocalCodec() KTextCharCodec *KTextCharCodec::createLocalCodec()
{ {
TQTextCodec *Codec = KGlobal::locale()->codecForEncoding(); TQTextCodec *Codec = TDEGlobal::locale()->codecForEncoding();
if( !is8Bit(Codec) ) if( !is8Bit(Codec) )
Codec = createLatin1(); Codec = createLatin1();
return new KTextCharCodec( Codec ); return new KTextCharCodec( Codec );
@ -171,7 +171,7 @@ KTextCharCodec *KTextCharCodec::createLocalCodec()
KTextCharCodec *KTextCharCodec::createCodec( const TQString &CodeName ) KTextCharCodec *KTextCharCodec::createCodec( const TQString &CodeName )
{ {
bool Ok; bool Ok;
TQTextCodec *Codec = KGlobal::charsets()->codecForName( CodeName, Ok ); TQTextCodec *Codec = TDEGlobal::charsets()->codecForName( CodeName, Ok );
if( Ok ) if( Ok )
Ok = is8Bit( Codec ); Ok = is8Bit( Codec );
return Ok ? new KTextCharCodec( Codec ) : 0; return Ok ? new KTextCharCodec( Codec ) : 0;
@ -187,7 +187,7 @@ const TQStringList &KTextCharCodec::codecNames()
{ {
bool Found = true; bool Found = true;
TQString Name = TQString::fromLatin1( EncodingNames[i].Name ); TQString Name = TQString::fromLatin1( EncodingNames[i].Name );
TQTextCodec* Codec = KGlobal::charsets()->codecForName( Name, Found ); TQTextCodec* Codec = TDEGlobal::charsets()->codecForName( Name, Found );
if( Found ) if( Found )
CodecNames.append( TQString::fromLatin1(Codec->name()) ); CodecNames.append( TQString::fromLatin1(Codec->name()) );
} }

@ -47,7 +47,7 @@ static const char *localTextPlain()
if( TextPlainLocal.isNull() ) if( TextPlainLocal.isNull() )
{ {
TextPlainLocal = TQCString(KGlobal::locale()->encoding()).lower(); TextPlainLocal = TQCString(TDEGlobal::locale()->encoding()).lower();
// remove the whitespaces // remove the whitespaces
int s; int s;
while( (s=TextPlainLocal.find(' ')) >= 0 ) while( (s=TextPlainLocal.find(' ')) >= 0 )
@ -74,7 +74,7 @@ static TQTextCodec* codecForCharset( const TQCString& Desc )
return TQTextCodec::codecForName( CharSetName ); return TQTextCodec::codecForName( CharSetName );
} }
// no charset=, use locale // no charset=, use locale
return KGlobal::locale()->codecForEncoding(); return TDEGlobal::locale()->codecForEncoding();
} }

@ -128,7 +128,7 @@ KHexEdit::KHexEdit( KDataBuffer *Buffer, TQWidget *Parent, const char *Name, WFl
FixedFont.setFixedPitch( true ); FixedFont.setFixedPitch( true );
setFont( FixedFont ); setFont( FixedFont );
#else #else
setFont( KGlobalSettings::fixedFont() ); setFont( TDEGlobalSettings::fixedFont() );
#endif #endif
// get the full control // get the full control

@ -392,7 +392,7 @@ void COptionDialog::setupFontPage( void )
mFont.chooser = new KFontChooser( page, "font", true, TQStringList(), false, 4 ); mFont.chooser = new KFontChooser( page, "font", true, TQStringList(), false, 4 );
topLayout->addWidget( mFont.chooser ); topLayout->addWidget( mFont.chooser );
TQFont fixFont( KGlobalSettings::fixedFont() ); TQFont fixFont( TDEGlobalSettings::fixedFont() );
fixFont.setBold(true); fixFont.setBold(true);
mFont.chooser->setFont( fixFont, true ); mFont.chooser->setFont( fixFont, true );
mFont.chooser->setSampleText( i18n("KHexEdit editor font") ); mFont.chooser->setSampleText( i18n("KHexEdit editor font") );

@ -69,7 +69,7 @@ KHexEditPart::~KHexEditPart()
/* /*
void KHexEditPart::setupTools( bool BrowserViewWanted ) void KHexEditPart::setupTools( bool BrowserViewWanted )
{ {
if( !BrowserViewWanted ) new KClipboardTool( this ); if( !BrowserViewWanted ) new TDEClipboardTool( this );
new KZoomToolet( this ); new KZoomToolet( this );
new KSelectToolet( this ); new KSelectToolet( this );

@ -72,7 +72,7 @@ void CStatusBarProgress::initialize( void )
mTextColor = palette().active().text(); mTextColor = palette().active().text();
setBackgroundColor( palette().active().background() ); setBackgroundColor( palette().active().background() );
TQFont font( KGlobalSettings::generalFont() ); TQFont font( TDEGlobalSettings::generalFont() );
font.setBold( true ); font.setBold( true );
setFont( font ); setFont( font );

@ -91,7 +91,7 @@ CStringDialog::CStringDialog( TQWidget *parent, const char *name, bool modal )
// Using listview as suggested by Dima Rogozin <dima@mercury.co.il> // Using listview as suggested by Dima Rogozin <dima@mercury.co.il>
// //
mStringList = new CListView( plainPage(), "stringList" ); mStringList = new CListView( plainPage(), "stringList" );
mStringList->setFont( KGlobalSettings::fixedFont() ); mStringList->setFont( TDEGlobalSettings::fixedFont() );
mStringList->addColumn( i18n("Offset") ); mStringList->addColumn( i18n("Offset") );
mStringList->addColumn( i18n("String") ); mStringList->addColumn( i18n("String") );
mStringList->setAllColumnsShowFocus( true ); mStringList->setAllColumnsShowFocus( true );

@ -67,7 +67,7 @@ KJotsMain::KJotsMain(const char* name)
setCentralWidget(f_main); setCentralWidget(f_main);
splitter = new TQSplitter(f_main); splitter = new TQSplitter(f_main);
splitter->setOpaqueResize( KGlobalSettings::opaqueResize() ); splitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
// the subject list // the subject list
subjectList = new KListView(splitter, "subjectList"); subjectList = new KListView(splitter, "subjectList");
@ -573,7 +573,7 @@ void KJotsMain::slotQuit()
void KJotsMain::insertDate() void KJotsMain::insertDate()
{ {
me_text->insert(KGlobal::locale()->formatDateTime(TQDateTime::currentDateTime(), true) + " "); me_text->insert(TDEGlobal::locale()->formatDateTime(TQDateTime::currentDateTime(), true) + " ");
} }
void KJotsMain::updateMenu() void KJotsMain::updateMenu()

@ -13,7 +13,7 @@
</entry> </entry>
<entry name="Font" type="Font"> <entry name="Font" type="Font">
<label>The font used to display the contents of books.</label> <label>The font used to display the contents of books.</label>
<default code="true">KGlobalSettings::generalFont()</default> <default code="true">TDEGlobalSettings::generalFont()</default>
</entry> </entry>
<entry name="AutoSave" type="Bool"> <entry name="AutoSave" type="Bool">
<label>Whether books should be saved automatically.</label> <label>Whether books should be saved automatically.</label>

@ -54,7 +54,7 @@ extern void wake_laptop_daemon();
AcpiConfig::AcpiConfig (TQWidget * parent, const char *name) AcpiConfig::AcpiConfig (TQWidget * parent, const char *name)
: KCModule(parent, name) : KCModule(parent, name)
{ {
KGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages TDEGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages
config = new KConfig("kcmlaptoprc"); config = new KConfig("kcmlaptoprc");
@ -174,12 +174,12 @@ void AcpiConfig::setupHelper()
i18n("KLaptopDaemon"), KStdGuiItem::cont(), i18n("KLaptopDaemon"), KStdGuiItem::cont(),
""); "");
if (rc == KMessageBox::Continue) { if (rc == KMessageBox::Continue) {
KProcess proc; TDEProcess proc;
proc << tdesu; proc << tdesu;
proc << "-u"; proc << "-u";
proc << "root"; proc << "root";
proc << "chown root "+helper+"; chmod +s "+helper; proc << "chown root "+helper+"; chmod +s "+helper;
proc.start(KProcess::Block); // run it sync so has_acpi below sees the results proc.start(TDEProcess::Block); // run it sync so has_acpi below sees the results
} }
} else { } else {
KMessageBox::sorry(0, i18n("The ACPI helper cannot be enabled because tdesu cannot be found. Please make sure that it is installed correctly."), KMessageBox::sorry(0, i18n("The ACPI helper cannot be enabled because tdesu cannot be found. Please make sure that it is installed correctly."),

@ -54,7 +54,7 @@ extern void wake_laptop_daemon();
ApmConfig::ApmConfig (TQWidget * parent, const char *name) ApmConfig::ApmConfig (TQWidget * parent, const char *name)
: KCModule(parent, name) : KCModule(parent, name)
{ {
KGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages TDEGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages
config = new KConfig("kcmlaptoprc"); config = new KConfig("kcmlaptoprc");
@ -162,12 +162,12 @@ void ApmConfig::setupHelper()
"KLaptopDaemon", KStdGuiItem::cont(), "KLaptopDaemon", KStdGuiItem::cont(),
""); "");
if (rc == KMessageBox::Continue) { if (rc == KMessageBox::Continue) {
KProcess proc; TDEProcess proc;
proc << tdesu; proc << tdesu;
proc << "-u"; proc << "-u";
proc << "root"; proc << "root";
proc << TQString("chown root ")+apm_name+TQString("; chmod +s ")+apm_name; proc << TQString("chown root ")+apm_name+TQString("; chmod +s ")+apm_name;
proc.start(KProcess::Block); // run it sync so has_apm below sees the results proc.start(TDEProcess::Block); // run it sync so has_apm below sees the results
} }
} else { } else {
KMessageBox::sorry(0, i18n("%1 cannot be enabled because tdesu cannot be found. Please make sure that it is installed correctly.").arg(TQString(apm_name)), KMessageBox::sorry(0, i18n("%1 cannot be enabled because tdesu cannot be found. Please make sure that it is installed correctly.").arg(TQString(apm_name)),
@ -196,12 +196,12 @@ void ApmConfig::setupHelper2() // we use the acpi helper to do software suspend
i18n("KLaptopDaemon"), KStdGuiItem::cont(), i18n("KLaptopDaemon"), KStdGuiItem::cont(),
""); "");
if (rc == KMessageBox::Continue) { if (rc == KMessageBox::Continue) {
KProcess proc; TDEProcess proc;
proc << tdesu; proc << tdesu;
proc << "-u"; proc << "-u";
proc << "root"; proc << "root";
proc << "chown root "+helper+"; chmod +s "+helper; proc << "chown root "+helper+"; chmod +s "+helper;
proc.start(KProcess::Block); // run it sync so has_acpi below sees the results proc.start(TDEProcess::Block); // run it sync so has_acpi below sees the results
} }
} else { } else {
KMessageBox::sorry(0, i18n("The Software Suspend helper cannot be enabled because tdesu cannot be found. Please make sure that it is installed correctly."), KMessageBox::sorry(0, i18n("The Software Suspend helper cannot be enabled because tdesu cannot be found. Please make sure that it is installed correctly."),

@ -59,7 +59,7 @@ BatteryConfig::BatteryConfig (TQWidget * parent, const char *name)
buttonNoCharge(0), buttonNoCharge(0),
buttonCharge(0) buttonCharge(0)
{ {
KGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages TDEGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages
apm = laptop_portable::has_power_management(); apm = laptop_portable::has_power_management();
config = new KConfig("kcmlaptoprc"); config = new KConfig("kcmlaptoprc");

@ -77,7 +77,7 @@ ButtonsConfig::ButtonsConfig (TQWidget * parent, const char *name)
int can_shutdown = 1; // fix me int can_shutdown = 1; // fix me
int can_logout = 1; // fix me int can_logout = 1; // fix me
KGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages TDEGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages
apm = laptop_portable::has_power_management(); apm = laptop_portable::has_power_management();
config = new KConfig("kcmlaptoprc"); config = new KConfig("kcmlaptoprc");

@ -52,7 +52,7 @@ laptop_dock::laptop_dock( laptop_daemon* parent )
: KSystemTray() : KSystemTray()
{ {
setCaption(i18n("KLaptop Daemon")); setCaption(i18n("KLaptop Daemon"));
KGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages TDEGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages
_pcmcia = NULL; _pcmcia = NULL;
pdaemon = parent; pdaemon = parent;
current_code = -1; current_code = -1;
@ -207,7 +207,7 @@ laptop_dock::invokeBrightness()
brightness_slider->setValue(255-brightness); brightness_slider->setValue(255-brightness);
} }
if (!brightness_widget->isVisible()) { if (!brightness_widget->isVisible()) {
TQRect desktop = KGlobalSettings::desktopGeometry(this); TQRect desktop = TDEGlobalSettings::desktopGeometry(this);
int sw = desktop.width(); int sw = desktop.width();
int sh = desktop.height(); int sh = desktop.height();
int sx = desktop.x(); int sx = desktop.x();
@ -244,16 +244,16 @@ void laptop_dock::slotGoRoot(int /*id*/) {
i18n("KLaptopDaemon"), KStdGuiItem::cont(), i18n("KLaptopDaemon"), KStdGuiItem::cont(),
"switchToPCMCIAPrompt"); "switchToPCMCIAPrompt");
if (rc == KMessageBox::Continue) { if (rc == KMessageBox::Continue) {
KProcess *_rootProcess; TDEProcess *_rootProcess;
_rootProcess = new KProcess; _rootProcess = new TDEProcess;
*_rootProcess << tdesu; *_rootProcess << tdesu;
*_rootProcess << "-u"; *_rootProcess << "-u";
*_rootProcess << "root"; *_rootProcess << "root";
//*_rootProcess << "--nonewdcop"; //*_rootProcess << "--nonewdcop";
*_rootProcess << KStandardDirs::findExe("klaptopdaemon"); *_rootProcess << KStandardDirs::findExe("klaptopdaemon");
connect(_rootProcess, TQT_SIGNAL(processExited(KProcess*)), connect(_rootProcess, TQT_SIGNAL(processExited(TDEProcess*)),
this, TQT_SLOT(rootExited(KProcess*))); this, TQT_SLOT(rootExited(TDEProcess*)));
_rootProcess->start(KProcess::NotifyOnExit); _rootProcess->start(TDEProcess::NotifyOnExit);
// We should disable this menu item here now. // We should disable this menu item here now.
} }
} else { } else {
@ -307,7 +307,7 @@ void laptop_dock::slotQuit() {
} }
void laptop_dock::rootExited(KProcess *p) { void laptop_dock::rootExited(TDEProcess *p) {
if (p && p->isRunning()) { if (p && p->isRunning()) {
p->detach(); p->detach();
} }
@ -525,10 +525,10 @@ void laptop_dock::invokeLockSuspend()
void laptop_dock::invokeSetup() void laptop_dock::invokeSetup()
{ {
KProcess proc; TDEProcess proc;
proc << KStandardDirs::findExe("kcmshell"); proc << KStandardDirs::findExe("kcmshell");
proc << "laptop"; proc << "laptop";
proc.start(KProcess::DontCare); proc.start(TDEProcess::DontCare);
proc.detach(); proc.detach();
} }
@ -690,7 +690,7 @@ quit:
int oldPixmapWidth = image.size().width(); int oldPixmapWidth = image.size().width();
int oldPixmapHeight = image.size().height(); int oldPixmapHeight = image.size().height();
TQFont percentageFont = KGlobalSettings::generalFont(); TQFont percentageFont = TDEGlobalSettings::generalFont();
percentageFont.setBold(true); percentageFont.setBold(true);
// decrease the size of the font for the number of unread messages if the // decrease the size of the font for the number of unread messages if the

@ -80,7 +80,7 @@ private slots:
void fill_performance(); void fill_performance();
void rootExited(KProcess *p); void rootExited(TDEProcess *p);
void slotGoRoot(int id); void slotGoRoot(int id);
void slotQuit(); void slotQuit();
void slotHide(); void slotHide();

@ -520,7 +520,7 @@ return -1;
} }
static int openDevice(dev_t dev) { static int openDevice(dev_t dev) {
TQString tmp_path = locateLocal("tmp", KGlobal::instance()->instanceName()); TQString tmp_path = locateLocal("tmp", TDEGlobal::instance()->instanceName());
TQString ext = "_socket%1"; TQString ext = "_socket%1";
tmp_path += ext.arg((int)dev); tmp_path += ext.arg((int)dev);

@ -40,14 +40,14 @@ static TQString qrichtextify( const TQString& text )
KRichTextLabel::KRichTextLabel( const TQString &text , TQWidget *parent, const char *name ) KRichTextLabel::KRichTextLabel( const TQString &text , TQWidget *parent, const char *name )
: TQLabel ( parent, name ) { : TQLabel ( parent, name ) {
m_defaultWidth = TQMIN(400, KGlobalSettings::desktopGeometry(this).width()*2/5); m_defaultWidth = TQMIN(400, TDEGlobalSettings::desktopGeometry(this).width()*2/5);
setAlignment( TQt::WordBreak ); setAlignment( TQt::WordBreak );
setText(text); setText(text);
} }
KRichTextLabel::KRichTextLabel( TQWidget *parent, const char *name ) KRichTextLabel::KRichTextLabel( TQWidget *parent, const char *name )
: TQLabel ( parent, name ) { : TQLabel ( parent, name ) {
m_defaultWidth = TQMIN(400, KGlobalSettings::desktopGeometry(this).width()*2/5); m_defaultWidth = TQMIN(400, TDEGlobalSettings::desktopGeometry(this).width()*2/5);
setAlignment( TQt::WordBreak ); setAlignment( TQt::WordBreak );
} }

@ -503,9 +503,9 @@ void laptop_daemon::haveBatteryLow(int t, const int num, const int type)
if (s.runCommand[t]) { if (s.runCommand[t]) {
// make sure the command exists // make sure the command exists
if (!s.runCommandPath[t].isEmpty()) { if (!s.runCommandPath[t].isEmpty()) {
KProcess command; TDEProcess command;
command << s.runCommandPath[t]; command << s.runCommandPath[t];
command.start(KProcess::DontCare); command.start(TDEProcess::DontCare);
} }
} }

@ -48,7 +48,7 @@ PcmciaConfig::PcmciaConfig (TQWidget * parent, const char *name)
about->addAuthor("Paul Campbell", 0, "paul@taniwha.com"); about->addAuthor("Paul Campbell", 0, "paul@taniwha.com");
setAboutData( about ); setAboutData( about );
KGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages TDEGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages
label0 = laptop_portable::pcmcia_info(0, this); label0 = laptop_portable::pcmcia_info(0, this);
label0_text = laptop_portable::pcmcia_info(1, this); label0_text = laptop_portable::pcmcia_info(1, this);

@ -745,14 +745,14 @@ laptop_portable::acpi_set_mask(bool standby, bool suspend, bool hibernate, bool
static void static void
invoke_acpi_helper(const char *param, const char *param2, const char *param3) invoke_acpi_helper(const char *param, const char *param2, const char *param3)
{ {
KProcess proc; TDEProcess proc;
proc << KStandardDirs::findExe("klaptop_acpi_helper"); proc << KStandardDirs::findExe("klaptop_acpi_helper");
proc << param; proc << param;
if (param2) if (param2)
proc << param2; proc << param2;
if (param3) if (param3)
proc << param3; proc << param3;
proc.start(KProcess::Block); // helper runs fast and we want to see the result proc.start(TDEProcess::Block); // helper runs fast and we want to see the result
} }
static unsigned long apm_sleep_enabled = 0x0c; // apm sleep functions enabled mask static unsigned long apm_sleep_enabled = 0x0c; // apm sleep functions enabled mask
@ -1086,10 +1086,10 @@ void laptop_portable::invoke_standby()
return; return;
} }
// add other machine specific standbys here // add other machine specific standbys here
KProcess proc; TDEProcess proc;
proc << "/usr/bin/apm"; proc << "/usr/bin/apm";
proc << "--standby"; proc << "--standby";
proc.start(KProcess::Block); // helper runs fast and we want to see the result proc.start(TDEProcess::Block); // helper runs fast and we want to see the result
} }
// //
@ -1100,10 +1100,10 @@ void laptop_portable::invoke_suspend()
last_seed++; // make it look for battery removal/return last_seed++; // make it look for battery removal/return
if (::has_pmu()) { if (::has_pmu()) {
KProcess proc; TDEProcess proc;
proc << "/usr/bin/apm"; proc << "/usr/bin/apm";
proc << "-f"; proc << "-f";
proc.start(KProcess::Block); // helper runs fast and we want to see the result proc.start(TDEProcess::Block); // helper runs fast and we want to see the result
return; return;
} }
@ -1125,10 +1125,10 @@ void laptop_portable::invoke_suspend()
return; return;
} }
// add other machine specific suspends here // add other machine specific suspends here
KProcess proc; TDEProcess proc;
proc << "/usr/bin/apm"; proc << "/usr/bin/apm";
proc << "--suspend"; proc << "--suspend";
proc.start(KProcess::Block); // helper runs fast and we want to see the result proc.start(TDEProcess::Block); // helper runs fast and we want to see the result
} }
// //
@ -2225,12 +2225,12 @@ void laptop_portable::invoke_suspend()
// //
void laptop_portable::invoke_hibernation() void laptop_portable::invoke_hibernation()
{ {
KProcess thisProc; TDEProcess thisProc;
if (::access(PATH_TPCTL, X_OK)==0) { if (::access(PATH_TPCTL, X_OK)==0) {
thisProc << PATH_TPCTL; thisProc << PATH_TPCTL;
thisProc << "---hibernate"; thisProc << "---hibernate";
thisProc.start(KProcess::Block); thisProc.start(TDEProcess::Block);
return; return;
} }
} }
@ -2603,10 +2603,10 @@ TQLabel *laptop_portable::pcmcia_info(int x, TQWidget *parent)
// //
void laptop_portable::invoke_standby() void laptop_portable::invoke_standby()
{ {
KProcess proc; TDEProcess proc;
proc << "/usr/sbin/apm"; proc << "/usr/sbin/apm";
proc << "-S"; proc << "-S";
proc.start(KProcess::Block); // helper runs fast and we want to see the result proc.start(TDEProcess::Block); // helper runs fast and we want to see the result
} }
// //
@ -2616,10 +2616,10 @@ void laptop_portable::invoke_standby()
// //
void laptop_portable::invoke_suspend() void laptop_portable::invoke_suspend()
{ {
KProcess proc; TDEProcess proc;
proc << "/usr/sbin/apm"; proc << "/usr/sbin/apm";
proc << "-z"; proc << "-z";
proc.start(KProcess::Block); // helper runs fast and we want to see the result proc.start(TDEProcess::Block); // helper runs fast and we want to see the result
} }
// //

@ -79,7 +79,7 @@ PowerConfig::PowerConfig (TQWidget * parent, const char *name)
noeditlav(0), noeditlav(0),
editlav(0) editlav(0)
{ {
KGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages TDEGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages
apm = laptop_portable::has_power_management(); apm = laptop_portable::has_power_management();
config = new KConfig("kcmlaptoprc"); config = new KConfig("kcmlaptoprc");

@ -64,7 +64,7 @@ ProfileConfig::ProfileConfig(TQWidget * parent, const char *name)
int current_throttle; int current_throttle;
bool has_throttle = laptop_portable::get_system_throttling(0, current_throttle, throttle_list, active_list); bool has_throttle = laptop_portable::get_system_throttling(0, current_throttle, throttle_list, active_list);
KGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages TDEGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages
config = new KConfig("kcmlaptoprc"); config = new KConfig("kcmlaptoprc");

@ -58,7 +58,7 @@ extern void wake_laptop_daemon();
SonyConfig::SonyConfig(TQWidget * parent, const char *name) SonyConfig::SonyConfig(TQWidget * parent, const char *name)
: KCModule(parent, name) : KCModule(parent, name)
{ {
KGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages TDEGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages
config = new KConfig("kcmlaptoprc"); config = new KConfig("kcmlaptoprc");
@ -115,12 +115,12 @@ void SonyConfig::setupHelper()
i18n("KLaptopDaemon"), KStdGuiItem::cont(), i18n("KLaptopDaemon"), KStdGuiItem::cont(),
""); "");
if (rc == KMessageBox::Continue) { if (rc == KMessageBox::Continue) {
KProcess proc; TDEProcess proc;
proc << tdesu; proc << tdesu;
proc << "-u"; proc << "-u";
proc << "root"; proc << "root";
proc << "chmod +r /dev/sonypi"; proc << "chmod +r /dev/sonypi";
proc.start(KProcess::Block); // run it sync so has_acpi below sees the results proc.start(TDEProcess::Block); // run it sync so has_acpi below sees the results
} }
} else { } else {
KMessageBox::sorry(0, i18n("The /dev/sonypi protections cannot be changed because tdesu cannot be found. Please make sure that it is installed correctly."), KMessageBox::sorry(0, i18n("The /dev/sonypi protections cannot be changed because tdesu cannot be found. Please make sure that it is installed correctly."),

@ -50,7 +50,7 @@ WarningConfig::WarningConfig (int t, TQWidget * parent, const char *name)
checkStandby(0), checkStandby(0),
checkHibernate(0) checkHibernate(0)
{ {
KGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages TDEGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages
type = t; type = t;
apm = laptop_portable::has_power_management(); apm = laptop_portable::has_power_management();

@ -98,7 +98,7 @@ bool GenericMonitor::init()
{ "Mute", KShortcut("XF86AudioMute"), TQT_SLOT(mute()) } { "Mute", KShortcut("XF86AudioMute"), TQT_SLOT(mute()) }
}; };
ga = new KGlobalAccel(this, "miloGenericAccel"); ga = new TDEGlobalAccel(this, "miloGenericAccel");
ShortcutInfo si; ShortcutInfo si;
int len = (int)sizeof(shortcuts)/sizeof(ShortcutInfo); int len = (int)sizeof(shortcuts)/sizeof(ShortcutInfo);
@ -338,9 +338,9 @@ Monitor::DisplayType GenericMonitor::poll()
void GenericMonitor::launch(TQString configKey, TQString defaultApplication) void GenericMonitor::launch(TQString configKey, TQString defaultApplication)
{ {
TQString application = config->readEntry(configKey, defaultApplication); TQString application = config->readEntry(configKey, defaultApplication);
KProcess proc; TDEProcess proc;
proc << application; proc << application;
proc.start(KProcess::DontCare); proc.start(TDEProcess::DontCare);
} }
void GenericMonitor::launchMail() void GenericMonitor::launchMail()
@ -362,9 +362,9 @@ void GenericMonitor::launchSearch()
void GenericMonitor::launchHomeFolder() void GenericMonitor::launchHomeFolder()
{ {
TQString home = TQDir::home().path(); TQString home = TQDir::home().path();
KProcess proc; TDEProcess proc;
proc << "kfmclient" << "exec" << home; proc << "kfmclient" << "exec" << home;
proc.start(KProcess::DontCare); proc.start(TDEProcess::DontCare);
} }
void GenericMonitor::launchMusic() void GenericMonitor::launchMusic()

@ -85,7 +85,7 @@ private:
void displayVolume(); void displayVolume();
void launch(TQString configKey, TQString defaultApplication); void launch(TQString configKey, TQString defaultApplication);
KGlobalAccel *ga; TDEGlobalAccel *ga;
KConfig* config; KConfig* config;
DCOPRef *kmixClient, *kmixWindow; DCOPRef *kmixClient, *kmixWindow;

@ -98,7 +98,7 @@ void DefaultSkin::clear() {
void DefaultSkin::show() { void DefaultSkin::show() {
#if KDE_IS_VERSION(3,1,90) #if KDE_IS_VERSION(3,1,90)
TQRect r = KGlobalSettings::splashScreenDesktopGeometry(); TQRect r = TDEGlobalSettings::splashScreenDesktopGeometry();
#else #else
TQRect r = TQApplication::desktop()->geometry(); TQRect r = TQApplication::desktop()->geometry();
#endif #endif

@ -174,7 +174,7 @@ KRegExpEditorPrivate::KRegExpEditorPrivate(TQWidget *parent, const char *name)
#ifdef TQT_ONLY #ifdef TQT_ONLY
TQPixmap pix( "icons/error.png" ); TQPixmap pix( "icons/error.png" );
#else #else
TQPixmap pix = KGlobal::iconLoader()->loadIcon(locate("data", TQString::fromLatin1("kregexpeditor/pics/error.png") ), KIcon::Toolbar ); TQPixmap pix = TDEGlobal::iconLoader()->loadIcon(locate("data", TQString::fromLatin1("kregexpeditor/pics/error.png") ), KIcon::Toolbar );
#endif #endif
_error = new TQLabel( this ); _error = new TQLabel( this );
_error->setPixmap( pix ); _error->setPixmap( pix );

@ -53,7 +53,7 @@ RegExpButtons::RegExpButtons( TQWidget *parent, const char *name )
TQPixmap pix; TQPixmap pix;
pix.convertFromImage( qembed_findImage( "select" ) ); pix.convertFromImage( qembed_findImage( "select" ) );
#else #else
TQPixmap pix = KGlobal::iconLoader()->loadIcon(locate("data", TQString::fromLatin1("kregexpeditor/pics/select.png") ), KIcon::Toolbar ); TQPixmap pix = TDEGlobal::iconLoader()->loadIcon(locate("data", TQString::fromLatin1("kregexpeditor/pics/select.png") ), KIcon::Toolbar );
#endif #endif
_selectBut->setPixmap( pix ); _selectBut->setPixmap( pix );
@ -158,7 +158,7 @@ DoubleClickButton* RegExpButtons::insert(RegExpType tp, const char* name, TQStri
TQPixmap pix; TQPixmap pix;
pix.convertFromImage( qembed_findImage( TQString::fromLatin1( name ) ) ); pix.convertFromImage( qembed_findImage( TQString::fromLatin1( name ) ) );
#else #else
TQPixmap pix = KGlobal::iconLoader()->loadIcon(locate("data", TQString::fromLatin1("kregexpeditor/pics/")+TQString::fromLatin1(name) + TQPixmap pix = TDEGlobal::iconLoader()->loadIcon(locate("data", TQString::fromLatin1("kregexpeditor/pics/")+TQString::fromLatin1(name) +
TQString::fromLatin1(".png") ), KIcon::Toolbar ); TQString::fromLatin1(".png") ), KIcon::Toolbar );
#endif #endif

@ -70,7 +70,7 @@ void UserDefinedRegExps::slotPopulateUserRegexps()
TQStringList dirs; TQStringList dirs;
dirs << TQString::fromLatin1( "predefined" ); dirs << TQString::fromLatin1( "predefined" );
#else #else
TQStringList dirs = KGlobal::dirs()->findDirs( "data", TQString::fromLocal8Bit("kregexpeditor/predefined/") ); TQStringList dirs = TDEGlobal::dirs()->findDirs( "data", TQString::fromLocal8Bit("kregexpeditor/predefined/") );
#endif #endif
for ( TQStringList::iterator it1 = dirs.begin(); it1 != dirs.end(); ++it1 ) { for ( TQStringList::iterator it1 = dirs.begin(); it1 != dirs.end(); ++it1 ) {

@ -26,7 +26,7 @@ TQPixmap Util::getKRegExpEditorIcon( const TQString& name )
pix.convertFromImage( qembed_findImage(name) ); pix.convertFromImage( qembed_findImage(name) );
return pix; return pix;
#else #else
return KGlobal::iconLoader()->loadIcon(locate("data", TQString::fromLatin1("kregexpeditor/pics/") +name ), return TDEGlobal::iconLoader()->loadIcon(locate("data", TQString::fromLatin1("kregexpeditor/pics/") +name ),
KIcon::Toolbar ); KIcon::Toolbar );
#endif #endif
} }

@ -37,7 +37,7 @@ extern "C"
{ {
KDE_EXPORT KPanelExtension *init(TQWidget *parent, const TQString &configFile) KDE_EXPORT KPanelExtension *init(TQWidget *parent, const TQString &configFile)
{ {
KGlobal::locale()->insertCatalogue("ksim"); TDEGlobal::locale()->insertCatalogue("ksim");
return new KSim::PanelExtension(configFile, KPanelExtension::Normal, return new KSim::PanelExtension(configFile, KPanelExtension::Normal,
KPanelExtension::About | KPanelExtension::Help | KPanelExtension::About | KPanelExtension::Help |
KPanelExtension::Preferences | KPanelExtension::ReportBug, KPanelExtension::Preferences | KPanelExtension::ReportBug,

@ -76,7 +76,7 @@ void KSim::Sysinfo::clockUptimeUpdate()
if (m_timeLabel) { if (m_timeLabel) {
TQTime now = TQTime::currentTime(); TQTime now = TQTime::currentTime();
time = KGlobal::locale()->formatTime(now, true); time = TDEGlobal::locale()->formatTime(now, true);
if ( now == TQTime(0, 0) ) if ( now == TQTime(0, 0) )
updateDate = true; updateDate = true;
@ -86,7 +86,7 @@ void KSim::Sysinfo::clockUptimeUpdate()
// only update the date when necessary // only update the date when necessary
if (m_dateLabel) { if (m_dateLabel) {
if (updateDate) { if (updateDate) {
m_dateLabel->setText(KGlobal::locale()->formatDate(TQDate::currentDate())); m_dateLabel->setText(TDEGlobal::locale()->formatDate(TQDate::currentDate()));
updateDate = false; updateDate = false;
} }
} }

@ -330,7 +330,7 @@ void KSim::MainView::reparseConfig(bool emitReload,
void KSim::MainView::addPlugins() void KSim::MainView::addPlugins()
{ {
TQStringList locatedFiles = KGlobal::dirs()->findAllResources("data", "ksim/monitors/*.desktop"); TQStringList locatedFiles = TDEGlobal::dirs()->findAllResources("data", "ksim/monitors/*.desktop");
TQStringList::ConstIterator it; TQStringList::ConstIterator it;
for (it = locatedFiles.begin(); it != locatedFiles.end(); ++it) for (it = locatedFiles.begin(); it != locatedFiles.end(); ++it)
{ {

@ -171,7 +171,7 @@ KSim::PluginInfo KSim::PluginLoader::findPluginInfo(const TQString &name,
switch (type) { switch (type) {
case Name: { case Name: {
TQStringList files = KGlobal::dirs()->findAllResources("data", "ksim/monitors/*.desktop"); TQStringList files = TDEGlobal::dirs()->findAllResources("data", "ksim/monitors/*.desktop");
TQStringList::ConstIterator it; TQStringList::ConstIterator it;
for (it = files.begin(); it != files.end(); ++it) { for (it = files.begin(); it != files.end(); ++it) {
KDesktopFile file((*it)); KDesktopFile file((*it));
@ -183,7 +183,7 @@ KSim::PluginInfo KSim::PluginLoader::findPluginInfo(const TQString &name,
break; break;
} }
case LibName: { case LibName: {
TQStringList files = KGlobal::dirs()->findAllResources("data", "ksim/monitors/*.desktop"); TQStringList files = TDEGlobal::dirs()->findAllResources("data", "ksim/monitors/*.desktop");
TQStringList::ConstIterator it; TQStringList::ConstIterator it;
for (it = files.begin(); it != files.end(); ++it) { for (it = files.begin(); it != files.end(); ++it) {
KDesktopFile file((*it)); KDesktopFile file((*it));

@ -362,7 +362,7 @@ TQFont KSim::Theme::currentFont() const
return KSim::ThemeLoader::currentFont(); return KSim::ThemeLoader::currentFont();
break; break;
case 4: case 4:
return KGlobalSettings::generalFont(); return TDEGlobalSettings::generalFont();
break; break;
} }
@ -660,7 +660,7 @@ TQColor KSim::Theme::textColour(const TQString &itemType,
const TQString &entry) const const TQString &entry) const
{ {
if (d->recolour) if (d->recolour)
return KGlobalSettings::textColor(); return TDEGlobalSettings::textColor();
return readColourEntry(itemType, entry, 0); return readColourEntry(itemType, entry, 0);
} }
@ -1134,7 +1134,7 @@ TQString KSim::ThemeLoader::currentUrl()
KSim::Config::config()->setGroup("Theme"); KSim::Config::config()->setGroup("Theme");
TQString folder(KSim::Config::config()->readEntry("Name")); TQString folder(KSim::Config::config()->readEntry("Name"));
folder.prepend("ksim/themes/").append("/"); folder.prepend("ksim/themes/").append("/");
TQString dirName(KGlobal::dirs()->findResourceDir("data", folder)); TQString dirName(TDEGlobal::dirs()->findResourceDir("data", folder));
dirName += folder; dirName += folder;
return dirName; return dirName;
@ -1142,7 +1142,7 @@ TQString KSim::ThemeLoader::currentUrl()
TQString KSim::ThemeLoader::defaultUrl() TQString KSim::ThemeLoader::defaultUrl()
{ {
return KGlobal::dirs()->findDirs("data", "ksim/themes/ksim").first(); return TDEGlobal::dirs()->findDirs("data", "ksim/themes/ksim").first();
} }
int KSim::ThemeLoader::currentAlternative() int KSim::ThemeLoader::currentAlternative()

@ -45,7 +45,7 @@ KSim::MonitorPrefs::MonitorPrefs(TQWidget *parent, const char *name)
setSelectionMode(TQListView::Single); setSelectionMode(TQListView::Single);
// Scan for .desktop files and enter them into the KListView // Scan for .desktop files and enter them into the KListView
m_locatedFiles = KGlobal::dirs()->findAllResources("data", "ksim/monitors/*.desktop"); m_locatedFiles = TDEGlobal::dirs()->findAllResources("data", "ksim/monitors/*.desktop");
m_locatedFiles.sort(); m_locatedFiles.sort();
TQStringList::ConstIterator it; TQStringList::ConstIterator it;
for (it = m_locatedFiles.begin(); it != m_locatedFiles.end(); ++it) { for (it = m_locatedFiles.begin(); it != m_locatedFiles.end(); ++it) {

@ -216,13 +216,13 @@ void DiskView::updateDisplay()
if (m_useSeperatly) { if (m_useSeperatly) {
it.current()->first->setValue(diskData.readBlocks, diskData.writeBlocks); it.current()->first->setValue(diskData.readBlocks, diskData.writeBlocks);
it.current()->first->setText(i18n("in: %1k") it.current()->first->setText(i18n("in: %1k")
.arg(KGlobal::locale()->formatNumber((float)diskData.readBlocks / 1024.0, 1)), .arg(TDEGlobal::locale()->formatNumber((float)diskData.readBlocks / 1024.0, 1)),
i18n("out: %1k").arg(KGlobal::locale()->formatNumber((float)diskData.writeBlocks / 1024.0, 1))); i18n("out: %1k").arg(TDEGlobal::locale()->formatNumber((float)diskData.writeBlocks / 1024.0, 1)));
} }
else { else {
it.current()->first->setValue(diff, 0); it.current()->first->setValue(diff, 0);
it.current()->first->setText(i18n("%1k") it.current()->first->setText(i18n("%1k")
.arg(KGlobal::locale()->formatNumber((float)diff / 1024.0, 1))); .arg(TDEGlobal::locale()->formatNumber((float)diff / 1024.0, 1)));
} }
it.current()->second->setMaxValue(it.current()->first->maxValue()); it.current()->second->setMaxValue(it.current()->first->maxValue());

@ -169,16 +169,16 @@ bool FilesystemWidget::eventFilter(TQObject *o, TQEvent *e)
return TQWidget::eventFilter(o, e); return TQWidget::eventFilter(o, e);
} }
void FilesystemWidget::receivedStderr(KProcess *, char *buffer, int length) void FilesystemWidget::receivedStderr(TDEProcess *, char *buffer, int length)
{ {
m_stderrString.setLatin1(buffer, length); m_stderrString.setLatin1(buffer, length);
} }
void FilesystemWidget::processExited(KProcess *) void FilesystemWidget::processExited(TDEProcess *)
{ {
delete m_process; delete m_process;
m_process = 0; m_process = 0;
kdDebug(2003) << "Deleting KProcess pointer" << endl; kdDebug(2003) << "Deleting TDEProcess pointer" << endl;
if (m_stderrString.isEmpty()) if (m_stderrString.isEmpty())
return; return;
@ -198,16 +198,16 @@ void FilesystemWidget::processExited(KProcess *)
void FilesystemWidget::createProcess(const TQString &command, const TQString &point) void FilesystemWidget::createProcess(const TQString &command, const TQString &point)
{ {
m_process = new KProcess(); m_process = new TDEProcess();
connect(m_process, connect(m_process,
TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
TQT_SLOT(receivedStderr(KProcess *, char *, int))); TQT_SLOT(receivedStderr(TDEProcess *, char *, int)));
connect(m_process, connect(m_process,
TQT_SIGNAL(processExited(KProcess *)), TQT_SIGNAL(processExited(TDEProcess *)),
TQT_SLOT(processExited(KProcess *))); TQT_SLOT(processExited(TDEProcess *)));
(*m_process) << command << point; (*m_process) << command << point;
void(m_process->start(KProcess::NotifyOnExit, KProcess::Stderr)); void(m_process->start(TDEProcess::NotifyOnExit, TDEProcess::Stderr));
} }
void FilesystemWidget::showMenu(uint id) void FilesystemWidget::showMenu(uint id)

@ -24,7 +24,7 @@
#include <tqptrlist.h> #include <tqptrlist.h>
class KProcess; class TDEProcess;
class TQVBoxLayout; class TQVBoxLayout;
class FilesystemWidget : public TQWidget class FilesystemWidget : public TQWidget
@ -44,8 +44,8 @@ class FilesystemWidget : public TQWidget
bool eventFilter(TQObject *, TQEvent *); bool eventFilter(TQObject *, TQEvent *);
private slots: private slots:
void receivedStderr(KProcess *, char *, int); void receivedStderr(TDEProcess *, char *, int);
void processExited(KProcess *); void processExited(TDEProcess *);
private: private:
class Filesystem class Filesystem
@ -73,7 +73,7 @@ class FilesystemWidget : public TQWidget
typedef TQPtrList<Filesystem> ProgressList; typedef TQPtrList<Filesystem> ProgressList;
ProgressList m_list; ProgressList m_list;
TQVBoxLayout *m_layout; TQVBoxLayout *m_layout;
KProcess *m_process; TDEProcess *m_process;
TQString m_stderrString; TQString m_stderrString;
}; };
#endif #endif

@ -391,8 +391,8 @@ void NetView::updateGraph()
( *it ).chart()->setValue( receiveDiff, sendDiff ); ( *it ).chart()->setValue( receiveDiff, sendDiff );
( *it ).setMaxValue( ( *it ).chart()->maxValue() ); ( *it ).setMaxValue( ( *it ).chart()->maxValue() );
TQString receiveString = KGlobal::locale()->formatNumber( ( float ) receiveDiff / 1024.0, 1 ); TQString receiveString = TDEGlobal::locale()->formatNumber( ( float ) receiveDiff / 1024.0, 1 );
TQString sendString = KGlobal::locale()->formatNumber( ( float ) sendDiff / 1024.0, 1 ); TQString sendString = TDEGlobal::locale()->formatNumber( ( float ) sendDiff / 1024.0, 1 );
( *it ).chart()->setText( i18n( "in: %1k" ).arg( receiveString ), ( *it ).chart()->setText( i18n( "in: %1k" ).arg( receiveString ),
i18n( "out: %1k" ).arg( sendString ) ); i18n( "out: %1k" ).arg( sendString ) );
@ -402,8 +402,8 @@ void NetView::updateGraph()
( *it ).setData( NetData() ); ( *it ).setData( NetData() );
( *it ).chart()->setValue( 0, 0 ); ( *it ).chart()->setValue( 0, 0 );
( *it ).chart()->setText( i18n( "in: %1k" ).arg( KGlobal::locale()->formatNumber( 0.0, 1 ) ), ( *it ).chart()->setText( i18n( "in: %1k" ).arg( TDEGlobal::locale()->formatNumber( 0.0, 1 ) ),
i18n( "out: %1k" ).arg( KGlobal::locale()->formatNumber( 0.0, 1 ) ) ); i18n( "out: %1k" ).arg( TDEGlobal::locale()->formatNumber( 0.0, 1 ) ) );
if ( ( *it ).label() ) if ( ( *it ).label() )
( *it ).label()->setText( i18n( "offline" ) ); ( *it ).label()->setText( i18n( "offline" ) );

@ -130,7 +130,7 @@ KSim::ThemePrefs::ThemePrefs(TQWidget *parent, const char *name)
this, TQT_SLOT(showFontDialog(int))); this, TQT_SLOT(showFontDialog(int)));
m_themeLayout->addMultiCellWidget(m_fontsCombo, 5, 5, 4, 4); m_themeLayout->addMultiCellWidget(m_fontsCombo, 5, 5, 4, 4);
TQStringList locatedFiles = KGlobal::dirs()->findDirs("data", "ksim/themes"); TQStringList locatedFiles = TDEGlobal::dirs()->findDirs("data", "ksim/themes");
for (TQStringList::ConstIterator it = locatedFiles.begin(); it != locatedFiles.end(); ++it) for (TQStringList::ConstIterator it = locatedFiles.begin(); it != locatedFiles.end(); ++it)
readThemes(*it); readThemes(*it);
} }

@ -299,7 +299,7 @@ struct KTimerJobPrivate {
bool oneInstance; bool oneInstance;
unsigned value; unsigned value;
KTimerJob::States state; KTimerJob::States state;
TQPtrList<KProcess> processes; TQPtrList<TDEProcess> processes;
void *user; void *user;
TQTimer *timer; TQTimer *timer;
@ -487,7 +487,7 @@ void KTimerJob::timeout()
} }
void KTimerJob::processExited(KProcess *proc) void KTimerJob::processExited(TDEProcess *proc)
{ {
bool ok = proc->exitStatus()==0; bool ok = proc->exitStatus()==0;
d->processes.remove( proc ); d->processes.remove( proc );
@ -502,9 +502,9 @@ void KTimerJob::fire()
KShellProcess *proc = new KShellProcess; KShellProcess *proc = new KShellProcess;
(*proc) << d->command; (*proc) << d->command;
d->processes.append( proc ); d->processes.append( proc );
connect( proc, TQT_SIGNAL(processExited(KProcess*)), connect( proc, TQT_SIGNAL(processExited(TDEProcess*)),
TQT_SLOT(processExited(KProcess*)) ); TQT_SLOT(processExited(TDEProcess*)) );
bool ok = proc->start( KProcess::NotifyOnExit ); bool ok = proc->start( TDEProcess::NotifyOnExit );
emit fired( this ); emit fired( this );
if( !ok ) { if( !ok ) {
d->processes.remove( proc ); d->processes.remove( proc );

@ -81,7 +81,7 @@ class KTimerJob : public TQObject {
private slots: private slots:
void timeout(); void timeout();
void processExited(KProcess *proc); void processExited(TDEProcess *proc);
private: private:
struct KTimerJobPrivate *d; struct KTimerJobPrivate *d;

@ -51,7 +51,7 @@ KWalletFolderItem::KWalletFolderItem(KWallet::Wallet *w, TQListView* parent, con
} }
TQPixmap KWalletFolderItem::getFolderIcon(KIcon::Group group){ TQPixmap KWalletFolderItem::getFolderIcon(KIcon::Group group){
KIconLoader *loader = KGlobal::instance()->iconLoader(); KIconLoader *loader = TDEGlobal::instance()->iconLoader();
TQPixmap pix = loader->loadIcon( _name, group, 0, TQPixmap pix = loader->loadIcon( _name, group, 0,
KIcon::DefaultState, 0, true ); KIcon::DefaultState, 0, true );
if (pix.isNull()) if (pix.isNull())
@ -620,7 +620,7 @@ class KWalletIconDrag : public TQIconDrag {
* */ * */
KWalletIconView::KWalletIconView(TQWidget *parent, const char *name) KWalletIconView::KWalletIconView(TQWidget *parent, const char *name)
: KIconView(parent, name) { : KIconView(parent, name) {
KGlobal::dirs()->addResourceType("kwallet", "share/apps/kwallet"); TDEGlobal::dirs()->addResourceType("kwallet", "share/apps/kwallet");
connect(this, TQT_SIGNAL(dropped(TQDropEvent*, const TQValueList<TQIconDragItem>&)), TQT_SLOT(slotDropped(TQDropEvent*, const TQValueList<TQIconDragItem>&))); connect(this, TQT_SIGNAL(dropped(TQDropEvent*, const TQValueList<TQIconDragItem>&)), TQT_SLOT(slotDropped(TQDropEvent*, const TQValueList<TQIconDragItem>&)));
} }
@ -654,7 +654,7 @@ void KWalletIconView::slotDropped(TQDropEvent *e, const TQValueList<TQIconDragIt
return; return;
} }
TQString dest = KGlobal::dirs()->saveLocation("kwallet") + u.fileName(); TQString dest = TDEGlobal::dirs()->saveLocation("kwallet") + u.fileName();
if (TQFile::exists(dest)) { if (TQFile::exists(dest)) {
KMessageBox::sorry(viewport(), i18n("That wallet file already exists. You cannot overwrite wallets.")); KMessageBox::sorry(viewport(), i18n("That wallet file already exists. You cannot overwrite wallets."));
e->ignore(); e->ignore();
@ -676,7 +676,7 @@ void KWalletIconView::contentsMousePressEvent(TQMouseEvent *e) {
TQDragObject *KWalletIconView::dragObject() { TQDragObject *KWalletIconView::dragObject() {
KWalletIconDrag* id = new KWalletIconDrag(viewport(), "KWallet Drag"); KWalletIconDrag* id = new KWalletIconDrag(viewport(), "KWallet Drag");
TQString path = "file:" + KGlobal::dirs()->saveLocation("kwallet"); TQString path = "file:" + TDEGlobal::dirs()->saveLocation("kwallet");
TQPoint pos = _mousePos; TQPoint pos = _mousePos;
for (TQIconViewItem *item = firstItem(); item; item = item->nextItem()) { for (TQIconViewItem *item = firstItem(); item; item = item->nextItem()) {
if (item->isSelected()) { if (item->isSelected()) {

@ -1131,7 +1131,7 @@ void KWalletEditor::saveAs() {
if (_nonLocal) { if (_nonLocal) {
KIO::NetAccess::file_copy(KURL(_walletName), url, 0600, false, false, this); KIO::NetAccess::file_copy(KURL(_walletName), url, 0600, false, false, this);
} else { } else {
TQString path = KGlobal::dirs()->saveLocation("kwallet") + "/" + _walletName + ".kwl"; TQString path = TDEGlobal::dirs()->saveLocation("kwallet") + "/" + _walletName + ".kwl";
KURL destURL; destURL.setPath(path); KURL destURL; destURL.setPath(path);
KIO::NetAccess::file_copy(destURL, url, 0600, false, false, this); KIO::NetAccess::file_copy(destURL, url, 0600, false, false, this);
} }

@ -48,7 +48,7 @@
KWalletManager::KWalletManager(TQWidget *parent, const char *name, WFlags f) KWalletManager::KWalletManager(TQWidget *parent, const char *name, WFlags f)
: KMainWindow(parent, name, f), DCOPObject("KWalletManager") { : KMainWindow(parent, name, f), DCOPObject("KWalletManager") {
KGlobal::dirs()->addResourceType("kwallet", "share/apps/kwallet"); TDEGlobal::dirs()->addResourceType("kwallet", "share/apps/kwallet");
_kwalletdLaunch = false; _kwalletdLaunch = false;
TQAccel *accel = new TQAccel(this, "kwalletmanager"); TQAccel *accel = new TQAccel(this, "kwalletmanager");

@ -71,7 +71,7 @@ int main(int argc, char **argv) {
a.setMainWidget(&wm); a.setMainWidget(&wm);
KGlobal::dirs()->addResourceType("kwallet", "share/apps/kwallet"); TDEGlobal::dirs()->addResourceType("kwallet", "share/apps/kwallet");
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -18,10 +18,10 @@
DiskSensor::DiskSensor( int msec ) : Sensor( msec ) DiskSensor::DiskSensor( int msec ) : Sensor( msec )
{ {
connect(&ksp, TQT_SIGNAL(receivedStdout(KProcess *, char *, int )), connect(&ksp, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int )),
this,TQT_SLOT(receivedStdout(KProcess *, char *, int ))); this,TQT_SLOT(receivedStdout(TDEProcess *, char *, int )));
connect(&ksp, TQT_SIGNAL(processExited(KProcess *)), connect(&ksp, TQT_SIGNAL(processExited(TDEProcess *)),
this,TQT_SLOT(processExited( KProcess * ))); this,TQT_SLOT(processExited( TDEProcess * )));
// update values on startup // update values on startup
ksp.clearArguments(); ksp.clearArguments();
@ -68,7 +68,7 @@ int DiskSensor::getPercentFree(TQString mntPt) const
return ( 100 - getPercentUsed( mntPt ) ); return ( 100 - getPercentUsed( mntPt ) );
} }
void DiskSensor::receivedStdout(KProcess *, char *buffer, int len ) void DiskSensor::receivedStdout(TDEProcess *, char *buffer, int len )
{ {
buffer[len] = 0; buffer[len] = 0;
@ -76,7 +76,7 @@ void DiskSensor::receivedStdout(KProcess *, char *buffer, int len )
} }
void DiskSensor::processExited(KProcess *) void DiskSensor::processExited(TDEProcess *)
{ {
TQStringList stringList = TQStringList::split('\n',sensorResult); TQStringList stringList = TQStringList::split('\n',sensorResult);
sensorResult = ""; sensorResult = "";

@ -42,8 +42,8 @@ private:
int init; int init;
private slots: private slots:
void receivedStdout(KProcess *, char *buffer, int); void receivedStdout(TDEProcess *, char *buffer, int);
void processExited(KProcess *); void processExited(TDEProcess *);
signals: signals:
void initComplete(); void initComplete();

@ -1900,14 +1900,14 @@ void karamba::startupRemoved(Startup* t)
pythonIface->startupRemoved(this, t); pythonIface->startupRemoved(this, t);
} }
void karamba::processExited (KProcess* proc) void karamba::processExited (TDEProcess* proc)
{ {
//tqDebug("karamba::processExited"); //tqDebug("karamba::processExited");
if (pythonIface && pythonIface->isExtensionLoaded()) if (pythonIface && pythonIface->isExtensionLoaded())
pythonIface->commandFinished(this, (int)proc->pid()); pythonIface->commandFinished(this, (int)proc->pid());
} }
void karamba::receivedStdout (KProcess *proc, char *buffer, int) void karamba::receivedStdout (TDEProcess *proc, char *buffer, int)
{ {
//tqDebug("karamba::receivedStdout"); //tqDebug("karamba::receivedStdout");
//Everything below is to call the python callback function //Everything below is to call the python callback function

@ -136,7 +136,7 @@ public:
KarambaRootPixmap *kroot; KarambaRootPixmap *kroot;
TaskManager taskManager; TaskManager taskManager;
Systemtray* systray; Systemtray* systray;
KProcess* currProcess; TDEProcess* currProcess;
bool useSmoothTransforms(); bool useSmoothTransforms();
void changeInterval(int interval); void changeInterval(int interval);
@ -267,8 +267,8 @@ public slots:
void updateBackground(KSharedPixmap*); void updateBackground(KSharedPixmap*);
void passMenuOptionChanged(TQString key, bool); void passMenuOptionChanged(TQString key, bool);
void passMenuItemClicked(int); void passMenuItemClicked(int);
void processExited (KProcess *proc); void processExited (TDEProcess *proc);
void receivedStdout (KProcess *proc, char *buffer, int buflen); void receivedStdout (TDEProcess *proc, char *buffer, int buflen);
void toDesktop(int desktopid, int menuid); void toDesktop(int desktopid, int menuid);
const char *getPrettyName() { return prettyName.ascii(); } const char *getPrettyName() { return prettyName.ascii(); }

@ -152,19 +152,19 @@ void KWidgetListbox::setItemColors(int index, bool even)
if(index == selected()) if(index == selected())
{ {
itm->setPaletteBackgroundColor(KGlobalSettings::highlightColor()); itm->setPaletteBackgroundColor(TDEGlobalSettings::highlightColor());
itm->setPaletteForegroundColor(KGlobalSettings::highlightedTextColor()); itm->setPaletteForegroundColor(TDEGlobalSettings::highlightedTextColor());
} }
else if(even) else if(even)
{ {
itm->setPaletteBackgroundColor(KGlobalSettings::baseColor()); itm->setPaletteBackgroundColor(TDEGlobalSettings::baseColor());
itm->setPaletteForegroundColor(KGlobalSettings::textColor()); itm->setPaletteForegroundColor(TDEGlobalSettings::textColor());
} }
else else
{ {
itm->setPaletteBackgroundColor( itm->setPaletteBackgroundColor(
KGlobalSettings::alternateBackgroundColor()); TDEGlobalSettings::alternateBackgroundColor());
itm->setPaletteForegroundColor(KGlobalSettings::textColor()); itm->setPaletteForegroundColor(TDEGlobalSettings::textColor());
} }
} }

@ -56,10 +56,10 @@ MemSensor::MemSensor(int msec) : Sensor(msec)
# if defined(Q_OS_FREEBSD) && defined(__FreeBSD_version) && __FreeBSD_version >= 500018 # if defined(Q_OS_FREEBSD) && defined(__FreeBSD_version) && __FreeBSD_version >= 500018
kd = kvm_open("/dev/null", "/dev/null", "/dev/null", O_RDONLY, "kvm_open"); kd = kvm_open("/dev/null", "/dev/null", "/dev/null", O_RDONLY, "kvm_open");
# elif defined Q_OS_FREEBSD # elif defined Q_OS_FREEBSD
connect(&ksp, TQT_SIGNAL(receivedStdout(KProcess *, char *, int )), connect(&ksp, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int )),
this,TQT_SLOT(receivedStdout(KProcess *, char *, int ))); this,TQT_SLOT(receivedStdout(TDEProcess *, char *, int )));
connect(&ksp, TQT_SIGNAL(processExited(KProcess *)), connect(&ksp, TQT_SIGNAL(processExited(TDEProcess *)),
this,TQT_SLOT(processExited( KProcess * ))); this,TQT_SLOT(processExited( TDEProcess * )));
swapTotal = swapUsed = 0; swapTotal = swapUsed = 0;
@ -76,18 +76,18 @@ MemSensor::~MemSensor()
{} {}
#ifdef Q_OS_FREEBSD #ifdef Q_OS_FREEBSD
void MemSensor::receivedStdout(KProcess *, char *buffer, int len ) void MemSensor::receivedStdout(TDEProcess *, char *buffer, int len )
{ {
buffer[len] = 0; buffer[len] = 0;
sensorResult += TQString( TQCString(buffer) ); sensorResult += TQString( TQCString(buffer) );
} }
#else #else
void MemSensor::receivedStdout(KProcess *, char *, int) void MemSensor::receivedStdout(TDEProcess *, char *, int)
{ {
} }
#endif #endif
void MemSensor::processExited(KProcess *) void MemSensor::processExited(TDEProcess *)
{ {
#ifdef Q_OS_FREEBSD #ifdef Q_OS_FREEBSD
TQStringList stringList = TQStringList::split('\n',sensorResult); TQStringList stringList = TQStringList::split('\n',sensorResult);
@ -272,7 +272,7 @@ void MemSensor::readValues()
# if defined(Q_OS_FREEBSD) && !(defined(__FreeBSD_version) && __FreeBSD_version >= 500018) # if defined(Q_OS_FREEBSD) && !(defined(__FreeBSD_version) && __FreeBSD_version >= 500018)
ksp.clearArguments(); ksp.clearArguments();
ksp << "swapinfo"; ksp << "swapinfo";
ksp.start( KProcess::NotifyOnExit,KProcIO::Stdout); ksp.start( TDEProcess::NotifyOnExit,KProcIO::Stdout);
# endif # endif
#else #else
TQFile file("/proc/meminfo"); TQFile file("/proc/meminfo");

@ -60,8 +60,8 @@ private:
#endif #endif
private slots: private slots:
void receivedStdout(KProcess *, char *buffer, int); void receivedStdout(TDEProcess *, char *buffer, int);
void processExited(KProcess *); void processExited(TDEProcess *);
}; };

@ -126,7 +126,7 @@ PyObject* py_execute_command_interactive(PyObject *, PyObject* args)
karamba* currTheme = (karamba*)widget; karamba* currTheme = (karamba*)widget;
currTheme->currProcess = new KProcess; currTheme->currProcess = new TDEProcess;
/* get the number of lines passed to us */ /* get the number of lines passed to us */
numLines = PyList_Size(listObj); numLines = PyList_Size(listObj);
@ -149,14 +149,14 @@ PyObject* py_execute_command_interactive(PyObject *, PyObject* args)
} }
TQApplication::connect(currTheme->currProcess, TQApplication::connect(currTheme->currProcess,
TQT_SIGNAL(processExited(KProcess *)), TQT_SIGNAL(processExited(TDEProcess *)),
currTheme, currTheme,
TQT_SLOT(processExited(KProcess *))); TQT_SLOT(processExited(TDEProcess *)));
TQApplication::connect(currTheme->currProcess, TQApplication::connect(currTheme->currProcess,
TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
currTheme, currTheme,
TQT_SLOT(receivedStdout(KProcess *, char *, int))); TQT_SLOT(receivedStdout(TDEProcess *, char *, int)));
currTheme->currProcess->start(KProcess::NotifyOnExit, KProcess::Stdout); currTheme->currProcess->start(TDEProcess::NotifyOnExit, TDEProcess::Stdout);
return Py_BuildValue((char*)"l", (int)(currTheme->currProcess->pid())); return Py_BuildValue((char*)"l", (int)(currTheme->currProcess->pid()));
} }
@ -308,7 +308,7 @@ PyObject* py_userLanguage(PyObject *, PyObject *args)
return NULL; return NULL;
if (!checkKaramba(widget)) if (!checkKaramba(widget))
return NULL; return NULL;
return Py_BuildValue((char*)"s", KGlobal::locale()->language().ascii()); return Py_BuildValue((char*)"s", TDEGlobal::locale()->language().ascii());
} }
PyObject* py_userLanguages(PyObject *, PyObject *args) PyObject* py_userLanguages(PyObject *, PyObject *args)
@ -319,14 +319,14 @@ PyObject* py_userLanguages(PyObject *, PyObject *args)
if (!checkKaramba(widget)) if (!checkKaramba(widget))
return NULL; return NULL;
unsigned int noOfLangs = KGlobal::locale()->languageList().count(); unsigned int noOfLangs = TDEGlobal::locale()->languageList().count();
PyObject *list, *item; PyObject *list, *item;
list = PyList_New(noOfLangs); list = PyList_New(noOfLangs);
for(unsigned int i = 0; i < noOfLangs; i++) for(unsigned int i = 0; i < noOfLangs; i++)
{ {
item = Py_BuildValue((char*)"s", KGlobal::locale()->languageList()[i].ascii()); item = Py_BuildValue((char*)"s", TDEGlobal::locale()->languageList()[i].ascii());
PyList_SetItem(list, i, item); PyList_SetItem(list, i, item);
} }

@ -25,22 +25,22 @@ ProgramSensor::ProgramSensor(const TQString &progName, int interval, TQString en
programName = progName; programName = progName;
//update(); //update();
connect(&ksp, TQT_SIGNAL(receivedStdout(KProcess *, char *, int )), connect(&ksp, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int )),
this,TQT_SLOT(receivedStdout(KProcess *, char *, int ))); this,TQT_SLOT(receivedStdout(TDEProcess *, char *, int )));
connect(&ksp, TQT_SIGNAL(processExited(KProcess *)), connect(&ksp, TQT_SIGNAL(processExited(TDEProcess *)),
this,TQT_SLOT(processExited( KProcess * ))); this,TQT_SLOT(processExited( TDEProcess * )));
} }
ProgramSensor::~ProgramSensor() ProgramSensor::~ProgramSensor()
{} {}
void ProgramSensor::receivedStdout(KProcess *, char *buffer, int len) void ProgramSensor::receivedStdout(TDEProcess *, char *buffer, int len)
{ {
buffer[len] = 0; buffer[len] = 0;
sensorResult += codec->toUnicode( TQCString(buffer) ); sensorResult += codec->toUnicode( TQCString(buffer) );
} }
void ProgramSensor::processExited(KProcess *) void ProgramSensor::processExited(TDEProcess *)
{ {
int lineNbr; int lineNbr;
SensorParams *sp; SensorParams *sp;

@ -32,8 +32,8 @@ private:
TQString sensorResult; TQString sensorResult;
public slots: public slots:
void receivedStdout(KProcess *proc, char *buffer, int buflen); void receivedStdout(TDEProcess *proc, char *buffer, int buflen);
void processExited(KProcess *proc); void processExited(TDEProcess *proc);
}; };
#endif // PROGRAMSENSOR_H #endif // PROGRAMSENSOR_H

@ -29,10 +29,10 @@ SensorSensor::SensorSensor(int interval, char tempUnit) : Sensor( interval )
#endif #endif
if(tempUnit == 'F') if(tempUnit == 'F')
extraParams = " -f"; extraParams = " -f";
connect(&ksp, TQT_SIGNAL(receivedStdout(KProcess *, char *, int )), connect(&ksp, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int )),
this,TQT_SLOT(receivedStdout(KProcess *, char *, int ))); this,TQT_SLOT(receivedStdout(TDEProcess *, char *, int )));
connect(&ksp, TQT_SIGNAL(processExited(KProcess *)), connect(&ksp, TQT_SIGNAL(processExited(TDEProcess *)),
this,TQT_SLOT(processExited( KProcess * ))); this,TQT_SLOT(processExited( TDEProcess * )));
// readValues(); // readValues();
} }
@ -42,13 +42,13 @@ SensorSensor::~SensorSensor()
{ {
} }
void SensorSensor::receivedStdout(KProcess *, char *buffer, int len ) void SensorSensor::receivedStdout(TDEProcess *, char *buffer, int len )
{ {
buffer[len] = 0; buffer[len] = 0;
sensorResult += TQString( TQCString(buffer) ); sensorResult += TQString( TQCString(buffer) );
} }
void SensorSensor::processExited(KProcess *) void SensorSensor::processExited(TDEProcess *)
{ {
TQStringList stringList = TQStringList::split('\n',sensorResult); TQStringList stringList = TQStringList::split('\n',sensorResult);
sensorResult = ""; sensorResult = "";
@ -108,7 +108,7 @@ void SensorSensor::update()
#else #else
ksp << "sensors" << extraParams; ksp << "sensors" << extraParams;
#endif #endif
ksp.start( KProcess::NotifyOnExit,KProcIO::Stdout); ksp.start( TDEProcess::NotifyOnExit,KProcIO::Stdout);
} }

@ -40,8 +40,8 @@ private:
TQString sensorResult; TQString sensorResult;
private slots: private slots:
void receivedStdout(KProcess *, char *buffer, int); void receivedStdout(TDEProcess *, char *buffer, int);
void processExited(KProcess *); void processExited(TDEProcess *);

@ -135,6 +135,6 @@ TQString SKNewStuff::downloadDestination( KNS::Entry *entry )
KRun::runURL( source, "text/html"); KRun::runURL( source, "text/html");
return file; return file;
} }
return KGlobal::dirs()->saveLocation( "tmp" ) + source.fileName(); return TDEGlobal::dirs()->saveLocation( "tmp" ) + source.fileName();
} }
#endif //HAVE_KNEWSTUFF #endif //HAVE_KNEWSTUFF

@ -66,7 +66,7 @@ int main(int argc, char **argv)
// // KSGRD::SensorMgr foo ;// p->engage( "" ); // // KSGRD::SensorMgr foo ;// p->engage( "" );
// //KConfig *kconfig = KGlobal::config(); // //KConfig *kconfig = TDEGlobal::config();
// //kconfig->setGroup("karamba"); // //kconfig->setGroup("karamba");
// //kconfig->writeEntry("test", "/home/hk/foofoo"); // //kconfig->writeEntry("test", "/home/hk/foofoo");
// //kconfig->sync(); // //kconfig->sync();

@ -54,7 +54,7 @@ TaskManager::TaskManager(TQObject *parent, const char *name)
twin_module = new KWinModule(); twin_module = new KWinModule();
// KGlobal::locale()->insertCatalogue("libtaskmanager"); // TDEGlobal::locale()->insertCatalogue("libtaskmanager");
connect(twin_module, TQT_SIGNAL(windowAdded(WId)), TQT_SLOT(windowAdded(WId))); connect(twin_module, TQT_SIGNAL(windowAdded(WId)), TQT_SLOT(windowAdded(WId)));
connect(twin_module, TQT_SIGNAL(windowRemoved(WId)), TQT_SLOT(windowRemoved(WId))); connect(twin_module, TQT_SIGNAL(windowRemoved(WId)), TQT_SLOT(windowRemoved(WId)));
connect(twin_module, TQT_SIGNAL(activeWindowChanged(WId)), TQT_SLOT(activeWindowChanged(WId))); connect(twin_module, TQT_SIGNAL(activeWindowChanged(WId)), TQT_SLOT(activeWindowChanged(WId)));
@ -344,7 +344,7 @@ Task::Task(WId win, TaskManager * parent, const char *name) :
// try to guess the icon from the classhint // try to guess the icon from the classhint
if(_pixmap.isNull()) if(_pixmap.isNull())
KGlobal::instance()->iconLoader()->loadIcon(className().lower(), TDEGlobal::instance()->iconLoader()->loadIcon(className().lower(),
KIcon::Small,KIcon::Small, KIcon::Small,KIcon::Small,
KIcon::DefaultState, 0, true); KIcon::DefaultState, 0, true);
@ -372,7 +372,7 @@ void Task::refresh(bool icon)
// try to guess the icon from the classhint // try to guess the icon from the classhint
if(_pixmap.isNull()) if(_pixmap.isNull())
{ {
KGlobal::instance()->iconLoader()->loadIcon(className().lower(), TDEGlobal::instance()->iconLoader()->loadIcon(className().lower(),
KIcon::Small, KIcon::Small, KIcon::DefaultState, 0, true); KIcon::Small, KIcon::Small, KIcon::DefaultState, 0, true);
} }
@ -538,7 +538,7 @@ TQPixmap Task::bestIcon( int size, bool &isStaticIcon )
// Icon of last resort // Icon of last resort
if( pixmap.isNull() ) { if( pixmap.isNull() ) {
pixmap = KGlobal::iconLoader()->loadIcon( "go", pixmap = TDEGlobal::iconLoader()->loadIcon( "go",
KIcon::NoGroup, KIcon::NoGroup,
KIcon::SizeSmall ); KIcon::SizeSmall );
isStaticIcon = true; isStaticIcon = true;
@ -561,7 +561,7 @@ TQPixmap Task::bestIcon( int size, bool &isStaticIcon )
// Icon of last resort // Icon of last resort
if( pixmap.isNull() ) { if( pixmap.isNull() ) {
pixmap = KGlobal::iconLoader()->loadIcon( "go", pixmap = TDEGlobal::iconLoader()->loadIcon( "go",
KIcon::NoGroup, KIcon::NoGroup,
KIcon::SizeMedium ); KIcon::SizeMedium );
isStaticIcon = true; isStaticIcon = true;
@ -575,7 +575,7 @@ TQPixmap Task::bestIcon( int size, bool &isStaticIcon )
// If not, try to get one from the classname // If not, try to get one from the classname
if ( pixmap.isNull() || pixmap.width() != size || pixmap.height() != size ) { if ( pixmap.isNull() || pixmap.width() != size || pixmap.height() != size ) {
pixmap = KGlobal::iconLoader()->loadIcon( className(), pixmap = TDEGlobal::iconLoader()->loadIcon( className(),
KIcon::NoGroup, KIcon::NoGroup,
size, size,
KIcon::DefaultState, KIcon::DefaultState,
@ -592,7 +592,7 @@ TQPixmap Task::bestIcon( int size, bool &isStaticIcon )
// Icon of last resort // Icon of last resort
if( pixmap.isNull() ) { if( pixmap.isNull() ) {
pixmap = KGlobal::iconLoader()->loadIcon( "go", pixmap = TDEGlobal::iconLoader()->loadIcon( "go",
KIcon::NoGroup, KIcon::NoGroup,
size ); size );
isStaticIcon = true; isStaticIcon = true;

@ -171,7 +171,7 @@ void ThemeLocale::setLanguage(const TQStringList &languages)
TQStringList ThemeLocale::languageList() TQStringList ThemeLocale::languageList()
{ {
KConfig* config = KGlobal::instance()->config(); KConfig* config = TDEGlobal::instance()->config();
// Reset the list and add the new languages // Reset the list and add the new languages
TQStringList languageList; TQStringList languageList;
languageList += languageList +=

@ -126,7 +126,7 @@ void ThemesDlg::populateListbox()
tableThemes->clear(); tableThemes->clear();
item = new ThemeWidget; item = new ThemeWidget;
item->icon->setPixmap(KGlobal::iconLoader()->loadIcon("knewstuff", item->icon->setPixmap(TDEGlobal::iconLoader()->loadIcon("knewstuff",
KIcon::NoGroup, KIcon::SizeHuge)); KIcon::NoGroup, KIcon::SizeHuge));
item->setHeaderText(i18n("Get New Stuff")); item->setHeaderText(i18n("Get New Stuff"));
item->setDescriptionText(i18n("Download new themes.")); item->setDescriptionText(i18n("Download new themes."));
@ -142,7 +142,7 @@ void ThemesDlg::populateListbox()
tableThemes->insertItem(item); tableThemes->insertItem(item);
item = new ThemeWidget; item = new ThemeWidget;
item->icon->setPixmap(KGlobal::iconLoader()->loadIcon("ksysguard", item->icon->setPixmap(TDEGlobal::iconLoader()->loadIcon("ksysguard",
KIcon::NoGroup, KIcon::SizeHuge)); KIcon::NoGroup, KIcon::SizeHuge));
item->setHeaderText(i18n("Open Local Theme")); item->setHeaderText(i18n("Open Local Theme"));
item->setDescriptionText(i18n("Add local theme to the list.")); item->setDescriptionText(i18n("Add local theme to the list."));
@ -217,7 +217,7 @@ void ThemesDlg::openLocalTheme()
void ThemesDlg::getNewStuff() void ThemesDlg::getNewStuff()
{ {
#ifdef HAVE_KNEWSTUFF #ifdef HAVE_KNEWSTUFF
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
config->setGroup("KNewStuff"); config->setGroup("KNewStuff");
config->writePathEntry("ProvidersUrl", config->writePathEntry("ProvidersUrl",
TQString::fromLatin1("http://download.kde.org/khotnewstuff/karamba-providers.xml")); TQString::fromLatin1("http://download.kde.org/khotnewstuff/karamba-providers.xml"));
@ -301,7 +301,7 @@ void ThemesDlg::addThemeToDialog(const KArchiveDirectory *archiveDir,
void ThemesDlg::writeNewStuffConfig(const TQString &file) void ThemesDlg::writeNewStuffConfig(const TQString &file)
{ {
#ifdef HAVE_KNEWSTUFF #ifdef HAVE_KNEWSTUFF
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
TQStringList keys = config->entryMap("KNewStuffStatus").keys(); TQStringList keys = config->entryMap("KNewStuffStatus").keys();
for(TQStringList::Iterator it = m_newStuffStatus.begin(); for(TQStringList::Iterator it = m_newStuffStatus.begin();
@ -321,7 +321,7 @@ void ThemesDlg::writeNewStuffConfig(const TQString &file)
void ThemesDlg::configSanityCheck() void ThemesDlg::configSanityCheck()
{ {
#ifdef HAVE_KNEWSTUFF #ifdef HAVE_KNEWSTUFF
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
TQStringList statusKeys = config->entryMap("KNewStuffStatus").keys(); TQStringList statusKeys = config->entryMap("KNewStuffStatus").keys();
TQStringList nameKeys = config->entryMap("KNewStuffNames").keys(); TQStringList nameKeys = config->entryMap("KNewStuffNames").keys();
TQStringList removeList; TQStringList removeList;
@ -427,7 +427,7 @@ bool ThemesDlg::filter(int index, TQWidget* widget, void* data)
bool ThemesDlg::isDownloaded( const TQString& path ) bool ThemesDlg::isDownloaded( const TQString& path )
{ {
kdDebug() << "isDownloaded path: " << path << endl; kdDebug() << "isDownloaded path: " << path << endl;
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
config->setGroup("KNewStuffNames"); config->setGroup("KNewStuffNames");
return !config->readEntry(path).isEmpty(); return !config->readEntry(path).isEmpty();
} }
@ -442,7 +442,7 @@ void ThemesDlg::uninstall()
karambaApp->dcopIface()->closeTheme(tf->name()); karambaApp->dcopIface()->closeTheme(tf->name());
if(!KProtocolInfo::isKnownProtocol(trash)) if(!KProtocolInfo::isKnownProtocol(trash))
trash = KGlobalSettings::trashPath(); trash = TDEGlobalSettings::trashPath();
if(!tf->isZipTheme()) if(!tf->isZipTheme())
{ {
@ -478,7 +478,7 @@ void ThemesDlg::uninstall()
} }
#ifdef HAVE_KNEWSTUFF #ifdef HAVE_KNEWSTUFF
// Remove theme from KNewStuffStatus // Remove theme from KNewStuffStatus
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
config->setGroup("KNewStuffNames"); config->setGroup("KNewStuffNames");
TQString name = config->readEntry(tempPath); TQString name = config->readEntry(tempPath);
if(!name.isEmpty()) if(!name.isEmpty())
@ -508,7 +508,7 @@ void ThemesDlg::uninstall()
tableThemes->removeItem(w); tableThemes->removeItem(w);
#ifdef HAVE_KNEWSTUFF #ifdef HAVE_KNEWSTUFF
// Remove theme from KNewStuffStatus // Remove theme from KNewStuffStatus
KConfig* config = KGlobal::config(); KConfig* config = TDEGlobal::config();
config->setGroup("KNewStuffNames"); config->setGroup("KNewStuffNames");
TQString name = config->readEntry(theme.path()); TQString name = config->readEntry(theme.path());
if(!name.isEmpty()) if(!name.isEmpty())

Loading…
Cancel
Save