From 37bb24fb44dac2a21de493c1212d358200ee5a88 Mon Sep 17 00:00:00 2001 From: Junghyun Yeon Date: Mon, 10 Apr 2017 20:01:14 +0900 Subject: [PATCH] Add property to get disabled appinfo Change-Id: I5411264a4a864b9f52798c14487006a614e5f2d9 Signed-off-by: Junghyun Yeon --- include/app_info.h | 6 ++++++ src/app_info.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/include/app_info.h b/include/app_info.h index 8125341..2b14030 100644 --- a/include/app_info.h +++ b/include/app_info.h @@ -71,6 +71,12 @@ extern "C" { #define PACKAGE_INFO_PROP_APP_TASKMANAGE "PACKAGE_INFO_PROP_APP_TASKMANAGE" /** + * @brief Definition for boolean property for filtering based on app info: Boolean property for filtering whether the application has been disabled + * @since_tizen 4.0 + */ +#define PACKAGE_INFO_PROP_APP_DISABLED "PACKAGE_INFO_PROP_APP_DISABLED" + +/** * @brief Application information handle. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ diff --git a/src/app_info.c b/src/app_info.c index c9967ec..2365b65 100644 --- a/src/app_info.c +++ b/src/app_info.c @@ -94,6 +94,8 @@ static int app_info_convert_bool_property(const char *property, char **converted *converted_property = PMINFO_APPINFO_PROP_APP_NODISPLAY; else if (strcmp(property, PACKAGE_INFO_PROP_APP_TASKMANAGE) == 0) *converted_property = PMINFO_APPINFO_PROP_APP_TASKMANAGE; + else if (strcmp(property, PACKAGE_INFO_PROP_APP_DISABLED) == 0) + *converted_property = PMINFO_APPINFO_PROP_APP_DISABLE; else return -1; -- 2.7.4