diff options
Diffstat (limited to 'tdenewstuff')
-rw-r--r-- | tdenewstuff/security.cpp | 20 | ||||
-rw-r--r-- | tdenewstuff/security.h | 4 |
2 files changed, 12 insertions, 12 deletions
diff --git a/tdenewstuff/security.cpp b/tdenewstuff/security.cpp index 6952f1ec6..07cb798c0 100644 --- a/tdenewstuff/security.cpp +++ b/tdenewstuff/security.cpp @@ -26,7 +26,7 @@ #include <kmdcodec.h> #include <tdemessagebox.h> #include <kpassdlg.h> -#include <kprocio.h> +#include <tdeprocio.h> //app includes #include "security.h" @@ -55,10 +55,10 @@ void Security::readKeys() } m_runMode = List; m_keys.clear(); - KProcIO *readProcess=new KProcIO(); + TDEProcIO *readProcess=new TDEProcIO(); *readProcess << "gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--with-colon"<<"--list-keys"; connect(readProcess, TQ_SIGNAL(processExited(TDEProcess *)), this, TQ_SLOT(slotProcessExited(TDEProcess *))); - connect(readProcess, TQ_SIGNAL(readReady(KProcIO *)) ,this, TQ_SLOT(slotDataArrived(KProcIO *))); + connect(readProcess, TQ_SIGNAL(readReady(TDEProcIO *)) ,this, TQ_SLOT(slotDataArrived(TDEProcIO *))); if (!readProcess->start(TDEProcess::NotifyOnExit, true)) KMessageBox::error(0L, i18n("<qt>Cannot start <i>gpg</i> and retrieve the available keys. Make sure that <i>gpg</i> is installed, otherwise verification of downloaded resources will not be possible.</qt>")); else @@ -73,10 +73,10 @@ void Security::readSecretKeys() return; } m_runMode = ListSecret; - KProcIO *readProcess=new KProcIO(); + TDEProcIO *readProcess=new TDEProcIO(); *readProcess << "gpg"<<"--no-secmem-warning"<<"--no-tty"<<"--with-colon"<<"--list-secret-keys"; connect(readProcess, TQ_SIGNAL(processExited(TDEProcess *)), this, TQ_SLOT(slotProcessExited(TDEProcess *))); - connect(readProcess, TQ_SIGNAL(readReady(KProcIO *)) ,this, TQ_SLOT(slotDataArrived(KProcIO *))); + connect(readProcess, TQ_SIGNAL(readReady(TDEProcIO *)) ,this, TQ_SLOT(slotDataArrived(TDEProcIO *))); if (readProcess->start(TDEProcess::NotifyOnExit, true)) m_gpgRunning = true; } @@ -98,7 +98,7 @@ void Security::slotProcessExited(TDEProcess *process) delete process; } -void Security::slotDataArrived(KProcIO *procIO) +void Security::slotDataArrived(TDEProcIO *procIO) { TQString data; while (procIO->readln(data, true) != -1) @@ -246,10 +246,10 @@ void Security::slotCheckValidity() m_signatureKey.trusted = false; //verify the signature - KProcIO *verifyProcess=new KProcIO(); + TDEProcIO *verifyProcess=new TDEProcIO(); *verifyProcess<<"gpg"<<"--no-secmem-warning"<<"--status-fd=2"<<"--command-fd=0"<<"--verify" << f.dirPath() + "/signature"<< m_fileName; connect(verifyProcess, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(slotProcessExited(TDEProcess *))); - connect(verifyProcess, TQ_SIGNAL(readReady(KProcIO *)),this, TQ_SLOT(slotDataArrived(KProcIO *))); + connect(verifyProcess, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(slotDataArrived(TDEProcIO *))); if (verifyProcess->start(TDEProcess::NotifyOnExit,true)) m_gpgRunning = true; else @@ -326,10 +326,10 @@ void Security::slotSignFile() m_secretKey = secretKeys[0]; //verify the signature - KProcIO *signProcess=new KProcIO(); + TDEProcIO *signProcess=new TDEProcIO(); *signProcess<<"gpg"<<"--no-secmem-warning"<<"--status-fd=2"<<"--command-fd=0"<<"--no-tty"<<"--detach-sign" << "-u" << m_secretKey << "-o" << f.dirPath() + "/signature" << m_fileName; connect(signProcess, TQ_SIGNAL(processExited(TDEProcess *)),this, TQ_SLOT(slotProcessExited(TDEProcess *))); - connect(signProcess, TQ_SIGNAL(readReady(KProcIO *)),this, TQ_SLOT(slotDataArrived(KProcIO *))); + connect(signProcess, TQ_SIGNAL(readReady(TDEProcIO *)),this, TQ_SLOT(slotDataArrived(TDEProcIO *))); m_runMode = Sign; if (signProcess->start(TDEProcess::NotifyOnExit,true)) m_gpgRunning = true; diff --git a/tdenewstuff/security.h b/tdenewstuff/security.h index ac3f4f1a0..fc3e298c6 100644 --- a/tdenewstuff/security.h +++ b/tdenewstuff/security.h @@ -21,7 +21,7 @@ #include <tqmap.h> #include <tqobject.h> -class KProcIO; +class TDEProcIO; class TDEProcess; struct KeyStruct { @@ -121,7 +121,7 @@ private: private slots: void slotProcessExited(TDEProcess *process); - void slotDataArrived(KProcIO *process); + void slotDataArrived(TDEProcIO *process); signals: /** Sent when the validity check is done. |