mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47:35 +00:00
Userland: Port to automatic GML initializer where possible
This commit is contained in:
parent
dec066fa5c
commit
adc845e0cb
41 changed files with 148 additions and 245 deletions
|
@ -16,17 +16,14 @@ class NetworkSettingsWidget : public GUI::SettingsWindow::Tab {
|
|||
C_OBJECT_ABSTRACT(NetworkSettingsWidget)
|
||||
|
||||
public:
|
||||
static ErrorOr<NonnullRefPtr<NetworkSettingsWidget>> create();
|
||||
static ErrorOr<NonnullRefPtr<NetworkSettingsWidget>> try_create();
|
||||
ErrorOr<void> initialize();
|
||||
|
||||
virtual void apply_settings() override;
|
||||
void switch_adapter(ByteString const& adapter);
|
||||
|
||||
protected:
|
||||
static ErrorOr<NonnullRefPtr<NetworkSettingsWidget>> try_create();
|
||||
|
||||
private:
|
||||
NetworkSettingsWidget() = default;
|
||||
ErrorOr<void> setup();
|
||||
|
||||
struct NetworkAdapterData {
|
||||
bool enabled = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue