Top | ![]() |
![]() |
![]() |
![]() |
GsPluginEvent * | gs_plugin_event_new () |
const gchar * | gs_plugin_event_get_unique_id () |
GsApp * | gs_plugin_event_get_app () |
GsApp * | gs_plugin_event_get_origin () |
GsPluginAction | gs_plugin_event_get_action () |
GsPluginJob * | gs_plugin_event_get_job () |
const GError * | gs_plugin_event_get_error () |
void | gs_plugin_event_add_flag () |
void | gs_plugin_event_remove_flag () |
gboolean | gs_plugin_event_has_flag () |
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.
GsPluginEvent * gs_plugin_event_new (const gchar *first_property_name
,...
);
Creates a new event.
The arguments are as for g_object_new()
: property name/value pairs to set
the properties of the event.
first_property_name |
the name of the first property |
|
... |
the value of the first property, followed by zero or more pairs of
property name/value pairs, then |
Since: 42
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
GsApp *
gs_plugin_event_get_app (GsPluginEvent *event
);
Gets an app that created the event.
Since: 3.22
GsApp *
gs_plugin_event_get_origin (GsPluginEvent *event
);
Gets an origin that created the event.
Since: 3.22
GsPluginAction
gs_plugin_event_get_action (GsPluginEvent *event
);
Gets an action that created the event.
Since: 3.22
GsPluginJob *
gs_plugin_event_get_job (GsPluginEvent *event
);
Gets the job that created the event.
Since: 42
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