summaryrefslogtreecommitdiffstats
path: root/certmanager/lib/tests/test_cryptoconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'certmanager/lib/tests/test_cryptoconfig.cpp')
-rw-r--r--certmanager/lib/tests/test_cryptoconfig.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/certmanager/lib/tests/test_cryptoconfig.cpp b/certmanager/lib/tests/test_cryptoconfig.cpp
index 17d1b4471..4aadb7ff1 100644
--- a/certmanager/lib/tests/test_cryptoconfig.cpp
+++ b/certmanager/lib/tests/test_cryptoconfig.cpp
@@ -50,20 +50,20 @@ int main( int argc, char** argv ) {
// Dynamic querying of the options
cout << "Components:" << endl;
- QStringList components = config->componentList();
+ TQStringList components = config->componentList();
- for( QStringList::Iterator compit = components.begin(); compit != components.end(); ++compit ) {
+ for( TQStringList::Iterator compit = components.begin(); compit != components.end(); ++compit ) {
cout << "Component " << (*compit).local8Bit() << ":" << endl;
const Kleo::CryptoConfigComponent* comp = config->component( *compit );
assert( comp );
- QStringList groups = comp->groupList();
- for( QStringList::Iterator groupit = groups.begin(); groupit != groups.end(); ++groupit ) {
+ TQStringList groups = comp->groupList();
+ for( TQStringList::Iterator groupit = groups.begin(); groupit != groups.end(); ++groupit ) {
const Kleo::CryptoConfigGroup* group = comp->group( *groupit );
assert( group );
cout << " Group " << (*groupit).local8Bit() << ": descr=\"" << group->description().local8Bit() << "\""
<< " level=" << group->level() << endl;
- QStringList entries = group->entryList();
- for( QStringList::Iterator entryit = entries.begin(); entryit != entries.end(); ++entryit ) {
+ TQStringList entries = group->entryList();
+ for( TQStringList::Iterator entryit = entries.begin(); entryit != entries.end(); ++entryit ) {
const Kleo::CryptoConfigEntry* entry = group->entry( *entryit );
assert( entry );
cout << " Entry " << (*entryit).local8Bit() << ":"
@@ -101,20 +101,20 @@ int main( int argc, char** argv ) {
}
case Kleo::CryptoConfigEntry::ArgType_Int: {
assert( entry->isOptional() ); // empty lists must be allowed (see issue121)
- QValueList<int> lst = entry->intValueList();
- QString str;
- for( QValueList<int>::Iterator it = lst.begin(); it != lst.end(); ++it ) {
- str += QString::number( *it );
+ TQValueList<int> lst = entry->intValueList();
+ TQString str;
+ for( TQValueList<int>::Iterator it = lst.begin(); it != lst.end(); ++it ) {
+ str += TQString::number( *it );
}
cout << " int values=" << str.local8Bit();
break;
}
case Kleo::CryptoConfigEntry::ArgType_UInt: {
assert( entry->isOptional() ); // empty lists must be allowed (see issue121)
- QValueList<uint> lst = entry->uintValueList();
- QString str;
- for( QValueList<uint>::Iterator it = lst.begin(); it != lst.end(); ++it ) {
- str += QString::number( *it );
+ TQValueList<uint> lst = entry->uintValueList();
+ TQString str;
+ for( TQValueList<uint>::Iterator it = lst.begin(); it != lst.end(); ++it ) {
+ str += TQString::number( *it );
}
cout << " uint values=" << str.local8Bit();
break;
@@ -132,7 +132,7 @@ int main( int argc, char** argv ) {
// fallthrough
case Kleo::CryptoConfigEntry::ArgType_String: {
assert( entry->isOptional() ); // empty lists must be allowed (see issue121)
- QStringList lst = entry->stringValueList();
+ TQStringList lst = entry->stringValueList();
cout << " string values=" << lst.join(" ").local8Bit();
break;
}
@@ -254,11 +254,11 @@ int main( int argc, char** argv ) {
Kleo::CryptoConfigEntry* entry = config->entry( "dirmngr", s_groupName, s_entryName );
if ( entry ) {
assert( entry->argType() == Kleo::CryptoConfigEntry::ArgType_Path );
- QString val = entry->stringValue();
+ TQString val = entry->stringValue();
cout << "Log-file initially: " << val.local8Bit() << endl;
// Test setting the option, sync'ing, then querying again
- entry->setStringValue( QString::fromUtf8( "/tmp/test:%e5ä" ) );
+ entry->setStringValue( TQString::fromUtf8( "/tmp/test:%e5ä" ) );
assert( entry->isDirty() );
config->sync( true );
@@ -273,14 +273,14 @@ int main( int argc, char** argv ) {
assert( entry );
assert( entry->argType() == Kleo::CryptoConfigEntry::ArgType_Path );
cout << "Log-file now: " << entry->stringValue().local8Bit() << endl;
- assert( entry->stringValue() == QString::fromUtf8( "/tmp/test:%e5ä" ) ); // (or even with %e5 decoded)
+ assert( entry->stringValue() == TQString::fromUtf8( "/tmp/test:%e5ä" ) ); // (or even with %e5 decoded)
// Reset old value
#if 0
- QString arg( val );
+ TQString arg( val );
if ( !arg.isEmpty() )
arg.prepend( '"' );
- QCString sys;
+ TQCString sys;
sys.sprintf( "echo 'log-file:%s' | gpgconf --change-options dirmngr", arg.local8Bit().data() );
system( sys.data() );
#endif
@@ -332,7 +332,7 @@ int main( int argc, char** argv ) {
assert( entry->argType() == Kleo::CryptoConfigEntry::ArgType_LDAPURL );
assert( entry->isList() );
// Get raw a:b:c:d:e form
- QStringList asStringList = entry->stringValueList();
+ TQStringList asStringList = entry->stringValueList();
assert( asStringList.count() == 3 );
cout << "asStringList[0]=" << asStringList[0].local8Bit() << endl;
cout << "asStringList[1]=" << asStringList[1].local8Bit() << endl;