diff options
author | Michele Calgaro <[email protected]> | 2024-12-16 13:36:12 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-12-16 13:36:12 +0900 |
commit | ae74d6d4399739c8dd406a71ec5080849a13e0d6 (patch) | |
tree | ee45d8cbdbd0a04e6baa172b7a1aedb822ebacc8 /certmanager/lib/backends/qgpgme | |
parent | 2aa402ea78930053854ed9468d7557b15d563713 (diff) | |
download | tdepim-ae74d6d4399739c8dd406a71ec5080849a13e0d6.tar.gz tdepim-ae74d6d4399739c8dd406a71ec5080849a13e0d6.zip |
Use TDEProcIO class
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'certmanager/lib/backends/qgpgme')
-rw-r--r-- | certmanager/lib/backends/qgpgme/qgpgmecryptoconfig.cpp | 20 | ||||
-rw-r--r-- | certmanager/lib/backends/qgpgme/qgpgmecryptoconfig.h | 6 |
2 files changed, 13 insertions, 13 deletions
diff --git a/certmanager/lib/backends/qgpgme/qgpgmecryptoconfig.cpp b/certmanager/lib/backends/qgpgme/qgpgmecryptoconfig.cpp index 2b81c6b1a..c77dcb208 100644 --- a/certmanager/lib/backends/qgpgme/qgpgmecryptoconfig.cpp +++ b/certmanager/lib/backends/qgpgme/qgpgmecryptoconfig.cpp @@ -32,7 +32,7 @@ #include "qgpgmecryptoconfig.h" #include <kdebug.h> -#include <kprocio.h> +#include <tdeprocio.h> #include <errno.h> #include <tdemessagebox.h> #include <tdelocale.h> @@ -71,12 +71,12 @@ void QGpgMECryptoConfig::runGpgConf( bool showErrors ) { // Run gpgconf --list-components to make the list of components - KProcIO proc( TQTextCodec::codecForName( "utf8" ) ); + TDEProcIO proc( TQTextCodec::codecForName( "utf8" ) ); proc << "gpgconf"; // must be in the PATH proc << "--list-components"; - TQObject::connect( &proc, TQ_SIGNAL( readReady(KProcIO*) ), - this, TQ_SLOT( slotCollectStdOut(KProcIO*) ) ); + TQObject::connect( &proc, TQ_SIGNAL( readReady(TDEProcIO*) ), + this, TQ_SLOT( slotCollectStdOut(TDEProcIO*) ) ); // run the process: int rc = 0; @@ -100,7 +100,7 @@ void QGpgMECryptoConfig::runGpgConf( bool showErrors ) mParsed = true; } -void QGpgMECryptoConfig::slotCollectStdOut( KProcIO* proc ) +void QGpgMECryptoConfig::slotCollectStdOut( TDEProcIO* proc ) { TQString line; int result; @@ -166,15 +166,15 @@ void QGpgMECryptoConfigComponent::runGpgConf() { // Run gpgconf --list-options <component>, and create all groups and entries for that component - KProcIO proc( TQTextCodec::codecForName( "utf8" ) ); + TDEProcIO proc( TQTextCodec::codecForName( "utf8" ) ); proc << "gpgconf"; // must be in the PATH proc << "--list-options"; proc << mName; //kdDebug(5150) << "Running gpgconf --list-options " << mName << endl; - TQObject::connect( &proc, TQ_SIGNAL( readReady(KProcIO*) ), - this, TQ_SLOT( slotCollectStdOut(KProcIO*) ) ); + TQObject::connect( &proc, TQ_SIGNAL( readReady(TDEProcIO*) ), + this, TQ_SLOT( slotCollectStdOut(TDEProcIO*) ) ); mCurrentGroup = 0; // run the process: @@ -192,7 +192,7 @@ void QGpgMECryptoConfigComponent::runGpgConf() } } -void QGpgMECryptoConfigComponent::slotCollectStdOut( KProcIO* proc ) +void QGpgMECryptoConfigComponent::slotCollectStdOut( TDEProcIO* proc ) { TQString line; int result; @@ -265,7 +265,7 @@ void QGpgMECryptoConfigComponent::sync( bool runtime ) line += ":16:"; } line += '\n'; - TQCString line8bit = line.utf8(); // encode with utf8, and KProcIO uses utf8 when reading. + TQCString line8bit = line.utf8(); // encode with utf8, and TDEProcIO uses utf8 when reading. tmpFile.file()->writeBlock( line8bit.data(), line8bit.size()-1 /*no 0*/ ); dirtyEntries.append( it.current() ); } diff --git a/certmanager/lib/backends/qgpgme/qgpgmecryptoconfig.h b/certmanager/lib/backends/qgpgme/qgpgmecryptoconfig.h index 710fa1686..5fbc9f639 100644 --- a/certmanager/lib/backends/qgpgme/qgpgmecryptoconfig.h +++ b/certmanager/lib/backends/qgpgme/qgpgmecryptoconfig.h @@ -38,7 +38,7 @@ #include <tqstringlist.h> #include <tqobject.h> #include <tqvariant.h> -class KProcIO; +class TDEProcIO; class QGpgMECryptoConfigComponent; class QGpgMECryptoConfigEntry; @@ -65,7 +65,7 @@ public: virtual void sync( bool runtime ); private slots: - void slotCollectStdOut( KProcIO* proc ); + void slotCollectStdOut( TDEProcIO* proc ); private: /// @param showErrors if true, a messagebox will be shown if e.g. gpgconf wasn't found void runGpgConf( bool showErrors ); @@ -95,7 +95,7 @@ public: void sync( bool runtime ); private slots: - void slotCollectStdOut( KProcIO* proc ); + void slotCollectStdOut( TDEProcIO* proc ); private: void runGpgConf(); |