Changeset View
Changeset View
Standalone View
Standalone View
libs/editor/settings/wiredconnectionwidget.h
Show All 29 Lines | |||||
30 | class WiredConnectionWidget; | 30 | class WiredConnectionWidget; | ||
31 | } | 31 | } | ||
32 | 32 | | |||
33 | class Q_DECL_EXPORT WiredConnectionWidget : public SettingWidget | 33 | class Q_DECL_EXPORT WiredConnectionWidget : public SettingWidget | ||
34 | { | 34 | { | ||
35 | Q_OBJECT | 35 | Q_OBJECT | ||
36 | 36 | | |||
37 | public: | 37 | public: | ||
38 | enum LinkNegotiation { | ||||
39 | Ignore = 0, | ||||
40 | Automatic, | ||||
41 | Manual | ||||
42 | }; | ||||
43 | | ||||
44 | enum Duplex { | ||||
45 | Half = 0, | ||||
46 | Full | ||||
47 | }; | ||||
48 | | ||||
38 | explicit WiredConnectionWidget(const NetworkManager::Setting::Ptr &setting, QWidget* parent = nullptr, Qt::WindowFlags f = {}); | 49 | explicit WiredConnectionWidget(const NetworkManager::Setting::Ptr &setting, QWidget* parent = nullptr, Qt::WindowFlags f = {}); | ||
39 | ~WiredConnectionWidget() override; | 50 | ~WiredConnectionWidget() override; | ||
40 | 51 | | |||
41 | void loadConfig(const NetworkManager::Setting::Ptr &setting) override; | 52 | void loadConfig(const NetworkManager::Setting::Ptr &setting) override; | ||
42 | 53 | | |||
43 | QVariantMap setting() const override; | 54 | QVariantMap setting() const override; | ||
44 | 55 | | |||
45 | bool isValid() const override; | 56 | bool isValid() const override; | ||
Show All 9 Lines |