diff options
Diffstat (limited to 'kgpg/keyservers.cpp')
-rw-r--r-- | kgpg/keyservers.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kgpg/keyservers.cpp b/kgpg/keyservers.cpp index 741aef4..514f3f3 100644 --- a/kgpg/keyservers.cpp +++ b/kgpg/keyservers.cpp @@ -41,7 +41,7 @@ #include <tdelocale.h> #include <tdeprocess.h> -#include <kprocio.h> +#include <tdeprocio.h> #include <tdelistview.h> #include <kstatusbar.h> #include <tdeconfig.h> @@ -91,10 +91,10 @@ keyServer::keyServer(TQWidget *parent, const char *name,bool modal,bool autoClos } } - KProcIO *encid=new KProcIO(TQTextCodec::codecForLocale()); + TDEProcIO *encid=new TDEProcIO(TQTextCodec::codecForLocale()); *encid << "gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--with-colon"<<"--list-keys"; TQObject::connect(encid, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(slotprocresult(TDEProcess *))); - TQObject::connect(encid, TQ_SIGNAL(readReady(KProcIO *)),this, TQ_SLOT(slotprocread(KProcIO *))); + TQObject::connect(encid, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(slotprocread(TDEProcIO *))); encid->start(TDEProcess::NotifyOnExit,true); page->Buttonimport->setEnabled( !page->kLEimportid->text().isEmpty()); page->Buttonsearch->setEnabled( !page->kLEimportid->text().isEmpty()); @@ -123,7 +123,7 @@ void keyServer::slotEnableProxyE(bool on) page->kLEproxyE->setEnabled(on); } -void keyServer::slotprocread(KProcIO *p) +void keyServer::slotprocread(TDEProcIO *p) { // kdDebug(2100) << k_funcinfo << endl; ///////////////////////////////////////////////////////////////// extract encryption keys @@ -244,7 +244,7 @@ void keyServer::slotSearch() connect(dialogServer,TQ_SIGNAL(closeClicked()),this,TQ_SLOT(handleQuit())); connect( listpop , TQ_SIGNAL( destroyed() ) , this, TQ_SLOT( abortSearch())); - searchproc=new KProcIO(TQTextCodec::codecForLocale()); + searchproc=new TDEProcIO(TQTextCodec::codecForLocale()); TQString keyserv=page->kCBimportks->currentText(); *searchproc<<"gpg"<<"--utf8-strings"/*<<"--no-tty"*/; @@ -263,7 +263,7 @@ void keyServer::slotSearch() keyNumbers=0; TQApplication::setOverrideCursor(TQCursor(TQt::BusyCursor)); TQObject::connect(searchproc, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(slotsearchresult(TDEProcess *))); - TQObject::connect(searchproc, TQ_SIGNAL(readReady(KProcIO *)),this, TQ_SLOT(slotsearchread(KProcIO *))); + TQObject::connect(searchproc, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(slotsearchread(TDEProcIO *))); searchproc->setUsePty(TDEProcess::Stdout,false); // EKO: very important line - it took me a day to find out why I should use it searchproc->start(TDEProcess::NotifyOnExit,true); @@ -327,7 +327,7 @@ void keyServer::transferKeyID() listpop->kLEID->setText(keysToSearch.stripWhiteSpace()); } -void keyServer::slotsearchread(KProcIO *p) +void keyServer::slotsearchread(TDEProcIO *p) { // kdDebug(2100) << k_funcinfo << endl; TQString required = TQString(); @@ -514,7 +514,7 @@ void keyServer::slotExport(TQStringList keyIds) return; readmessage=TQString(); hashMap.clear(); - exportproc=new KProcIO(TQTextCodec::codecForLocale()); + exportproc=new TDEProcIO(TQTextCodec::codecForLocale()); TQString keyserv=page->kCBexportks->currentText(); *exportproc<<"gpg"<<"--utf8-strings"; @@ -533,7 +533,7 @@ void keyServer::slotExport(TQStringList keyIds) *exportproc << "--status-fd=2" << "--keyserver" << keyserv << "--send-keys" << keyIds; TQObject::connect(exportproc, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(slotexportresult(TDEProcess *))); - TQObject::connect(exportproc, TQ_SIGNAL(readReady(KProcIO *)),this, TQ_SLOT(slotimportread(KProcIO *))); + TQObject::connect(exportproc, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(slotimportread(TDEProcIO *))); exportproc->start(TDEProcess::NotifyOnExit,true); TQApplication::setOverrideCursor(TQCursor(TQt::BusyCursor)); importpop = new TQDialog( this,0,true,TQt::WDestructiveClose); @@ -611,7 +611,7 @@ void keyServer::slotImport() keyNames=keyNames.simplifyWhiteSpace(); if ( keyNames.startsWith("0x") ) { - searchproc=new KProcIO(TQTextCodec::codecForLocale()); + searchproc=new TDEProcIO(TQTextCodec::codecForLocale()); *searchproc << "gpg"<<"--utf8-strings"<<"--no-secmem-warning"; if (KgpgInterface::getGpgVersion() < 210 ) { // was removed in 2.1 if (page->cBproxyI->isChecked()) { @@ -632,7 +632,7 @@ void keyServer::slotImport() *searchproc<< TQString(TQFile::encodeName(fkeyNames)); } TQObject::connect(searchproc, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(slotksearchprocresult(TDEProcess *))); - TQObject::connect(searchproc, TQ_SIGNAL(readReady(KProcIO *)),this, TQ_SLOT(slotsearchread(KProcIO *))); + TQObject::connect(searchproc, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(slotsearchread(TDEProcIO *))); TQApplication::setOverrideCursor(TQCursor(TQt::BusyCursor)); searchproc->setUsePty(TDEProcess::Stdout,false); // EKO: very important line - it took me a day to find out why I should use it searchproc->start(TDEProcess::Block,true); @@ -646,7 +646,7 @@ void keyServer::slotImport() keysToImport = TQStringList::split(" ",keyNames,true); } - importproc=new KProcIO(TQTextCodec::codecForLocale()); + importproc=new TDEProcIO(TQTextCodec::codecForLocale()); *importproc<<"gpg"<<"--utf8-strings"; if (KgpgInterface::getGpgVersion() < 210 ) { // was removed in 2.1 if (page->cBproxyI->isChecked()) { @@ -664,7 +664,7 @@ void keyServer::slotImport() } TQObject::connect(importproc, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(slotimportresult(TDEProcess *))); - TQObject::connect(importproc, TQ_SIGNAL(readReady(KProcIO *)),this, TQ_SLOT(slotimportread(KProcIO *))); + TQObject::connect(importproc, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(slotimportread(TDEProcIO *))); importproc->start(TDEProcess::NotifyOnExit,true); importproc->closeWhenDone(); @@ -831,7 +831,7 @@ void keyServer::slotimportresult(TDEProcess*) if (autoCloseWindow) close(); } -void keyServer::slotimportread(KProcIO *p) +void keyServer::slotimportread(TDEProcIO *p) { TQString required; while (p->readln(required,true)!=-1) |