Mercurial > projects > package-update-indicator
comparison 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 |
comparison
equal
deleted
inserted
replaced
9:b571e7ade208 | 10:adba37525ee5 |
---|---|
32 #define PUI_TYPE_APPLICATION (pui_application_get_type()) | 32 #define PUI_TYPE_APPLICATION (pui_application_get_type()) |
33 | 33 |
34 G_DECLARE_FINAL_TYPE(PuiApplication, pui_application, PUI, APPLICATION, | 34 G_DECLARE_FINAL_TYPE(PuiApplication, pui_application, PUI, APPLICATION, |
35 GApplication) | 35 GApplication) |
36 | 36 |
37 typedef enum { | |
38 PUI_STATE_INITIAL, | |
39 PUI_STATE_UP_TO_DATE, | |
40 PUI_STATE_NORMAL_UPDATES_AVAILABLE, | |
41 PUI_STATE_IMPORTANT_UPDATES_AVAILABLE, | |
42 PUI_STATE_SESSION_RESTART_REQUIRED, | |
43 PUI_STATE_SYSTEM_RESTART_REQUIRED, | |
44 PUI_STATE_ERROR, | |
45 PUI_STATE_LAST | |
46 } PuiState; | |
47 | |
37 PuiApplication * pui_application_new(void); | 48 PuiApplication * pui_application_new(void); |
38 | 49 |
39 G_END_DECLS | 50 G_END_DECLS |
40 | 51 |
41 #endif /* !PUI_APPLICATION_H */ | 52 #endif /* !PUI_APPLICATION_H */ |