summaryrefslogtreecommitdiffstats
path: root/libkpgp/kpgpbase.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /libkpgp/kpgpbase.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkpgp/kpgpbase.cpp')
-rw-r--r--libkpgp/kpgpbase.cpp30
1 files changed, 15 insertions, 15 deletions
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 <sys/wait.h> /* waitpid */
#include <errno.h>
-#include <qapplication.h>
+#include <tqapplication.h>
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();
}