-
-
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.
- Loading branch information
1 parent
cd2b91b
commit ce2f0b5
Showing
5 changed files
with
193 additions
and
247 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[DBus (name="io.elementary.settings_daemon.SystemUpdate")] | ||
public interface SystemUpdate : Object { | ||
public enum State { | ||
UP_TO_DATE, | ||
CHECKING, | ||
AVAILABLE, | ||
DOWNLOADING, | ||
RESTART_REQUIRED | ||
} | ||
|
||
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 update () throws DBusError, IOError; | ||
public abstract async void check_for_updates (bool force = false) 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
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.