summaryrefslogtreecommitdiffstats
path: root/tdecore
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-05 12:00:20 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-05 12:00:20 -0500
commit60ee06f236470525bb1bb0094fb6b2a8701533b6 (patch)
treeeabb1c4002682a0c553771ae4c23a0baad39630b /tdecore
parent8f5ad894339944409022b028f4c2df17103e7591 (diff)
downloadtdelibs-60ee06f236470525bb1bb0094fb6b2a8701533b6.tar.gz
tdelibs-60ee06f236470525bb1bb0094fb6b2a8701533b6.zip
Add friendly ssid function
Diffstat (limited to 'tdecore')
-rw-r--r--tdecore/tdenetworkconnections.cpp13
-rw-r--r--tdecore/tdenetworkconnections.h3
2 files changed, 16 insertions, 0 deletions
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 <klocale.h>
+
#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 */
/*================================================================================================*/
diff --git a/tdecore/tdenetworkconnections.h b/tdecore/tdenetworkconnections.h
index fb1079d85..720b93378 100644
--- a/tdecore/tdenetworkconnections.h
+++ b/tdecore/tdenetworkconnections.h
@@ -742,6 +742,9 @@ class TDECORE_EXPORT TDENetworkWiFiAPInfo : public TDENetworkHWNeighbor
virtual ~TDENetworkWiFiAPInfo();
public:
+ TQString friendlySSID();
+
+ public:
TQByteArray SSID;
TDENetworkWiFiAPFlags::TDENetworkWiFiAPFlags wpaFlags;
TDENetworkWiFiAPFlags::TDENetworkWiFiAPFlags rsnFlags;