-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSystemInterface.vala
More file actions
22 lines (19 loc) · 813 Bytes
/
SystemInterface.vala
File metadata and controls
22 lines (19 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
* SPDX-License-Identifier: GPL-3.0-or-later
* SPDX-FileCopyrightText: 2024 elementary, Inc. (https://elementary.io)
*/
struct UserInfo {
uint32 uid;
string user_name;
ObjectPath? user_object;
}
[DBus (name = "org.freedesktop.login1.Manager")]
interface QuickSettings.SystemInterface : Object {
public abstract void suspend (bool interactive) throws GLib.Error;
public abstract void reboot (bool interactive) throws GLib.Error;
public abstract void power_off (bool interactive) throws GLib.Error;
public abstract void reboot_with_flags (uint64 flags) throws GLib.Error;
public abstract void power_off_with_flags (uint64 flags) throws GLib.Error;
public abstract UserInfo[] list_users () throws GLib.Error;
public abstract string can_suspend () throws GLib.Error;
}