From 60ee06f236470525bb1bb0094fb6b2a8701533b6 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 5 Sep 2012 12:00:20 -0500 Subject: Add friendly ssid function --- tdecore/tdenetworkconnections.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tdecore/tdenetworkconnections.cpp') diff --git a/tdecore/tdenetworkconnections.cpp b/tdecore/tdenetworkconnections.cpp index 39899b131..67cca7f5f 100644 --- a/tdecore/tdenetworkconnections.cpp +++ b/tdecore/tdenetworkconnections.cpp @@ -21,6 +21,8 @@ #include "config.h" +#include + #ifdef WITH_NETWORK_MANAGER_BACKEND #include "networkbackends/network-manager/network-manager.h" #endif // WITH_NETWORK_MANAGER_BACKEND @@ -474,6 +476,17 @@ TDENetworkWiFiAPInfo::~TDENetworkWiFiAPInfo() { // } +TQString TDENetworkWiFiAPInfo::friendlySSID() { + TQString ret; + + ret = TQString(SSID); + if (ret == "") { + ret = "<" + i18n("hidden") + ">"; + } + + return ret; +} + /*================================================================================================*/ /* TDENetworkConnection */ /*================================================================================================*/ -- cgit v1.2.1