| Top |
| G_STATIC_ASSERT | sizeof () |
| gint | (*GsAppListSortFunc) () |
| gboolean | (*GsAppListFilterFunc) () |
| GsAppList * | gs_app_list_new () |
| GsAppList * | gs_app_list_copy () |
| void | gs_app_list_add () |
| void | gs_app_list_add_list () |
| gboolean | gs_app_list_remove () |
| void | gs_app_list_remove_all () |
| GsApp * | gs_app_list_index () |
| GsApp * | gs_app_list_lookup () |
| guint | gs_app_list_length () |
| void | gs_app_list_sort () |
| void | gs_app_list_filter () |
| void | gs_app_list_override_progress () |
gint (*GsAppListSortFunc) (GsApp *app1,GsApp *app2,gpointer user_data);
A version of GCompareFunc which is specific to GsApps.
zero if app1
and app2
are equal, a negative value if app1
comes
before app2
, or a positive value if app1
comes after app2
Since: 41
GsAppList *
gs_app_list_copy (GsAppList *list);
Returns a deep copy of the application list.
Since: 3.22
void gs_app_list_add (GsAppList *list,GsApp *app);
If the application does not already exist in the list then it is added, incrementing the reference count. If the application already exists then a warning is printed to the console.
Applications that have the application ID lazy-loaded will always be added
to the list, and to clean these up the plugin loader will also call the
gs_app_list_filter_duplicates() method when all plugins have run.
Since: 3.22
void gs_app_list_add_list (GsAppList *list,GsAppList *donor);
Adds all the applications in donor
to list
.
Since: 3.22
gboolean gs_app_list_remove (GsAppList *list,GsApp *app);
Removes an application from the list. If the application does not exist the request is ignored.
Since: 43
void
gs_app_list_remove_all (GsAppList *list);
Removes all applications from the list.
Since: 3.22
GsApp * gs_app_list_index (GsAppList *list,guint idx);
Gets an application at a specific position in the list.
Since: 3.22
GsApp * gs_app_list_lookup (GsAppList *list,const gchar *unique_id);
Finds the first matching application in the list using the usual wildcard rules allowed in unique_ids.
Since: 3.22
guint
gs_app_list_length (GsAppList *list);
Gets the length of the application list.
Since: 3.22
void gs_app_list_sort (GsAppList *list,GsAppListSortFunc func,gpointer user_data);
Sorts the application list.
Since: 3.22
void gs_app_list_filter (GsAppList *list,GsAppListFilterFunc func,gpointer user_data);
If func() returns TRUE for the GsApp, then the app is kept.
Since: 3.22
void gs_app_list_override_progress (GsAppList *list,guint progress);
Override the progress property to be this value, or use GS_APP_PROGRESS_UNKNOWN,
to unset the override. This can be used when only the overall progress is known,
instead of a per-application progress.
Since: 42
Flags to use when filtering. The priority of each GsApp is used to choose which application object to keep.
|
No flags set |
||
|
Filter by ID |
||
|
Filter by default source (Since: 49) |
||
|
Filter by version |
||
|
Prefer installed applications |
||
|
Filter using the provides ID |
||
Since: 40