summaryrefslogtreecommitdiffstats
path: root/certmanager/lib/backends/qgpgme/qgpgmebackend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'certmanager/lib/backends/qgpgme/qgpgmebackend.cpp')
-rw-r--r--certmanager/lib/backends/qgpgme/qgpgmebackend.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/certmanager/lib/backends/qgpgme/qgpgmebackend.cpp b/certmanager/lib/backends/qgpgme/qgpgmebackend.cpp
index 8256522a..5905bc5e 100644
--- a/certmanager/lib/backends/qgpgme/qgpgmebackend.cpp
+++ b/certmanager/lib/backends/qgpgme/qgpgmebackend.cpp
@@ -45,8 +45,8 @@
#include <klocale.h>
#include <kstandarddirs.h>
-#include <qfile.h>
-#include <qstring.h>
+#include <tqfile.h>
+#include <tqstring.h>
Kleo::QGpgMEBackend::QGpgMEBackend()
: Kleo::CryptoBackend(),
@@ -63,11 +63,11 @@ Kleo::QGpgMEBackend::~QGpgMEBackend() {
delete mSMIMEProtocol; mSMIMEProtocol = 0;
}
-QString Kleo::QGpgMEBackend::name() const {
+TQString Kleo::QGpgMEBackend::name() const {
return "gpgme";
}
-QString Kleo::QGpgMEBackend::displayName() const {
+TQString Kleo::QGpgMEBackend::displayName() const {
return i18n( "GpgME" );
}
@@ -80,7 +80,7 @@ Kleo::CryptoConfig * Kleo::QGpgMEBackend::config() const {
return mCryptoConfig;
}
-static bool check( GpgME::Context::Protocol proto, QString * reason ) {
+static bool check( GpgME::Context::Protocol proto, TQString * reason ) {
if ( !GpgME::checkEngine( proto ) )
return true;
if ( !reason )
@@ -90,25 +90,25 @@ static bool check( GpgME::Context::Protocol proto, QString * reason ) {
if ( ei.isNull() )
*reason = i18n("GPGME was compiled without support for %1.").arg( proto == GpgME::Context::CMS ? "S/MIME" : "OpenPGP" );
else if ( ei.fileName() && !ei.version() )
- *reason = i18n("Engine %1 is not installed properly.").arg( QFile::decodeName( ei.fileName() ) );
+ *reason = i18n("Engine %1 is not installed properly.").arg( TQFile::decodeName( ei.fileName() ) );
else if ( ei.fileName() && ei.version() && ei.requiredVersion() )
*reason = i18n("Engine %1 version %2 installed, "
"but at least version %3 is required.")
- .arg( QFile::decodeName( ei.fileName() ), ei.version(), ei.requiredVersion() );
+ .arg( TQFile::decodeName( ei.fileName() ), ei.version(), ei.requiredVersion() );
else
*reason = i18n("Unknown problem with engine for protocol %1.").arg( proto == GpgME::Context::CMS ? "S/MIME" : "OpenPGP" );
return false;
}
-bool Kleo::QGpgMEBackend::checkForOpenPGP( QString * reason ) const {
+bool Kleo::QGpgMEBackend::checkForOpenPGP( TQString * reason ) const {
return check( GpgME::Context::OpenPGP, reason );
}
-bool Kleo::QGpgMEBackend::checkForSMIME( QString * reason ) const {
+bool Kleo::QGpgMEBackend::checkForSMIME( TQString * reason ) const {
return check( GpgME::Context::CMS, reason );
}
-bool Kleo::QGpgMEBackend::checkForProtocol( const char * name, QString * reason ) const {
+bool Kleo::QGpgMEBackend::checkForProtocol( const char * name, TQString * reason ) const {
if ( qstricmp( name, OpenPGP ) == 0 )
return check( GpgME::Context::OpenPGP, reason );
if ( qstricmp( name, SMIME ) == 0 )