Changeset View
Changeset View
Standalone View
Standalone View
src/settings/wiredsetting.cpp
Show All 16 Lines | 1 | /* | |||
---|---|---|---|---|---|
17 | You should have received a copy of the GNU Lesser General Public | 17 | You should have received a copy of the GNU Lesser General Public | ||
18 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | 18 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #include "wiredsetting.h" | 21 | #include "wiredsetting.h" | ||
22 | #include "wiredsetting_p.h" | 22 | #include "wiredsetting_p.h" | ||
23 | #include "manager.h" | 23 | #include "manager.h" | ||
24 | 24 | | |||
25 | #if !NM_CHECK_VERSION(1, 0, 6) | | |||
26 | #define NM_SETTING_WIRED_WAKE_ON_LAN "wake-on-lan" | | |||
27 | #define NM_SETTING_WIRED_WAKE_ON_LAN_PASSWORD "wake-on-lan-password" | | |||
28 | #endif | | |||
29 | | ||||
30 | #if !NM_CHECK_VERSION(1, 4, 0) | | |||
31 | #define NM_SETTING_WIRED_GENERATE_MAC_ADDRESS_MASK "generate-mac-address-mask" | | |||
32 | #endif | | |||
33 | | ||||
34 | #include <QtCore/QDebug> | 25 | #include <QtCore/QDebug> | ||
35 | 26 | | |||
36 | NetworkManager::WiredSettingPrivate::WiredSettingPrivate() | 27 | NetworkManager::WiredSettingPrivate::WiredSettingPrivate() | ||
37 | : name(NM_SETTING_WIRED_SETTING_NAME) | 28 | : name(NM_SETTING_WIRED_SETTING_NAME) | ||
38 | , port(NetworkManager::WiredSetting::UnknownPort) | 29 | , port(NetworkManager::WiredSetting::UnknownPort) | ||
39 | , speed(0) | 30 | , speed(0) | ||
40 | , duplex(NetworkManager::WiredSetting::UnknownDuplexType) | 31 | , duplex(NetworkManager::WiredSetting::UnknownDuplexType) | ||
41 | , mtu(0) | 32 | , mtu(0) | ||
▲ Show 20 Lines • Show All 443 Lines • Show Last 20 Lines |