summaryrefslogtreecommitdiffstats
path: root/tdenetworkmanager/vpn-plugins/strongswan/src/tdenetman-strongswan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdenetworkmanager/vpn-plugins/strongswan/src/tdenetman-strongswan.cpp')
-rw-r--r--tdenetworkmanager/vpn-plugins/strongswan/src/tdenetman-strongswan.cpp27
1 files changed, 10 insertions, 17 deletions
diff --git a/tdenetworkmanager/vpn-plugins/strongswan/src/tdenetman-strongswan.cpp b/tdenetworkmanager/vpn-plugins/strongswan/src/tdenetman-strongswan.cpp
index a0826bd..2d9e0d7 100644
--- a/tdenetworkmanager/vpn-plugins/strongswan/src/tdenetman-strongswan.cpp
+++ b/tdenetworkmanager/vpn-plugins/strongswan/src/tdenetman-strongswan.cpp
@@ -119,39 +119,32 @@ void StrongswanConfig::setVPNData(TDENetworkSingleRouteConfigurationList& routes
m_vpnSecrets = secrets;
// fill up our inputfields (only textfields atm)
- for(TQMap<TQString, TQString>::ConstIterator it = properties.begin(); it != properties.end(); ++it)
- {
+ for(TDENetworkSettingsMap::iterator it = properties.begin(); it != properties.end(); ++it) {
TQString entry = it.key();
TQString value = it.data();
- if (entry == "gateway")
- {
+ if (entry == "gateway") {
_strongswanWidget->gateway->setText(value);
}
- else if (entry == "certificate")
- {
+ else if (entry == "certificate") {
_strongswanWidget->certificate->setURL(value);
}
- else if (entry == "username")
- {
+ else if (entry == "username") {
_strongswanWidget->username->setText(value);
}
- else if (entry == "method")
- {
- StrongswanConnectionType::CONNECTIONTYPE type = StrongswanConnectionType::mapString2ConnectionType(value.toInt());
+ else if (entry == "method") {
+ StrongswanConnectionType::CONNECTIONTYPE type = StrongswanConnectionType::mapString2ConnectionType(value.toInt());
_strongswanWidget->authtype->setCurrentItem(type);
}
+
// Options
- else if (entry == "chkUDPenc")
- {
+ else if (entry == "chkUDPenc") {
_strongswanWidget->chkUDPenc->setChecked(value == "true");
}
- else if (entry == "chkIPcomp")
- {
+ else if (entry == "chkIPcomp") {
_strongswanWidget->chkIPcomp->setChecked(value == "true");
}
- else if (entry == "chkIPinner")
- {
+ else if (entry == "chkIPinner") {
_strongswanWidget->chkIPinner->setChecked(value == "true");
}
}