summaryrefslogtreecommitdiffstats
path: root/certmanager/lib/backends/qgpgme/gnupgprocessbase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'certmanager/lib/backends/qgpgme/gnupgprocessbase.cpp')
-rw-r--r--certmanager/lib/backends/qgpgme/gnupgprocessbase.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/certmanager/lib/backends/qgpgme/gnupgprocessbase.cpp b/certmanager/lib/backends/qgpgme/gnupgprocessbase.cpp
index 2d3ca7409..9e7461791 100644
--- a/certmanager/lib/backends/qgpgme/gnupgprocessbase.cpp
+++ b/certmanager/lib/backends/qgpgme/gnupgprocessbase.cpp
@@ -35,9 +35,9 @@
#include <kdebug.h>
#include <kurl.h>
-#include <qsocketnotifier.h>
-#include <qtextcodec.h>
-#include <qstringlist.h>
+#include <tqsocketnotifier.h>
+#include <tqtextcodec.h>
+#include <tqstringlist.h>
#include <unistd.h>
#include <fcntl.h>
@@ -51,12 +51,12 @@ struct Kleo::GnuPGProcessBase::Private {
bool useStatusFD;
int statusFD[2];
- QSocketNotifier * statnot;
- QCString statusBuffer;
+ TQSocketNotifier * statnot;
+ TQCString statusBuffer;
};
-Kleo::GnuPGProcessBase::GnuPGProcessBase( QObject * parent, const char * name )
+Kleo::GnuPGProcessBase::GnuPGProcessBase( TQObject * parent, const char * name )
: KProcess( parent, name )
{
d = new Private();
@@ -84,7 +84,7 @@ bool Kleo::GnuPGProcessBase::start( RunMode runmode, Communication comm ) {
::fcntl( d->statusFD[0], F_SETFD, FD_CLOEXEC );
::fcntl( d->statusFD[1], F_SETFD, FD_CLOEXEC );
if ( !arguments.empty() ) {
- QValueList<QCString>::iterator it = arguments.begin();
+ TQValueList<TQCString>::iterator it = arguments.begin();
++it;
arguments.insert( it, "--status-fd" );
char buf[25];
@@ -112,8 +112,8 @@ int Kleo::GnuPGProcessBase::setupCommunication( Communication comm ) {
int Kleo::GnuPGProcessBase::commSetupDoneP() {
if ( d->useStatusFD ) {
::close( d->statusFD[1] ); // close the input end of the pipe, we're the reader
- d->statnot = new QSocketNotifier( d->statusFD[0], QSocketNotifier::Read, this );
- connect( d->statnot, SIGNAL(activated(int)), SLOT(slotChildStatus(int)) );
+ d->statnot = new TQSocketNotifier( d->statusFD[0], TQSocketNotifier::Read, this );
+ connect( d->statnot, TQT_SIGNAL(activated(int)), TQT_SLOT(slotChildStatus(int)) );
}
return KProcess::commSetupDoneP();
}
@@ -149,7 +149,7 @@ int Kleo::GnuPGProcessBase::childStatus( int fd ) {
return len;
}
-static QString fromHexEscapedUtf8( const QCString & str ) {
+static TQString fromHexEscapedUtf8( const TQCString & str ) {
return KURL::decode_string( str.data(), 106 /* utf-8 */ );
}
@@ -160,7 +160,7 @@ void Kleo::GnuPGProcessBase::parseStatusOutput() {
int lineStart = 0;
for ( int lineEnd = d->statusBuffer.find( '\n' ) ; lineEnd >= 0 ; lineEnd = d->statusBuffer.find( '\n', lineStart = lineEnd+1 ) ) {
// get next line:
- const QCString line = d->statusBuffer.mid( lineStart, lineEnd - lineStart ).stripWhiteSpace();
+ const TQCString line = d->statusBuffer.mid( lineStart, lineEnd - lineStart ).stripWhiteSpace();
if ( line.isEmpty() )
continue;
// check status token
@@ -170,17 +170,17 @@ void Kleo::GnuPGProcessBase::parseStatusOutput() {
continue;
}
// remove status token:
- const QCString command = line.mid( startTokenLen ).simplifyWhiteSpace() + ' ';
+ const TQCString command = line.mid( startTokenLen ).simplifyWhiteSpace() + ' ';
if ( command == " " ) {
kdDebug( 5150 ) << "Kleo::GnuPGProcessBase::childStatus: status-fd protocol error: line without content." << endl;
continue;
}
// split into base and args
- QString cmd;
- QStringList args;
+ TQString cmd;
+ TQStringList args;
int tagStart = 0;
for ( int tagEnd = command.find( ' ' ) ; tagEnd >= 0 ; tagEnd = command.find( ' ', tagStart = tagEnd+1 ) ) {
- const QCString tag = command.mid( tagStart, tagEnd - tagStart );
+ const TQCString tag = command.mid( tagStart, tagEnd - tagStart );
if ( cmd.isNull() )
cmd = fromHexEscapedUtf8( tag );
else