summaryrefslogtreecommitdiffstats
path: root/certmanager/lib/kleo/enum.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'certmanager/lib/kleo/enum.cpp')
-rw-r--r--certmanager/lib/kleo/enum.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/certmanager/lib/kleo/enum.cpp b/certmanager/lib/kleo/enum.cpp
index efa4cfaa3..ca842807f 100644
--- a/certmanager/lib/kleo/enum.cpp
+++ b/certmanager/lib/kleo/enum.cpp
@@ -34,8 +34,8 @@
#include <klocale.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
static const struct {
Kleo::CryptoMessageFormat format;
@@ -67,34 +67,34 @@ const char * Kleo::cryptoMessageFormatToString( Kleo::CryptoMessageFormat f ) {
return 0;
}
-QStringList Kleo::cryptoMessageFormatsToStringList( unsigned int f ) {
- QStringList result;
+TQStringList Kleo::cryptoMessageFormatsToStringList( unsigned int f ) {
+ TQStringList result;
for ( unsigned int i = 0 ; i < numCryptoMessageFormats ; ++i )
if ( f & cryptoMessageFormats[i].format )
result.push_back( cryptoMessageFormats[i].configName );
return result;
}
-QString Kleo::cryptoMessageFormatToLabel( Kleo::CryptoMessageFormat f ) {
+TQString Kleo::cryptoMessageFormatToLabel( Kleo::CryptoMessageFormat f ) {
if ( f == AutoFormat )
return i18n("Any");
for ( unsigned int i = 0 ; i < numCryptoMessageFormats ; ++i )
if ( f == cryptoMessageFormats[i].format )
return i18n( cryptoMessageFormats[i].displayName );
- return QString::null;
+ return TQString::null;
}
-Kleo::CryptoMessageFormat Kleo::stringToCryptoMessageFormat( const QString & s ) {
- const QString t = s.lower();
+Kleo::CryptoMessageFormat Kleo::stringToCryptoMessageFormat( const TQString & s ) {
+ const TQString t = s.lower();
for ( unsigned int i = 0 ; i < numCryptoMessageFormats ; ++i )
if ( t == cryptoMessageFormats[i].configName )
return cryptoMessageFormats[i].format;
return AutoFormat;
}
-unsigned int Kleo::stringListToCryptoMessageFormats( const QStringList & sl ) {
+unsigned int Kleo::stringListToCryptoMessageFormats( const TQStringList & sl ) {
unsigned int result = 0;
- for ( QStringList::const_iterator it = sl.begin() ; it != sl.end() ; ++it )
+ for ( TQStringList::const_iterator it = sl.begin() ; it != sl.end() ; ++it )
result |= stringToCryptoMessageFormat( *it );
return result;
}
@@ -120,7 +120,7 @@ const char* Kleo::encryptionPreferenceToString( EncryptionPreference pref )
return 0; // keep the compiler happy
}
-Kleo::EncryptionPreference Kleo::stringToEncryptionPreference( const QString& str )
+Kleo::EncryptionPreference Kleo::stringToEncryptionPreference( const TQString& str )
{
if ( str == "never" )
return NeverEncrypt;
@@ -135,7 +135,7 @@ Kleo::EncryptionPreference Kleo::stringToEncryptionPreference( const QString& st
return UnknownPreference;
}
-QString Kleo::encryptionPreferenceToLabel( EncryptionPreference pref )
+TQString Kleo::encryptionPreferenceToLabel( EncryptionPreference pref )
{
switch( pref ) {
case NeverEncrypt:
@@ -172,7 +172,7 @@ const char* Kleo::signingPreferenceToString( SigningPreference pref )
return 0; // keep the compiler happy
}
-Kleo::SigningPreference Kleo::stringToSigningPreference( const QString& str )
+Kleo::SigningPreference Kleo::stringToSigningPreference( const TQString& str )
{
if ( str == "never" )
return NeverSign;
@@ -187,7 +187,7 @@ Kleo::SigningPreference Kleo::stringToSigningPreference( const QString& str )
return UnknownSigningPreference;
}
-QString Kleo::signingPreferenceToLabel( SigningPreference pref )
+TQString Kleo::signingPreferenceToLabel( SigningPreference pref )
{
switch( pref ) {
case NeverSign: