mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:27:35 +00:00
DisplaySettings+WindowServer: Add support for display connector devices
This commit is contained in:
parent
e6ebf9e5c1
commit
d9a2706079
12 changed files with 308 additions and 38 deletions
|
@ -21,6 +21,7 @@ public:
|
|||
enum class Mode {
|
||||
Invalid,
|
||||
Device,
|
||||
DisplayConnectorDevice,
|
||||
Virtual,
|
||||
} mode;
|
||||
Optional<String> device;
|
||||
|
@ -42,6 +43,7 @@ public:
|
|||
switch (mode) {
|
||||
__ENUMERATE_MODE_ENUM(Invalid)
|
||||
__ENUMERATE_MODE_ENUM(Device)
|
||||
__ENUMERATE_MODE_ENUM(DisplayConnectorDevice)
|
||||
__ENUMERATE_MODE_ENUM(Virtual)
|
||||
}
|
||||
VERIFY_NOT_REACHED();
|
||||
|
@ -59,7 +61,9 @@ public:
|
|||
bool normalize();
|
||||
bool load_config(Core::ConfigFile const& config_file, String* error_msg = nullptr);
|
||||
bool save_config(Core::ConfigFile& config_file, bool sync = true) const;
|
||||
// FIXME: Remove this once framebuffer devices are removed.
|
||||
bool try_auto_add_framebuffer(String const&);
|
||||
bool try_auto_add_display_connector(String const&);
|
||||
|
||||
// TODO: spaceship operator
|
||||
bool operator!=(ScreenLayout const& other) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue