Changeset View
Changeset View
Standalone View
Standalone View
libs/uiutils.cpp
Show All 20 Lines | |||||
21 | 21 | | |||
22 | // Own | 22 | // Own | ||
23 | #include "uiutils.h" | 23 | #include "uiutils.h" | ||
24 | 24 | | |||
25 | #include "configuration.h" | 25 | #include "configuration.h" | ||
26 | #include "debug.h" | 26 | #include "debug.h" | ||
27 | 27 | | |||
28 | // KDE | 28 | // KDE | ||
29 | #include <KLocalizedString> | | |||
30 | #include <KConfigGroup> | 29 | #include <KConfigGroup> | ||
30 | #include <KLocalizedString> | ||||
31 | #include <KEmoticons/KEmoticons> | ||||
31 | #include <KSharedConfig> | 32 | #include <KSharedConfig> | ||
32 | 33 | | |||
33 | #include <NetworkManagerQt/BluetoothDevice> | 34 | #include <NetworkManagerQt/BluetoothDevice> | ||
34 | #include <NetworkManagerQt/Manager> | 35 | #include <NetworkManagerQt/Manager> | ||
35 | #include <NetworkManagerQt/Device> | 36 | #include <NetworkManagerQt/Device> | ||
36 | #include <NetworkManagerQt/AccessPoint> | 37 | #include <NetworkManagerQt/AccessPoint> | ||
37 | #include <NetworkManagerQt/WiredDevice> | 38 | #include <NetworkManagerQt/WiredDevice> | ||
38 | #include <NetworkManagerQt/WirelessDevice> | 39 | #include <NetworkManagerQt/WirelessDevice> | ||
▲ Show 20 Lines • Show All 249 Lines • ▼ Show 20 Line(s) | 288 | case NetworkManager::Device::Bridge: | |||
288 | ret = i18n("Bridge (%1)", interfaceName); | 289 | ret = i18n("Bridge (%1)", interfaceName); | ||
289 | break; | 290 | break; | ||
290 | default: | 291 | default: | ||
291 | ret = interfaceName; | 292 | ret = interfaceName; | ||
292 | } | 293 | } | ||
293 | return ret; | 294 | return ret; | ||
294 | } | 295 | } | ||
295 | 296 | | |||
297 | QString UiUtils::parseEmoticons(const QString &name) | ||||
298 | { | ||||
299 | KEmoticons emoticons; | ||||
300 | KEmoticonsTheme emoticonsTheme = emoticons.theme(); | ||||
301 | | ||||
302 | return emoticonsTheme.parseEmoticons(name); | ||||
303 | } | ||||
304 | | ||||
296 | QString UiUtils::connectionStateToString(NetworkManager::Device::State state, const QString &connectionName) | 305 | QString UiUtils::connectionStateToString(NetworkManager::Device::State state, const QString &connectionName) | ||
297 | { | 306 | { | ||
298 | QString stateString; | 307 | QString stateString; | ||
299 | switch (state) { | 308 | switch (state) { | ||
300 | case NetworkManager::Device::UnknownState: | 309 | case NetworkManager::Device::UnknownState: | ||
301 | stateString = i18nc("description of unknown network interface state", "Unknown"); | 310 | stateString = i18nc("description of unknown network interface state", "Unknown"); | ||
302 | break; | 311 | break; | ||
303 | case NetworkManager::Device::Unmanaged: | 312 | case NetworkManager::Device::Unmanaged: | ||
▲ Show 20 Lines • Show All 388 Lines • Show Last 20 Lines |