summaryrefslogtreecommitdiffstats
path: root/certmanager/lib/backends/qgpgme/qgpgmejob.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/qgpgme/qgpgmejob.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/qgpgme/qgpgmejob.cpp')
-rw-r--r--certmanager/lib/backends/qgpgme/qgpgmejob.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/certmanager/lib/backends/qgpgme/qgpgmejob.cpp b/certmanager/lib/backends/qgpgme/qgpgmejob.cpp
index 897e5ff7c..72f9f77ff 100644
--- a/certmanager/lib/backends/qgpgme/qgpgmejob.cpp
+++ b/certmanager/lib/backends/qgpgme/qgpgmejob.cpp
@@ -49,8 +49,8 @@
#include <klocale.h>
#include <kstandarddirs.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
#include <algorithm>
@@ -95,8 +95,8 @@ Kleo::QGpgMEJob::QGpgMEJob( Kleo::Job * _this, GpgME::Context * context )
{
InvarianceChecker check( this );
assert( context );
- QObject::connect( QGpgME::EventLoopInteractor::instance(), SIGNAL(aboutToDestroy()),
- _this, SLOT(slotCancel()) );
+ TQObject::connect( QGpgME::EventLoopInteractor::instance(), TQT_SIGNAL(aboutToDestroy()),
+ _this, TQT_SLOT(slotCancel()) );
context->setProgressProvider( this );
// (mmutz) work around a gpgme bug in versions at least <= 0.9.0.
// These versions will return GPG_ERR_NOT_IMPLEMENTED from
@@ -151,19 +151,19 @@ void Kleo::QGpgMEJob::deleteAllPatterns() {
void Kleo::QGpgMEJob::hookupContextToEventLoopInteractor() {
mCtx->setManagedByEventLoopInteractor( true );
- QObject::connect( QGpgME::EventLoopInteractor::instance(),
- SIGNAL(operationDoneEventSignal(GpgME::Context*,const GpgME::Error&)),
- mThis, SLOT(slotOperationDoneEvent(GpgME::Context*,const GpgME::Error&)) );
+ TQObject::connect( QGpgME::EventLoopInteractor::instance(),
+ TQT_SIGNAL(operationDoneEventSignal(GpgME::Context*,const GpgME::Error&)),
+ mThis, TQT_SLOT(slotOperationDoneEvent(GpgME::Context*,const GpgME::Error&)) );
}
-void Kleo::QGpgMEJob::setPatterns( const QStringList & sl, bool allowEmpty ) {
+void Kleo::QGpgMEJob::setPatterns( const TQStringList & sl, bool allowEmpty ) {
InvarianceChecker check( this );
deleteAllPatterns();
// create a new null-terminated C array of char* from patterns:
mPatterns = new const char*[ sl.size() + 1 ];
const char* * pat_it = mPatterns;
mNumPatterns = 0;
- for ( QStringList::const_iterator it = sl.begin() ; it != sl.end() ; ++it ) {
+ for ( TQStringList::const_iterator it = sl.begin() ; it != sl.end() ; ++it ) {
if ( (*it).isNull() )
continue;
if ( (*it).isEmpty() && !allowEmpty )
@@ -222,7 +222,7 @@ GpgME::Error Kleo::QGpgMEJob::setSigningKeys( const std::vector<GpgME::Key> & si
return 0;
}
-void Kleo::QGpgMEJob::createInData( const QByteArray & in ) {
+void Kleo::QGpgMEJob::createInData( const TQByteArray & in ) {
mInDataDataProvider = new QGpgME::QByteArrayDataProvider( in );
mInData = new GpgME::Data( mInDataDataProvider );
assert( !mInData->isNull() );
@@ -236,16 +236,16 @@ void Kleo::QGpgMEJob::createOutData() {
static const unsigned int GetAuditLogFlags = GpgME::Context::AuditLogWithHelp|GpgME::Context::HtmlAuditLog;
-static QString audit_log_as_html( GpgME::Context * ctx ) {
+static TQString audit_log_as_html( GpgME::Context * ctx ) {
if ( !ctx )
- return QString();
+ return TQString();
QGpgME::QByteArrayDataProvider dp;
GpgME::Data data( &dp );
assert( !data.isNull() );
if ( const GpgME::Error err = ctx->getAuditLog( data, GetAuditLogFlags ) )
- return QString();
+ return TQString();
else
- return QString::fromUtf8( dp.data().data() );
+ return TQString::fromUtf8( dp.data().data() );
}
void Kleo::QGpgMEJob::doSlotOperationDoneEvent( GpgME::Context * context, const GpgME::Error & e ) {
@@ -272,14 +272,14 @@ void Kleo::QGpgMEJob::showProgress( const char * what, int type, int current, in
char * Kleo::QGpgMEJob::getPassphrase( const char * useridHint, const char * /*description*/,
bool previousWasBad, bool & canceled ) {
// DF: here, description is the key fingerprint, twice, then "17 0". Not really descriptive.
- // So I'm ignoring QString::fromLocal8Bit( description ) )
- QString msg = previousWasBad ?
+ // So I'm ignoring TQString::fromLocal8Bit( description ) )
+ TQString msg = previousWasBad ?
i18n( "You need a passphrase to unlock the secret key for user:<br/> %1 (retry)" ) :
i18n( "You need a passphrase to unlock the secret key for user:<br/> %1" );
- msg = msg.arg( QString::fromUtf8( useridHint ) ) + "<br/><br/>";
+ msg = msg.arg( TQString::fromUtf8( useridHint ) ) + "<br/><br/>";
msg.prepend( "<qt>" );
msg += i18n( "This dialog will reappear every time the passphrase is needed. For a more secure solution that also allows caching the passphrase, use gpg-agent." ) + "<br/>";
- const QString gpgAgent = KStandardDirs::findExe( "gpg-agent" );
+ const TQString gpgAgent = KStandardDirs::findExe( "gpg-agent" );
if ( !gpgAgent.isEmpty() ) {
msg += i18n( "gpg-agent was found in %1, but does not appear to be running." )
.arg( gpgAgent );
@@ -294,7 +294,7 @@ char * Kleo::QGpgMEJob::getPassphrase( const char * useridHint, const char * /*d
msg += "<br/><br/>";
msg += i18n( "Enter passphrase:" );
Kleo::PassphraseDialog dlg( msg, i18n("Passphrase Dialog") );
- if ( dlg.exec() != QDialog::Accepted ) {
+ if ( dlg.exec() != TQDialog::Accepted ) {
canceled = true;
return 0;
}