These functions provide a way for plugins to tell the UI layer about events that may require displaying to the user. Plugins should not assume that a specific event is actually shown to the user as it may be ignored automatically.
const gchar *
gs_plugin_event_get_unique_id (GsPluginEvent *event);
Gets the unique ID for the event. In most cases (if an app has been set) this will just be the actual GsApp unique-id. In the cases where only error has been set a virtual (but plausible) ID will be generated.
Since: 3.22
void gs_plugin_event_set_app (GsPluginEvent *event,GsApp *app);
Set the application (or source, or whatever component) that caused the event to be created.
Since: 3.22
GsApp *
gs_plugin_event_get_app (GsPluginEvent *event);
Gets an application that created the event.
Since: 3.22
void gs_plugin_event_set_origin (GsPluginEvent *event,GsApp *origin);
Set the origin that caused the event to be created.
Since: 3.22
GsApp *
gs_plugin_event_get_origin (GsPluginEvent *event);
Gets an origin that created the event.
Since: 3.22
void gs_plugin_event_set_action (GsPluginEvent *event,GsPluginAction action);
Set the action that caused the event to be created.
Since: 3.22
GsPluginAction
gs_plugin_event_get_action (GsPluginEvent *event);
Gets an action that created the event.
Since: 3.22
void gs_plugin_event_set_error (GsPluginEvent *event,const GError *error);
Sets the event error.
Since: 3.22
const GError *
gs_plugin_event_get_error (GsPluginEvent *event);
Gets the event error.
Since: 3.22
void gs_plugin_event_add_flag (GsPluginEvent *event,GsPluginEventFlag flag);
void gs_plugin_event_remove_flag (GsPluginEvent *event,GsPluginEventFlag flag);
gboolean gs_plugin_event_has_flag (GsPluginEvent *event,GsPluginEventFlag flag);
Finds out if the event has a specific flag.
Since: 3.22