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 81253412b2bfb344f4862837f6e2e5eeae01bb11..2b14030d541d39833d6834b78bec28e33c161dc3 100644 (file)
@@ -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
index c9967eccdc873ccc5e8c230dce7a37e49d42f37f..2365b65374d0eab06b04e46f7fdeb0c78536ddce 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;