-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Danielle Foré <[email protected]>
- Loading branch information
1 parent
0e89141
commit 2d1d9e5
Showing
5 changed files
with
349 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[DBus (name="io.elementary.settings_daemon.SystemUpdate")] | ||
public interface SystemUpdate : Object { | ||
public enum State { | ||
UP_TO_DATE, | ||
CHECKING, | ||
AVAILABLE, | ||
DOWNLOADING, | ||
RESTART_REQUIRED, | ||
ERROR | ||
} | ||
|
||
public struct CurrentState { | ||
State state; | ||
string message; | ||
} | ||
|
||
public struct UpdateDetails { | ||
string[] packages; | ||
int size; | ||
} | ||
|
||
public signal void state_changed (); | ||
|
||
public abstract async CurrentState get_current_state () throws DBusError, IOError; | ||
public abstract async UpdateDetails get_update_details () throws DBusError, IOError; | ||
public abstract async void cancel () throws DBusError, IOError; | ||
public abstract async void check_for_updates (bool force, bool notify) throws DBusError, IOError; | ||
public abstract async void update () throws DBusError, IOError; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.