Add property to get disabled appinfo 80/124180/4
authorJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 10 Apr 2017 11:01:14 +0000 (20:01 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 14 Apr 2017 07:59:38 +0000 (16:59 +0900)
Change-Id: I5411264a4a864b9f52798c14487006a614e5f2d9
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
include/app_info.h
src/app_info.c

index 8125341..2b14030 100644 (file)
@@ -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
  */
index c9967ec..2365b65 100644 (file)
@@ -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;