org.freedesktop.packagekit1.Offline D-Bus Interface
org.freedesktop.packagekit1.Offline
Description
The interface used for interacting with offline actions.
Properties
org.freedesktop.packagekit1.Offline:UpdatePrepared
UpdatePrepared readable b
If an update has been prepared and is ready to be triggered.
org.freedesktop.packagekit1.Offline:UpdateTriggered
UpdateTriggered readable b
If an update has been triggered.
org.freedesktop.packagekit1.Offline:UpgradePrepared
UpgradePrepared readable b
If a system upgrade has been prepared and is ready to be triggered.
org.freedesktop.packagekit1.Offline:UpgradeTriggered
UpgradeTriggered readable b
If a system upgrade has been triggered.
org.freedesktop.packagekit1.Offline:PreparedUpgrade
PreparedUpgrade readable a{sv}
Details about a prepared system upgrade. Currently recognized keys are
"name" and "version".
org.freedesktop.packagekit1.Offline:TriggerAction
TriggerAction readable s
The action to take when finished applying updates, known values are
power-off, reboot or unset if no offline update is scheduled.
Methods
org.freedesktop.packagekit1.Offline.GetResults
GetResults (
OUT success b,
OUT package_ids as,
OUT role u,
OUT time_finished t,
OUT error_code u,
OUT error_description s
)
If the last offline action was completed successfully, returns a list of packages that were processed, a type of the action done and the unix timestamp when the action was finished. Otherwise returns an error code and error description.
Returns:
success: A boolean value representing success.package_ids: An array of package IDs.role: The role enum, e.g.update-systemtime_finished: The unix timestamp when the operation was completed.error_code: A PackageKit error code. The value of this argument is undefined if the “success” argument returned true.error_description: A detailed error description. The value of this argument is undefined if the “success” argument returned true.
org.freedesktop.packagekit1.Offline.ClearResults
ClearResults ()
Clears the offline update results store.
org.freedesktop.packagekit1.Offline.Trigger
Trigger (
IN action s
)
Triggers the offline update for next boot.
If the update is already triggered, only the action is changed, which requires no authorization. If a system upgrade is triggered instead, it is replaced by the update, which requires the same authorization as triggering a system upgrade.
- action: The action to take when finished applying updates, known values are
power-offandreboot.
org.freedesktop.packagekit1.Offline.TriggerUpgrade
TriggerUpgrade (
IN action s
)
Triggers the offline system upgrade for next boot.
If the system upgrade is already triggered, only the action is changed, which requires no authorization. If an offline update is triggered instead, it is replaced by the system upgrade.
- action: The action to take when finished installing the system upgrade, known values are
power-offandreboot.
org.freedesktop.packagekit1.Offline.Cancel
Cancel ()
Cancels the offline update so the next boot procceeds as normal.
Removing a triggered system upgrade requires the same authorization as triggering it did.
org.freedesktop.packagekit1.Offline.GetPrepared
GetPrepared (
OUT package_ids as
)
Returns the list of prepared updates.
Returns:
package_ids: An array of package IDs.