From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkpgp/kpgpbase.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'libkpgp/kpgpbase.cpp') diff --git a/libkpgp/kpgpbase.cpp b/libkpgp/kpgpbase.cpp index 39762333d..fa444be7f 100644 --- a/libkpgp/kpgpbase.cpp +++ b/libkpgp/kpgpbase.cpp @@ -31,7 +31,7 @@ #include /* waitpid */ #include -#include +#include namespace Kpgp { @@ -50,10 +50,10 @@ Base::~Base() void Base::clear() { - input = QCString(); - output = QCString(); - error = QCString(); - errMsg = QString::null; + input = TQCString(); + output = TQCString(); + error = TQCString(); + errMsg = TQString::null; status = OK; } @@ -85,7 +85,7 @@ Base::run( const char *cmd, const char *passphrase, bool onlyReadFromPGP ) close(ppass[1]); // tell pgp which fd to use for the passphrase - QCString tmp; + TQCString tmp; tmp.sprintf("%d",ppass[0]); ::setenv("PGPPASSFD",tmp.data(),1); @@ -98,7 +98,7 @@ Base::run( const char *cmd, const char *passphrase, bool onlyReadFromPGP ) //Uncomment these lines for testing only! Doing so will decrease security! kdDebug(5100) << "pgp cmd = " << cmd << endl; - //kdDebug(5100) << "pgp input = " << QString(input) + //kdDebug(5100) << "pgp input = " << TQString(input) // << "input length = " << input.length() << endl; error = ""; @@ -108,7 +108,7 @@ Base::run( const char *cmd, const char *passphrase, bool onlyReadFromPGP ) pipe(pout); pipe(perr); - QApplication::flushX(); + TQApplication::flushX(); if(!(child_pid = fork())) { /*We're the child.*/ @@ -362,7 +362,7 @@ Base::run( const char *cmd, const char *passphrase, bool onlyReadFromPGP ) } //Uncomment these lines for testing only! Doing so will decrease security! - //kdDebug(5100) << "pgp output = " << QString(output) << endl; + //kdDebug(5100) << "pgp output = " << TQString(output) << endl; //kdDebug(5100) << "pgp error = " << error << endl; /* Make the information visible, so that a user can @@ -411,7 +411,7 @@ Base::runGpg( const char *cmd, const char *passphrase, bool onlyReadFromGnuPG ) //Uncomment these lines for testing only! Doing so will decrease security! //kdDebug(5100) << "pgp cmd = " << cmd << endl; - //kdDebug(5100) << "pgp input = " << QString(input) + //kdDebug(5100) << "pgp input = " << TQString(input) // << "input length = " << input.length() << endl; error = ""; @@ -448,7 +448,7 @@ Base::runGpg( const char *cmd, const char *passphrase, bool onlyReadFromGnuPG ) snprintf(gpgcmd, 1023, "LANGUAGE=C gpg %s",cmd); } - QApplication::flushX(); + TQApplication::flushX(); if(!(child_pid = fork())) { /*We're the child.*/ @@ -655,7 +655,7 @@ Base::runGpg( const char *cmd, const char *passphrase, bool onlyReadFromGnuPG ) } //Uncomment these lines for testing only! Doing so will decrease security! - //kdDebug(5100) << "gpg stdout:\n" << QString(output) << endl; + //kdDebug(5100) << "gpg stdout:\n" << TQString(output) << endl; // Make the information visible, so that a user can // get to know what's going on during the gpg calls. @@ -668,8 +668,8 @@ Base::runGpg( const char *cmd, const char *passphrase, bool onlyReadFromGnuPG ) QCString Base::addUserId() { - QCString cmd; - QCString pgpUser = Module::getKpgp()->user(); + TQCString cmd; + TQCString pgpUser = Module::getKpgp()->user(); if(!pgpUser.isEmpty()) { @@ -677,7 +677,7 @@ Base::addUserId() cmd += pgpUser; return cmd; } - return QCString(); + return TQCString(); } -- cgit v1.2.1