diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:31:11 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:31:11 -0600 |
commit | def182a745c9f7c9f91600c31d133389d0d59b82 (patch) | |
tree | c8f5139c2aea2bd36b8540a37a6a3ca6410e45b8 /knetworkmanager-0.8/src/knetworkmanager-storage.cpp | |
parent | 8232572e677b7a1d86d9fa0ce1ccac8efb09ce0d (diff) | |
download | knetworkmanager8-def182a745c9f7c9f91600c31d133389d0d59b82.tar.gz knetworkmanager8-def182a745c9f7c9f91600c31d133389d0d59b82.zip |
Rename a number of old tq methods that are no longer tq specific
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 |