From: Junghyun Yeon Date: Mon, 10 Apr 2017 11:01:14 +0000 (+0900) Subject: Add property to get disabled appinfo X-Git-Tag: submit/tizen/20170418.005815~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=37bb24fb44dac2a21de493c1212d358200ee5a88;p=platform%2Fcore%2Fapi%2Fapp-manager.git Add property to get disabled appinfo Change-Id: I5411264a4a864b9f52798c14487006a614e5f2d9 Signed-off-by: Junghyun Yeon --- 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 @@ -70,6 +70,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;