summaryrefslogtreecommitdiffstats
path: root/certmanager/lib/backends/chiasmus/symcryptrunprocessbase.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 /certmanager/lib/backends/chiasmus/symcryptrunprocessbase.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 'certmanager/lib/backends/chiasmus/symcryptrunprocessbase.cpp')
-rw-r--r--certmanager/lib/backends/chiasmus/symcryptrunprocessbase.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/certmanager/lib/backends/chiasmus/symcryptrunprocessbase.cpp b/certmanager/lib/backends/chiasmus/symcryptrunprocessbase.cpp
index 1b8627252..3dc3b9370 100644
--- a/certmanager/lib/backends/chiasmus/symcryptrunprocessbase.cpp
+++ b/certmanager/lib/backends/chiasmus/symcryptrunprocessbase.cpp
@@ -36,15 +36,15 @@
#include <kdebug.h>
#include <kshell.h>
-#include <qtimer.h>
-#include <qfile.h>
+#include <tqtimer.h>
+#include <tqfile.h>
#include <cstring>
-Kleo::SymCryptRunProcessBase::SymCryptRunProcessBase( const QString & class_, const QString & program,
- const QString & keyFile, const QString & options,
+Kleo::SymCryptRunProcessBase::SymCryptRunProcessBase( const TQString & class_, const TQString & program,
+ const TQString & keyFile, const TQString & options,
Operation mode,
- QObject * parent, const char * name )
+ TQObject * parent, const char * name )
: KProcess( parent, name ),
mOperation( mode ), mOptions( options )
{
@@ -57,15 +57,15 @@ Kleo::SymCryptRunProcessBase::SymCryptRunProcessBase( const QString & class_, co
Kleo::SymCryptRunProcessBase::~SymCryptRunProcessBase() {}
-bool Kleo::SymCryptRunProcessBase::launch( const QByteArray & input, RunMode rm ) {
- connect( this, SIGNAL(receivedStdout(KProcess*,char*,int)),
- this, SLOT(slotReceivedStdout(KProcess*,char*,int)) );
- connect( this, SIGNAL(receivedStderr(KProcess*,char*,int)),
- this, SLOT(slotReceivedStderr(KProcess*,char*,int)) );
+bool Kleo::SymCryptRunProcessBase::launch( const TQByteArray & input, RunMode rm ) {
+ connect( this, TQT_SIGNAL(receivedStdout(KProcess*,char*,int)),
+ this, TQT_SLOT(slotReceivedStdout(KProcess*,char*,int)) );
+ connect( this, TQT_SIGNAL(receivedStderr(KProcess*,char*,int)),
+ this, TQT_SLOT(slotReceivedStderr(KProcess*,char*,int)) );
if ( rm == Block ) {
KTempFile tempfile;
tempfile.setAutoDelete( true );
- if ( QFile * file = tempfile.file() )
+ if ( TQFile * file = tempfile.file() )
file->writeBlock( input );
else
return false;
@@ -80,7 +80,7 @@ bool Kleo::SymCryptRunProcessBase::launch( const QByteArray & input, RunMode rm
return ok;
mInput = input.copy();
writeStdin( mInput.begin(), mInput.size() );
- connect( this, SIGNAL(wroteStdin(KProcess*)), this, SLOT(closeStdin()) );
+ connect( this, TQT_SIGNAL(wroteStdin(KProcess*)), this, TQT_SLOT(closeStdin()) );
return true;
}
}
@@ -88,7 +88,7 @@ bool Kleo::SymCryptRunProcessBase::launch( const QByteArray & input, RunMode rm
void Kleo::SymCryptRunProcessBase::addOptions() {
if ( !mOptions.isEmpty() )
{
- const QStringList args = KShell::splitArgs( mOptions );
+ const TQStringList args = KShell::splitArgs( mOptions );
*this << "--" << args;
}
}
@@ -103,7 +103,7 @@ void Kleo::SymCryptRunProcessBase::slotReceivedStdout( KProcess * proc, char * b
void Kleo::SymCryptRunProcessBase::slotReceivedStderr( KProcess * proc, char * buf, int len ) {
Q_ASSERT( proc == this );
if ( len > 0 )
- mStderr += QString::fromLocal8Bit( buf, len );
+ mStderr += TQString::fromLocal8Bit( buf, len );
}
#include "symcryptrunprocessbase.moc"