diff options
Diffstat (limited to 'knetworkmanager-0.8/src/knetworkmanager-storage.cpp')
-rw-r--r-- | knetworkmanager-0.8/src/knetworkmanager-storage.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/knetworkmanager-0.8/src/knetworkmanager-storage.cpp b/knetworkmanager-0.8/src/knetworkmanager-storage.cpp index 553bd1f..b4ce93b 100644 --- a/knetworkmanager-0.8/src/knetworkmanager-storage.cpp +++ b/knetworkmanager-0.8/src/knetworkmanager-storage.cpp @@ -364,7 +364,7 @@ Storage::saveConnection(Connection* conn) return false; // let's get the config group for this connection - KConfigGroup grp(config, TQString("Connection_%1").tqarg(id)); + KConfigGroup grp(config, TQString("Connection_%1").arg(id)); TQStringList settings_grps; TQStringList secrets_grps; @@ -427,7 +427,7 @@ Storage::saveConnectionSetting(Connection* conn, ConnectionSetting* setting, TQS return false; // get a group for this setting - setting_grp = TQString("ConnectionSetting_%1_%2").tqarg(id).tqarg(type); + setting_grp = TQString("ConnectionSetting_%1_%2").arg(id).arg(type); KConfigGroup grp(config, setting_grp); // write the type @@ -437,8 +437,8 @@ Storage::saveConnectionSetting(Connection* conn, ConnectionSetting* setting, TQS SettingsMap map = setting->toMap(); for (SettingsMap::ConstIterator it = map.begin(); it != map.end(); ++it) { - kdDebug() << k_funcinfo << " " << TQString("Value_%1").tqarg(it.key()) << " = " << XMLMarshaller::fromTQT_DBusData( it.data() )<< endl; - grp.writeEntry(TQString("Value_%1").tqarg(it.key()), XMLMarshaller::fromTQT_DBusData( it.data() )); + kdDebug() << k_funcinfo << " " << TQString("Value_%1").arg(it.key()) << " = " << XMLMarshaller::fromTQT_DBusData( it.data() )<< endl; + grp.writeEntry(TQString("Value_%1").arg(it.key()), XMLMarshaller::fromTQT_DBusData( it.data() )); } return true; } @@ -474,7 +474,7 @@ Storage::saveConnectionSecrets(Connection* conn, ConnectionSetting* setting, TQS printf("Secrets storage requested: %d\n\r", storage_requested); // get a group for this setting - setting_grp = TQString("ConnectionSecrets_%1_%2").tqarg(id).tqarg(type); + setting_grp = TQString("ConnectionSecrets_%1_%2").arg(id).arg(type); KConfigGroup grp(config, setting_grp); // write the type @@ -484,12 +484,12 @@ Storage::saveConnectionSecrets(Connection* conn, ConnectionSetting* setting, TQS SettingsMap map = setting->toSecretsMap(false); for (SettingsMap::ConstIterator it = map.begin(); it != map.end(); ++it) { - kdDebug() << k_funcinfo << " " << TQString("Value_%1").tqarg(it.key()) << " = " << XMLMarshaller::fromTQT_DBusData( it.data() )<< endl; + kdDebug() << k_funcinfo << " " << TQString("Value_%1").arg(it.key()) << " = " << XMLMarshaller::fromTQT_DBusData( it.data() )<< endl; if (storage_requested == true) { - grp.writeEntry(TQString("Value_%1").tqarg(it.key()), XMLMarshaller::fromTQT_DBusData( it.data() )); + grp.writeEntry(TQString("Value_%1").arg(it.key()), XMLMarshaller::fromTQT_DBusData( it.data() )); } else { - grp.writeEntry(TQString("Value_%1").tqarg(it.key()), TQString("") ); + grp.writeEntry(TQString("Value_%1").arg(it.key()), TQString("") ); } } return true; @@ -527,7 +527,7 @@ Storage::hasSecretsStored(Connection* connection, ConnectionSetting* setting) return false; // get a group for this setting - TQString setting_grp_name = TQString("ConnectionSecrets_%1_%2").tqarg(id).tqarg(type); + TQString setting_grp_name = TQString("ConnectionSecrets_%1_%2").arg(id).arg(type); TQMap<TQString, TQString> config_map = KGlobal::config()->entryMap(setting_grp_name); @@ -565,7 +565,7 @@ Storage::restoreSecrets(Connection* connection, ConnectionSetting* setting) return false; // get a group for this setting - TQString setting_grp = TQString("ConnectionSecrets_%1_%2").tqarg(id).tqarg(type); + TQString setting_grp = TQString("ConnectionSecrets_%1_%2").arg(id).arg(type); // restore the setting return restoreSecrets(connection, setting_grp); @@ -584,7 +584,7 @@ Storage::restoreVPNSecrets(Connection* connection, ConnectionSetting* setting) return false; // get a group for this setting - TQString setting_grp = TQString("ConnectionSecrets_%1_%2").tqarg(id).tqarg(type); + TQString setting_grp = TQString("ConnectionSecrets_%1_%2").arg(id).arg(type); // restore the setting return restoreVPNSecrets(connection, setting_grp); @@ -605,7 +605,7 @@ Storage::deleteConnection(Connection* conn) return false; // let's get the config group for this connection - KConfigGroup grp(config, TQString("Connection_%1").tqarg(id)); + KConfigGroup grp(config, TQString("Connection_%1").arg(id)); // delete all associated settings |