Mercurial > projects > package-update-indicator
diff pui-application.h @ 10:adba37525ee5
Notify about required session or system restarts
Follow all PackageKit transactions and indicate when a session or system
restart is required.
Generate enum types with glib-mkenums.
author | Guido Berhoerster <guido+pui@berhoerster.name> |
---|---|
date | Fri, 06 Jul 2018 14:12:46 +0200 |
parents | 6884bb8130ca |
children |
line wrap: on
line diff
--- a/pui-application.h Wed Jul 04 17:08:47 2018 +0200 +++ b/pui-application.h Fri Jul 06 14:12:46 2018 +0200 @@ -34,6 +34,17 @@ G_DECLARE_FINAL_TYPE(PuiApplication, pui_application, PUI, APPLICATION, GApplication) +typedef enum { + PUI_STATE_INITIAL, + PUI_STATE_UP_TO_DATE, + PUI_STATE_NORMAL_UPDATES_AVAILABLE, + PUI_STATE_IMPORTANT_UPDATES_AVAILABLE, + PUI_STATE_SESSION_RESTART_REQUIRED, + PUI_STATE_SYSTEM_RESTART_REQUIRED, + PUI_STATE_ERROR, + PUI_STATE_LAST +} PuiState; + PuiApplication * pui_application_new(void); G_END_DECLS