diff options
author | Robert Ancell <robert.ancell@gmail.com> | 2016-07-05 21:22:50 +1200 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-07-05 10:22:50 +0100 |
commit | 1e0c0f4359dacafbc998e84afad236234fba2410 (patch) | |
tree | 2745c84b50516840e2c44c2f0f2e5d8ee6a99dc5 /libappstream-glib | |
parent | 8289b1555b0fe93566bad26c7d1896aa452f3ee5 (diff) | |
download | appstream-glib-1e0c0f4359dacafbc998e84afad236234fba2410.tar.gz |
Add an AS_STATE_PURCHASING constant (#115)
Diffstat (limited to 'libappstream-glib')
-rw-r--r-- | libappstream-glib/as-app.c | 2 | ||||
-rw-r--r-- | libappstream-glib/as-app.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c index 47456a7..4a5e1e9 100644 --- a/libappstream-glib/as-app.c +++ b/libappstream-glib/as-app.c @@ -291,6 +291,8 @@ as_app_state_to_string (AsAppState state) return "available"; if (state == AS_APP_STATE_PURCHASABLE) return "purchasable"; + if (state == AS_APP_STATE_PURCHASING) + return "purchasing"; if (state == AS_APP_STATE_AVAILABLE_LOCAL) return "local"; if (state == AS_APP_STATE_QUEUED_FOR_INSTALL) diff --git a/libappstream-glib/as-app.h b/libappstream-glib/as-app.h index 95e0c1c..8b10e55 100644 --- a/libappstream-glib/as-app.h +++ b/libappstream-glib/as-app.h @@ -251,6 +251,7 @@ typedef enum { * @AS_APP_STATE_REMOVING: Application is being removed * @AS_APP_STATE_UPDATABLE_LIVE: Application is installed and updatable live * @AS_APP_STATE_PURCHASABLE: Application is available for purchasing + * @AS_APP_STATE_PURCHASING: Application is being purchased * * The application state. **/ @@ -266,6 +267,7 @@ typedef enum { AS_APP_STATE_REMOVING, /* Since: 0.2.2 */ AS_APP_STATE_UPDATABLE_LIVE, /* Since: 0.5.4 */ AS_APP_STATE_PURCHASABLE, /* Since: 0.5.17 */ + AS_APP_STATE_PURCHASING, /* Since: 0.5.17 */ /*< private >*/ AS_APP_STATE_LAST } AsAppState; |