summaryrefslogtreecommitdiffstats
path: root/kgpg/listkeys.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kgpg/listkeys.cpp')
-rw-r--r--kgpg/listkeys.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kgpg/listkeys.cpp b/kgpg/listkeys.cpp
index a5dc54f..38f80ad 100644
--- a/kgpg/listkeys.cpp
+++ b/kgpg/listkeys.cpp
@@ -43,7 +43,7 @@
#include <tdetempfile.h>
#include <kdebug.h>
#include <tdeprocess.h>
-#include <kprocio.h>
+#include <tdeprocio.h>
#include <tqwidget.h>
#include <tdeaction.h>
#include <tqcheckbox.h>
@@ -1525,7 +1525,7 @@ void listKeys::slotexportsec()
if (fgpg.exists())
fgpg.remove();
- KProcIO *p=new KProcIO(TQTextCodec::codecForLocale());
+ TDEProcIO *p=new TDEProcIO(TQTextCodec::codecForLocale());
*p<<"gpg"<<"--no-tty"<<"--output"<<TQString(TQFile::encodeName(url.path()))<<"--armor"<<"--export-secret-keys"<<keysList2->currentItem()->text(6);
p->start(TDEProcess::Block);
@@ -1587,7 +1587,7 @@ void listKeys::slotexport()
expServer->slotExport(exportKeysList);
return;
}
- KProcIO *p=new KProcIO(TQTextCodec::codecForLocale());
+ TDEProcIO *p=new TDEProcIO(TQTextCodec::codecForLocale());
*p<<"gpg"<<"--no-tty";
if (page->checkFile->isChecked()) {
expname=page->newFilename->url().stripWhiteSpace();
@@ -1664,7 +1664,7 @@ void listKeys::slotShowPhoto()
TDETrader::OfferList offers = TDETrader::self()->query("image/jpeg", "Type == 'Application'");
KService::Ptr ptr = offers.first();
//KMessageBox::sorry(0,ptr->desktopEntryName());
- KProcIO *p=new KProcIO(TQTextCodec::codecForLocale());
+ TDEProcIO *p=new TDEProcIO(TQTextCodec::codecForLocale());
*p<<"gpg"<<"--no-tty"
<<"--photo-viewer"<<TQString(TQFile::encodeName(ptr->desktopEntryName()+" %i"))
<<"--edit-key"<<keysList2->currentItem()->parent()->text(6)
@@ -2267,7 +2267,7 @@ void listKeys::slotgenkey()
int iYpos=qRect.height()/2-pop->height()/2;
pop->move(iXpos,iYpos);
pop->setAutoDelete(false);
- KProcIO *proc=new KProcIO(TQTextCodec::codecForLocale());
+ TDEProcIO *proc=new TDEProcIO(TQTextCodec::codecForLocale());
message=TQString();
//*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";
@@ -2303,7 +2303,7 @@ void listKeys::slotgenkey()
if (kexp==4)
proc->writeStdin(TQString("Expire-Date:%1y").arg(knumb));
proc->writeStdin(TQString("%commit"));
- TQObject::connect(proc,TQ_SIGNAL(readReady(KProcIO *)),this,TQ_SLOT(readgenprocess(KProcIO *)));
+ TQObject::connect(proc,TQ_SIGNAL(readReady(TDEProcIO *)),this,TQ_SLOT(readgenprocess(TDEProcIO *)));
proc->closeWhenDone();
} else ////// start expert (=konsole) mode
{
@@ -2321,7 +2321,7 @@ void listKeys::slotgenkey()
}
}
-void listKeys::readgenprocess(KProcIO *p)
+void listKeys::readgenprocess(TDEProcIO *p)
{
// kdDebug(2100) << k_funcinfo << endl;
TQString required;
@@ -2339,20 +2339,20 @@ void listKeys::genover(TDEProcess *)
// kdDebug(2100) << k_funcinfo << endl;
newkeyID=TQString();
continueSearch=true;
- KProcIO *conprocess=new KProcIO(TQTextCodec::codecForLocale());
+ TDEProcIO *conprocess=new TDEProcIO(TQTextCodec::codecForLocale());
TQString fpropt = (KgpgInterface::getGpgVersion() < 210 ) ? "--fingerprint" : "--with-fingerprint";
*conprocess<< "gpg";
*conprocess<<"--no-secmem-warning"
<<"--with-colons"
<< fpropt
<<"--list-keys"<<newKeyName;
- TQObject::connect(conprocess,TQ_SIGNAL(readReady(KProcIO *)),this,TQ_SLOT(slotReadFingerProcess(KProcIO *)));
+ TQObject::connect(conprocess,TQ_SIGNAL(readReady(TDEProcIO *)),this,TQ_SLOT(slotReadFingerProcess(TDEProcIO *)));
TQObject::connect(conprocess, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(newKeyDone(TDEProcess *)));
conprocess->start(TDEProcess::NotifyOnExit,true);
}
-void listKeys::slotReadFingerProcess(KProcIO *p)
+void listKeys::slotReadFingerProcess(TDEProcIO *p)
{
// kdDebug(2100) << k_funcinfo << endl;
TQString outp;
@@ -2629,7 +2629,7 @@ TQPixmap KeyView::slotGetPhoto(TQString photoId,bool mini)
// kdDebug(2100) << k_funcinfo << endl;
KTempFile *phototmp=new KTempFile();
TQString popt="cp %i "+phototmp->name();
- KProcIO *p=new KProcIO(TQTextCodec::codecForLocale());
+ TDEProcIO *p=new TDEProcIO(TQTextCodec::codecForLocale());
*p<<"gpg"<<"--show-photos"
<<"--photo-viewer"<<TQString(TQFile::encodeName(popt))
<<"--list-keys"<<photoId;
@@ -2710,7 +2710,7 @@ void KeyView::expandKey(TQListViewItem *item)
kgpgphototmp=new KTempFile();
kgpgphototmp->setAutoDelete(true);
TQString pgpgOutput="cp %i "+kgpgphototmp->name();
- KProcIO *p=new KProcIO(TQTextCodec::codecForLocale());
+ TDEProcIO *p=new TDEProcIO(TQTextCodec::codecForLocale());
*p<<"gpg"<<"--no-tty"
<<"--photo-viewer"<<TQString(TQFile::encodeName(pgpgOutput))
<<"--edit-key"<<item->text(6)