| Top |
| void | (*GsPluginProgressCallback) () |
| void | (*GsPluginEventCallback) () |
| void | (*GsPluginAppNeedsUserActionCallback) () |
void (*GsPluginProgressCallback) (GsPlugin *plugin,guint progress,gpointer user_data);
Callback to report the progress of a particular plugin
through a particular
operation.
plugin |
the GsPlugin reporting its progress |
|
progress |
the percentage completion (0–100 inclusive), or
|
|
user_data |
user data passed to the calling function |
Since: 44
void (*GsPluginEventCallback) (GsPlugin *plugin,GsPluginEvent *event,void *user_data);
Callback to report an event from a particular plugin
through a particular
operation.
Typically these events will be errors to potentially show to the user.
plugin |
the GsPlugin reporting an event |
|
event |
the event being reported |
|
user_data |
user data passed to the calling function |
Since: 49
void (*GsPluginAppNeedsUserActionCallback) (GsPlugin *plugin,GsApp *app,AsScreenshot *action_screenshot,gpointer user_data);
Callback to ask the user to perform a physical action during a plugin operation.
This will typically be something like unplugging and reconnecting a hardware
device, and instructions will be given via action_screenshot
.
plugin |
the GsPlugin asking for user action |
|
app |
the related GsApp, or |
[nullable][transfer none] |
action_screenshot |
a screenshot (with caption
set) which gives the user instructions about what action to take, or |
[nullable][transfer none] |
user_data |
user data passed to the calling function |
Since: 44
The failure error types.
|
Generic failure |
||
|
Action not supported |
||
|
Action was cancelled |
||
|
No network connection available |
||
|
Security policy forbid action |
||
|
No disk space to allow action |
||
|
Authentication was required |
||
|
Provided authentication was invalid |
||
|
The plugins installed are incompatible |
||
|
The download action failed |
||
|
The save-to-disk failed |
||
|
The data format is invalid |
||
|
The delete action failed |
||
|
A restart is required |
||
|
AC power is required |
||
|
The job timed out |
||
|
The system battery level is too low |
||
Flags for an operation to refine apps.
See GsPluginRefineRequireFlags for the flags which specify which properties to refine on each app.
|
No explicit flags set |
||
|
User initiated the job |
||
|
Allow packages to be returned |
||
|
Normally the results of a refine are filtered to remove non-valid apps; if this flag is set, that won’t happen. This is intended to be used by internal GsPluginLoader code. |
Since: 49
Flags specifying which pieces of data to refine on a GsApp.
See GsPluginRefineFlags for flags affecting the behaviour of the refine job as a whole.
|
No explicit flags set |
||
|
Require the app’s ID; this is the minimum possible requirement |
||
|
Require the license |
||
|
Require the URL |
||
|
Require the long description |
||
|
Require the installed and download sizes |
||
|
Require the rating |
||
|
Require the version |
||
|
Require the history |
||
|
Require enough to install or remove the package |
||
|
Require update details |
||
|
Require the origin |
||
|
Require related packages |
||
|
Require user and cache data sizes |
||
|
Require available addons |
||
|
Require update severity |
||
|
Require distro upgrades |
||
|
Require the provenance |
||
|
Require user-reviews |
||
|
Require user-ratings |
||
|
Require the icon to be loaded |
||
|
Require the needed permissions |
||
|
Require the origin hostname |
||
|
Require the origin for UI |
||
|
Require the runtime |
||
|
Require screenshot information |
||
|
Require categories |
||
|
Require project group |
||
|
Require developer name |
||
|
Require kudos |
||
|
All flags |
Since: 49
Flags for an operation to list apps matching a given query.
Since: 43
Flags for an operation to list available distro upgrades.
Since: 42
Flags for an operation on a repository.
|
No flags set. |
||
|
User initiated the job. |
||
|
Install the repository. |
||
|
Remove the repository. |
||
|
Enable the repository. |
||
|
Disable the repository. |
Since: 42
Flags for an operation to download or install apps.
|
No flags set. |
||
|
User initiated the job. |
||
|
Only use locally cached resources, and error if they don’t exist. |
||
|
Only download the resources, and don’t do the installation. |
Since: 47
Flags for an operation to download or update apps.
|
No flags set. |
||
|
User initiated the job. |
||
|
Only use locally cached resources, and error if they don’t exist. |
||
|
Only download the resources, and don’t apply the updates. |
Since: 44
Flags for an operation to cancel a pending offline update.
Since: 47
Flags for a url-to-app operation.
|
No flags set. |
||
|
User initiated the job. |
||
|
Allow unconverted generic
packages to be returned. This is equivalent to passing
|
Since: 47
The rules used for ordering plugins. Plugins are expected to add rules in the init function for their GsPlugin subclass.