diff options
Diffstat (limited to 'kgpg/kgpginterface.cpp')
-rw-r--r-- | kgpg/kgpginterface.cpp | 122 |
1 files changed, 61 insertions, 61 deletions
diff --git a/kgpg/kgpginterface.cpp b/kgpg/kgpginterface.cpp index 1c24cff..e397966 100644 --- a/kgpg/kgpginterface.cpp +++ b/kgpg/kgpginterface.cpp @@ -42,7 +42,7 @@ #include <tdeaction.h> #include <tqtextcodec.h> #include <tdeprocess.h> -#include <kprocio.h> +#include <tdeprocio.h> #include <tdeconfig.h> #include <tqfile.h> #include <kled.h> @@ -101,7 +101,7 @@ void KgpgInterface::KgpgEncryptFile(TQStringList encryptKeys,KURL srcUrl,KURL de sourceFile=srcUrl; message=TQString(); - KProcIO *proc=new KProcIO(TQTextCodec::codecForLocale()); + TDEProcIO *proc=new TDEProcIO(TQTextCodec::codecForLocale()); *proc<<"gpg"<<"--no-tty"<<"--no-secmem-warning"<<"--status-fd=2"<<"--command-fd=0"<<"--utf8-strings"; for ( TQStringList::Iterator it = Options.begin(); it != Options.end(); ++it ) if (!TQFile::encodeName(*it).isEmpty()) *proc<< TQString(TQFile::encodeName(*it)); @@ -119,7 +119,7 @@ void KgpgInterface::KgpgEncryptFile(TQStringList encryptKeys,KURL srcUrl,KURL de ///////// when process ends, update dialog infos TQObject::connect(proc, TQ_SIGNAL(processExited(TDEProcess *)),this,TQ_SLOT(encryptfin(TDEProcess *))); - TQObject::connect(proc,TQ_SIGNAL(readReady(KProcIO *)),this,TQ_SLOT(readencprocess(KProcIO *))); + TQObject::connect(proc,TQ_SIGNAL(readReady(TDEProcIO *)),this,TQ_SLOT(readencprocess(TDEProcIO *))); proc->start(TDEProcess::NotifyOnExit,true); } @@ -138,7 +138,7 @@ void KgpgInterface::encryptfin(TDEProcess *) } } -void KgpgInterface::readencprocess(KProcIO *p) +void KgpgInterface::readencprocess(TDEProcIO *p) { // kdDebug(2100) << k_funcinfo << endl; TQString required; @@ -178,7 +178,7 @@ void KgpgInterface::KgpgDecryptFile(KURL srcUrl,KURL destUrl,TQStringList Option userIDs=TQString(); anonymous=false; - KProcIO *proc=new KProcIO(TQTextCodec::codecForLocale()); + TDEProcIO *proc=new TDEProcIO(TQTextCodec::codecForLocale()); *proc<<"gpg"<<"--no-tty"<<"--no-secmem-warning"<<"--status-fd=2"<<"--command-fd=0"<<"--utf8-strings"; @@ -191,7 +191,7 @@ void KgpgInterface::KgpgDecryptFile(KURL srcUrl,KURL destUrl,TQStringList Option *proc<<"-d"<<TQString(TQFile::encodeName(srcUrl.path())); TQObject::connect(proc, TQ_SIGNAL(processExited(TDEProcess *)),this,TQ_SLOT(decryptfin(TDEProcess *))); - TQObject::connect(proc,TQ_SIGNAL(readReady(KProcIO *)),this,TQ_SLOT(readdecprocess(KProcIO *))); + TQObject::connect(proc,TQ_SIGNAL(readReady(TDEProcIO *)),this,TQ_SLOT(readdecprocess(TDEProcIO *))); proc->start(TDEProcess::NotifyOnExit,true); } @@ -205,7 +205,7 @@ void KgpgInterface::decryptfin(TDEProcess *) } -void KgpgInterface::readdecprocess(KProcIO *p) +void KgpgInterface::readdecprocess(TDEProcIO *p) { // kdDebug(2100) << k_funcinfo << endl; TQString required; @@ -266,7 +266,7 @@ void KgpgInterface::KgpgEncryptText(TQString text,TQStringList userIDs, TQString if (codec->canEncode(text)) txtToEncrypt=text; else txtToEncrypt=text.utf8(); - KProcIO *proc=new KProcIO(TQTextCodec::codecForLocale()); + TDEProcIO *proc=new TDEProcIO(TQTextCodec::codecForLocale()); *proc<<"gpg"<<"--no-tty"<<"--no-secmem-warning"<<"--command-fd=0"<<"--status-fd=1"<<"--utf8-strings"; for ( TQStringList::Iterator it = Options.begin(); it != Options.end(); ++it ) @@ -284,7 +284,7 @@ void KgpgInterface::KgpgEncryptText(TQString text,TQStringList userIDs, TQString ///////// when process ends, update dialog infos TQObject::connect(proc, TQ_SIGNAL(processExited(TDEProcess *)),this,TQ_SLOT(txtencryptfin(TDEProcess *))); - TQObject::connect(proc,TQ_SIGNAL(readReady(KProcIO *)),this,TQ_SLOT(txtreadencprocess(KProcIO *))); + TQObject::connect(proc,TQ_SIGNAL(readReady(TDEProcIO *)),this,TQ_SLOT(txtreadencprocess(TDEProcIO *))); proc->start(TDEProcess::NotifyOnExit,false); emit txtencryptionstarted(); } @@ -299,7 +299,7 @@ void KgpgInterface::txtencryptfin(TDEProcess *) emit txtencryptionfinished(TQString()); } -void KgpgInterface::txtreadencprocess(KProcIO *p) +void KgpgInterface::txtreadencprocess(TDEProcIO *p) { // kdDebug(2100) << k_funcinfo << endl; TQString required; @@ -462,7 +462,7 @@ void KgpgInterface::KgpgSignText(TQString text,TQString userIDs, TQStringList Op if (codec->canEncode(text)) txtprocess=text; else txtprocess=text.utf8(); - KProcIO *proc=new KProcIO(TQTextCodec::codecForLocale()); + TDEProcIO *proc=new TDEProcIO(TQTextCodec::codecForLocale()); *proc<<"gpg"<<"--no-tty"<<"--no-secmem-warning"<<"--command-fd=0"<<"--status-fd=1"<<"--utf8-strings"; for ( TQStringList::Iterator it = Options.begin(); it != Options.end(); ++it ) @@ -472,7 +472,7 @@ void KgpgInterface::KgpgSignText(TQString text,TQString userIDs, TQStringList Op ///////// when process ends, update dialog infos TQObject::connect(proc, TQ_SIGNAL(processExited(TDEProcess *)),this,TQ_SLOT(txtsignfin(TDEProcess *))); - TQObject::connect(proc,TQ_SIGNAL(readReady(KProcIO *)),this,TQ_SLOT(txtsignprocess(KProcIO *))); + TQObject::connect(proc,TQ_SIGNAL(readReady(TDEProcIO *)),this,TQ_SLOT(txtsignprocess(TDEProcIO *))); //emit txtsigningstarted(); @@ -498,7 +498,7 @@ void KgpgInterface::txtsignfin(TDEProcess *) emit txtSignOver(TQString()); } -void KgpgInterface::txtsignprocess(KProcIO *p) +void KgpgInterface::txtsignprocess(TDEProcIO *p) { // kdDebug(2100) << k_funcinfo << endl; TQString required; @@ -590,10 +590,10 @@ void KgpgInterface::KgpgVerifyText(TQString text) signmiss=false; signID=TQString(); message=TQString(); - KProcIO *verifyproc=new KProcIO(TQTextCodec::codecForLocale()); + TDEProcIO *verifyproc=new TDEProcIO(TQTextCodec::codecForLocale()); *verifyproc<<"gpg"<<"--no-secmem-warning"<<"--status-fd=2"<<"--command-fd=0"<<"--utf8-strings"<<"--verify"; connect(verifyproc, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(slotverifyresult(TDEProcess *))); - connect(verifyproc, TQ_SIGNAL(readReady(KProcIO *)),this, TQ_SLOT(slotverifyread(KProcIO *))); + connect(verifyproc, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(slotverifyread(TDEProcIO *))); verifyproc->start(TDEProcess::NotifyOnExit,true); verifyproc->writeStdin (text); verifyproc->closeWhenDone(); @@ -611,7 +611,7 @@ if (signmiss) emit missingSignature(signID); //kdDebug(2100) << "GPG VERIFY OVER________"<<endl; } -void KgpgInterface::slotverifyread(KProcIO *p) +void KgpgInterface::slotverifyread(TDEProcIO *p) { // kdDebug(2100) << k_funcinfo << endl; TQString required; @@ -734,7 +734,7 @@ void KgpgInterface::KgpgSignFile(TQString keyID,KURL srcUrl,TQStringList Options message=TQString(); step=3; ///////////// create gpg command - KProcIO *proc=new KProcIO(TQTextCodec::codecForLocale()); + TDEProcIO *proc=new TDEProcIO(TQTextCodec::codecForLocale()); keyID=keyID.stripWhiteSpace(); *proc<<"gpg"<<"--no-tty"<<"--no-secmem-warning"<<"--utf8-strings"<<"--status-fd=2"<<"--command-fd=0"<<"-u"<<keyID.local8Bit(); for ( TQStringList::Iterator it = Options.begin(); it != Options.end(); ++it ) @@ -744,7 +744,7 @@ void KgpgInterface::KgpgSignFile(TQString keyID,KURL srcUrl,TQStringList Options *proc<<"--detach-sig"<<TQString(TQFile::encodeName(srcUrl.path())); TQObject::connect(proc, TQ_SIGNAL(processExited(TDEProcess *)),this,TQ_SLOT(signfin(TDEProcess *))); - TQObject::connect(proc,TQ_SIGNAL(readReady(KProcIO *)),this,TQ_SLOT(readsignprocess(KProcIO *))); + TQObject::connect(proc,TQ_SIGNAL(readReady(TDEProcIO *)),this,TQ_SLOT(readsignprocess(TDEProcIO *))); proc->start(TDEProcess::NotifyOnExit,true); } @@ -763,7 +763,7 @@ void KgpgInterface::signfin(TDEProcess *) } -void KgpgInterface::readsignprocess(KProcIO *p) +void KgpgInterface::readsignprocess(TDEProcIO *p) { // kdDebug(2100) << k_funcinfo << endl; TQString required; @@ -812,7 +812,7 @@ void KgpgInterface::KgpgVerifyFile(KURL sigUrl,KURL srcUrl) signID=TQString(); signmiss=false; ///////////// create gpg command - KProcIO *proc=new KProcIO(TQTextCodec::codecForLocale()); + TDEProcIO *proc=new TDEProcIO(TQTextCodec::codecForLocale()); file=sigUrl; *proc<<"gpg"<<"--no-tty"<<"--utf8-strings"<<"--no-secmem-warning"<<"--status-fd=2"<<"--verify"; if (!srcUrl.isEmpty()) @@ -820,12 +820,12 @@ void KgpgInterface::KgpgVerifyFile(KURL sigUrl,KURL srcUrl) *proc<<TQString(TQFile::encodeName(sigUrl.path())); TQObject::connect(proc, TQ_SIGNAL(processExited(TDEProcess *)),this,TQ_SLOT(verifyfin(TDEProcess *))); - TQObject::connect(proc,TQ_SIGNAL(readReady(KProcIO *)),this,TQ_SLOT(readprocess(KProcIO *))); + TQObject::connect(proc,TQ_SIGNAL(readReady(TDEProcIO *)),this,TQ_SLOT(readprocess(TDEProcIO *))); proc->start(TDEProcess::NotifyOnExit,true); } -void KgpgInterface::readprocess(KProcIO *p) +void KgpgInterface::readprocess(TDEProcIO *p) { // kdDebug(2100) << k_funcinfo << endl; TQString required; @@ -898,18 +898,18 @@ void KgpgInterface::KgpgSignKey(TQString keyID,TQString signKeyID,TQString signK signSuccess=0; step=1; output=TQString(); - KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale()); + TDEProcIO *conprocess=new TDEProcIO(TQTextCodec::codecForLocale()); *conprocess<<"gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--utf8-strings"<<"--command-fd=0"<<"--status-fd=2"<<"-u"<<signKeyID; *conprocess<<"--edit-key"<<keyID; if (local) *conprocess<<"lsign"; else *conprocess<<"sign"; - TQObject::connect(conprocess,TQ_SIGNAL(readReady(KProcIO *)),this,TQ_SLOT(sigprocess(KProcIO *))); + TQObject::connect(conprocess,TQ_SIGNAL(readReady(TDEProcIO *)),this,TQ_SLOT(sigprocess(TDEProcIO *))); TQObject::connect(conprocess, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(signover(TDEProcess *))); TQApplication::setOverrideCursor(TQCursor(TQt::BusyCursor)); conprocess->start(TDEProcess::NotifyOnExit,true); } -void KgpgInterface::sigprocess(KProcIO *p) +void KgpgInterface::sigprocess(TDEProcIO *p) { // kdDebug(2100) << k_funcinfo << endl; TQString required=TQString(); @@ -1148,17 +1148,17 @@ void KgpgInterface::KgpgDelSignature(TQString keyID,TQString signKeyID) signb++; } pclose(fp); - KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale()); + TDEProcIO *conprocess=new TDEProcIO(TQTextCodec::codecForLocale()); *conprocess<<"gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--utf8-strings"<<"--command-fd=0"<<"--status-fd=2"; *conprocess<<"--edit-key"<<keyID<<"uid 1"<<"delsig"; - TQObject::connect(conprocess,TQ_SIGNAL(readReady(KProcIO *)),this,TQ_SLOT(delsigprocess(KProcIO *))); + TQObject::connect(conprocess,TQ_SIGNAL(readReady(TDEProcIO *)),this,TQ_SLOT(delsigprocess(TDEProcIO *))); TQObject::connect(conprocess, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(delsignover(TDEProcess *))); TQApplication::setOverrideCursor(TQCursor(TQt::BusyCursor)); conprocess->start(TDEProcess::NotifyOnExit,true); } -void KgpgInterface::delsigprocess(KProcIO *p) +void KgpgInterface::delsigprocess(TDEProcIO *p) { // kdDebug(2100) << k_funcinfo << endl; @@ -1239,16 +1239,16 @@ void KgpgInterface::KgpgKeyExpire(TQString keyID,TQDate date,bool unlimited) expirationDelay=TQDate::currentDate().daysTo(date); // kdDebug(2100) << "KgpgKeyExpire date: " << TQDate::currentDate().daysTo(date) <<endl; output=TQString(); - KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale()); + TDEProcIO *conprocess=new TDEProcIO(TQTextCodec::codecForLocale()); *conprocess<<"gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--command-fd=0"<<"--status-fd=2"<<"--utf8-strings"; *conprocess<<"--edit-key"<<keyID<<"expire"; - TQObject::connect(conprocess,TQ_SIGNAL(readReady(KProcIO *)),this,TQ_SLOT(expprocess(KProcIO *))); + TQObject::connect(conprocess,TQ_SIGNAL(readReady(TDEProcIO *)),this,TQ_SLOT(expprocess(TDEProcIO *))); TQObject::connect(conprocess, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(expover(TDEProcess *))); conprocess->start(TDEProcess::NotifyOnExit,TDEProcess::AllOutput); } -void KgpgInterface::expprocess(KProcIO *p) +void KgpgInterface::expprocess(TDEProcIO *p) { // kdDebug(2100) << k_funcinfo << endl; TQString required=TQString(); @@ -1336,16 +1336,16 @@ void KgpgInterface::KgpgTrustExpire(TQString keyID,int keyTrust) /* Don't know=1; Do NOT trust=2; Marginally=3; Fully=4; Ultimately=5; */ output=TQString(); - KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale()); + TDEProcIO *conprocess=new TDEProcIO(TQTextCodec::codecForLocale()); *conprocess<<"gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--command-fd=0"<<"--status-fd=2"<<"--utf8-strings"; *conprocess<<"--edit-key"<<keyID<<"trust"; - TQObject::connect(conprocess,TQ_SIGNAL(readReady(KProcIO *)),this,TQ_SLOT(trustprocess(KProcIO *))); + TQObject::connect(conprocess,TQ_SIGNAL(readReady(TDEProcIO *)),this,TQ_SLOT(trustprocess(TDEProcIO *))); TQObject::connect(conprocess, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(trustover(TDEProcess *))); conprocess->start(TDEProcess::NotifyOnExit,true); } -void KgpgInterface::trustprocess(KProcIO *p) +void KgpgInterface::trustprocess(TDEProcIO *p) { // kdDebug(2100) << k_funcinfo << endl; TQString required=TQString(); @@ -1395,16 +1395,16 @@ void KgpgInterface::KgpgChangePass(TQString keyID) step=1; output=TQString(); message=TQString(); - KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale()); + TDEProcIO *conprocess=new TDEProcIO(TQTextCodec::codecForLocale()); *conprocess<<"gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--no-use-agent"<<"--command-fd=0"<<"--status-fd=2"<<"--utf8-strings"; *conprocess<<"--edit-key"<<keyID<<"passwd"; - TQObject::connect(conprocess,TQ_SIGNAL(readReady(KProcIO *)),this,TQ_SLOT(passprocess(KProcIO *))); + TQObject::connect(conprocess,TQ_SIGNAL(readReady(TDEProcIO *)),this,TQ_SLOT(passprocess(TDEProcIO *))); TQObject::connect(conprocess, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(passover(TDEProcess *))); conprocess->start(TDEProcess::NotifyOnExit,TDEProcess::AllOutput); } -void KgpgInterface::passprocess(KProcIO *p) +void KgpgInterface::passprocess(TDEProcIO *p) { // kdDebug(2100) << k_funcinfo << endl; TQString required=TQString(); @@ -1497,7 +1497,7 @@ TQString KgpgInterface::getKey(TQStringList IDs, bool attributes) { // kdDebug(2100) << k_funcinfo << endl; keyString=TQString(); - KProcIO *proc=new KProcIO(TQTextCodec::codecForLocale()); + TDEProcIO *proc=new TDEProcIO(TQTextCodec::codecForLocale()); *proc<< "gpg"<<"--no-tty"<<"--no-secmem-warning"<<"--utf8-strings"; *proc<<"--export"<<"--armor"; if (!attributes) @@ -1505,13 +1505,13 @@ TQString KgpgInterface::getKey(TQStringList IDs, bool attributes) for ( TQStringList::Iterator it = IDs.begin(); it != IDs.end(); ++it ) *proc << *it; - TQObject::connect(proc, TQ_SIGNAL(readReady(KProcIO *)),this, TQ_SLOT(slotReadKey(KProcIO *))); + TQObject::connect(proc, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(slotReadKey(TDEProcIO *))); proc->start(TDEProcess::Block,false); return keyString; } -void KgpgInterface::slotReadKey(KProcIO *p) +void KgpgInterface::slotReadKey(TDEProcIO *p) { // kdDebug(2100) << k_funcinfo << endl; TQString outp; @@ -1529,12 +1529,12 @@ void KgpgInterface::importKeyURL(KURL url) // kdDebug(2100) << k_funcinfo << endl; if( TDEIO::NetAccess::download( url, tempKeyFile,0) ) { message=TQString(); - KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale()); + TDEProcIO *conprocess=new TDEProcIO(TQTextCodec::codecForLocale()); *conprocess<< "gpg"<<"--no-tty"<<"--no-secmem-warning"<<"--status-fd=2"<<"--utf8-strings"<<"--import"; *conprocess<<"--allow-secret-key-import"; *conprocess<<tempKeyFile; TQObject::connect(conprocess, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(importURLover(TDEProcess *))); - TQObject::connect(conprocess, TQ_SIGNAL(readReady(KProcIO *)),this, TQ_SLOT(importprocess(KProcIO *))); + TQObject::connect(conprocess, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(importprocess(TDEProcIO *))); conprocess->start(TDEProcess::NotifyOnExit,true); } } @@ -1543,11 +1543,11 @@ void KgpgInterface::importKey(TQString keystr) { ///////////// import a key message=TQString(); - KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale()); + TDEProcIO *conprocess=new TDEProcIO(TQTextCodec::codecForLocale()); *conprocess<< "gpg"<<"--no-tty"<<"--no-secmem-warning"<<"--status-fd=2"<<"--import"; *conprocess<<"--allow-secret-key-import"; TQObject::connect(conprocess, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(importover(TDEProcess *))); - TQObject::connect(conprocess, TQ_SIGNAL(readReady(KProcIO *)),this, TQ_SLOT(importprocess(KProcIO *))); + TQObject::connect(conprocess, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(importprocess(TDEProcIO *))); conprocess->start(TDEProcess::NotifyOnExit,true); conprocess->writeStdin(keystr, true); conprocess->closeWhenDone(); @@ -1627,7 +1627,7 @@ void KgpgInterface::importURLover(TDEProcess *p) //emit importfinished(); } -void KgpgInterface::importprocess(KProcIO *p) +void KgpgInterface::importprocess(TDEProcIO *p) { // kdDebug(2100) << k_funcinfo << endl; TQString outp; @@ -1650,11 +1650,11 @@ uidEmail=email; output=TQString(); addSuccess=true; - KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale()); + TDEProcIO *conprocess=new TDEProcIO(TQTextCodec::codecForLocale()); *conprocess<< "gpg"<<"--no-tty"<<"--status-fd=2"<<"--command-fd=0"<<"--utf8-strings"; *conprocess<<"--edit-key"<<keyID<<"adduid"; TQObject::connect(conprocess, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(adduidover(TDEProcess *))); - TQObject::connect(conprocess, TQ_SIGNAL(readReady(KProcIO *)),this, TQ_SLOT(adduidprocess(KProcIO *))); + TQObject::connect(conprocess, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(adduidprocess(TDEProcIO *))); conprocess->start(TDEProcess::NotifyOnExit,true); } @@ -1665,7 +1665,7 @@ if (addSuccess) emit addUidFinished(); else emit addUidError(output); } -void KgpgInterface::adduidprocess(KProcIO *p) +void KgpgInterface::adduidprocess(TDEProcIO *p) { // kdDebug(2100) << k_funcinfo << endl; TQString required=TQString(); @@ -1737,15 +1737,15 @@ output=TQString(); photoCount=1; userIDs=keyID; - KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale()); + TDEProcIO *conprocess=new TDEProcIO(TQTextCodec::codecForLocale()); *conprocess<< "gpg"<<"--no-tty"<<"--status-fd=2"<<"--command-fd=0"; *conprocess<<"--with-colon"<<"--list-keys"<<keyID; TQObject::connect(conprocess, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(photoreadover(TDEProcess *))); - TQObject::connect(conprocess, TQ_SIGNAL(readReady(KProcIO *)),this, TQ_SLOT(photoreadprocess(KProcIO *))); + TQObject::connect(conprocess, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(photoreadprocess(TDEProcIO *))); conprocess->start(TDEProcess::NotifyOnExit,true); } -void KgpgInterface::photoreadprocess(KProcIO *p) +void KgpgInterface::photoreadprocess(TDEProcIO *p) { // kdDebug(2100) << k_funcinfo << endl; TQString required=TQString(); @@ -1772,7 +1772,7 @@ KTempFile *kgpginfotmp=new KTempFile(); kgpginfotmp->setAutoDelete(true); TQString pgpgOutput="cp %i "+kgpginfotmp->name(); -KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale()); +TDEProcIO *conprocess=new TDEProcIO(TQTextCodec::codecForLocale()); *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->start(TDEProcess::Block); @@ -1790,11 +1790,11 @@ void KgpgInterface::KgpgDeletePhoto(TQString keyID,TQString uid) // kdDebug(2100) << k_funcinfo << endl; delSuccess=true; output=TQString(); - KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale()); + TDEProcIO *conprocess=new TDEProcIO(TQTextCodec::codecForLocale()); *conprocess<< "gpg"<<"--no-tty"<<"--status-fd=2"<<"--command-fd=0"<<"--utf8-strings"; *conprocess<<"--edit-key"<<keyID<<"uid"<<uid<<"deluid"; TQObject::connect(conprocess, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(delphotoover(TDEProcess *))); - TQObject::connect(conprocess, TQ_SIGNAL(readReady(KProcIO *)),this, TQ_SLOT(delphotoprocess(KProcIO *))); + TQObject::connect(conprocess, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(delphotoprocess(TDEProcIO *))); conprocess->start(TDEProcess::NotifyOnExit,true); } @@ -1805,7 +1805,7 @@ if (delSuccess) emit delPhotoFinished(); else emit delPhotoError(output); } -void KgpgInterface::delphotoprocess(KProcIO *p) +void KgpgInterface::delphotoprocess(TDEProcIO *p) { // kdDebug(2100) << k_funcinfo << endl; TQString required=TQString(); @@ -1856,11 +1856,11 @@ void KgpgInterface::KgpgAddPhoto(TQString keyID,TQString imagePath) photoUrl=imagePath; output=TQString(); addSuccess=true; - KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale()); + TDEProcIO *conprocess=new TDEProcIO(TQTextCodec::codecForLocale()); *conprocess<< "gpg"<<"--no-tty"<<"--status-fd=2"<<"--command-fd=0"<<"--utf8-strings"; *conprocess<<"--edit-key"<<keyID<<"addphoto"; TQObject::connect(conprocess, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(addphotoover(TDEProcess *))); - TQObject::connect(conprocess, TQ_SIGNAL(readReady(KProcIO *)),this, TQ_SLOT(addphotoprocess(KProcIO *))); + TQObject::connect(conprocess, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(addphotoprocess(TDEProcIO *))); conprocess->start(TDEProcess::NotifyOnExit,true); } @@ -1871,7 +1871,7 @@ if (addSuccess) emit addPhotoFinished(); else emit addPhotoError(output); } -void KgpgInterface::addphotoprocess(KProcIO *p) +void KgpgInterface::addphotoprocess(TDEProcIO *p) { // kdDebug(2100) << k_funcinfo << endl; TQString required=TQString(); @@ -1938,13 +1938,13 @@ void KgpgInterface::KgpgRevokeKey(TQString keyID,TQString revokeUrl,int reason,T revokeDescription=description; certificateUrl=revokeUrl; output=TQString(); - KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale()); + TDEProcIO *conprocess=new TDEProcIO(TQTextCodec::codecForLocale()); *conprocess<< "gpg"<<"--no-tty"<<"--status-fd=2"<<"--logger-fd=2"<<"--command-fd=0"<<"--utf8-strings"; if (!revokeUrl.isEmpty()) *conprocess<<"-o"<<revokeUrl; *conprocess<<"--gen-revoke"<<keyID; TQObject::connect(conprocess, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(revokeover(TDEProcess *))); - TQObject::connect(conprocess, TQ_SIGNAL(readReady(KProcIO *)),this, TQ_SLOT(revokeprocess(KProcIO *))); + TQObject::connect(conprocess, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(revokeprocess(TDEProcIO *))); conprocess->start(TDEProcess::NotifyOnExit,true); } @@ -1963,7 +1963,7 @@ void KgpgInterface::revokeover(TDEProcess *) } } -void KgpgInterface::revokeprocess(KProcIO *p) +void KgpgInterface::revokeprocess(TDEProcIO *p) { // kdDebug(2100) << k_funcinfo << endl; TQString required=TQString(); |