Changeset View
Changeset View
Standalone View
Standalone View
src/settings/wirelesssetting.cpp
Show All 21 Lines | |||||
22 | #include "wirelesssetting_p.h" | 22 | #include "wirelesssetting_p.h" | ||
23 | 23 | | |||
24 | #include "utils.h" | 24 | #include "utils.h" | ||
25 | 25 | | |||
26 | //define the deprecated&dropped values | 26 | //define the deprecated&dropped values | ||
27 | #define NM_SETTING_WIRELESS_SEC "security" | 27 | #define NM_SETTING_WIRELESS_SEC "security" | ||
28 | #define NM_SETTING_WIRELESS_ASSIGNED_MAC_ADDRESS "assigned-mac-address" | 28 | #define NM_SETTING_WIRELESS_ASSIGNED_MAC_ADDRESS "assigned-mac-address" | ||
29 | 29 | | |||
30 | #if !NM_CHECK_VERSION(1, 2, 0) | | |||
31 | #define NM_SETTING_WIRELESS_MAC_ADDRESS_RANDOMIZATION "mac-address-randomization" | | |||
32 | #define NM_SETTING_WIRELESS_POWERSAVE "powersave" | | |||
33 | #endif | | |||
34 | | ||||
35 | #if !NM_CHECK_VERSION(1, 4, 0) | | |||
36 | #define NM_SETTING_WIRELESS_GENERATE_MAC_ADDRESS_MASK "generate-mac-address-mask" | | |||
37 | #endif | | |||
38 | | ||||
39 | #include <QtCore/QDebug> | 30 | #include <QtCore/QDebug> | ||
40 | 31 | | |||
41 | NetworkManager::WirelessSettingPrivate::WirelessSettingPrivate() | 32 | NetworkManager::WirelessSettingPrivate::WirelessSettingPrivate() | ||
42 | : name(NM_SETTING_WIRELESS_SETTING_NAME) | 33 | : name(NM_SETTING_WIRELESS_SETTING_NAME) | ||
43 | , mode(NetworkManager::WirelessSetting::Infrastructure) | 34 | , mode(NetworkManager::WirelessSetting::Infrastructure) | ||
44 | , band(NetworkManager::WirelessSetting::Automatic) | 35 | , band(NetworkManager::WirelessSetting::Automatic) | ||
45 | , channel(0) | 36 | , channel(0) | ||
46 | , rate(0) | 37 | , rate(0) | ||
▲ Show 20 Lines • Show All 491 Lines • Show Last 20 Lines |