Add property to get disabled appinfo as extension 79/125179/4
authorJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 14 Apr 2017 05:14:53 +0000 (14:14 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 17 Apr 2017 07:19:56 +0000 (00:19 -0700)
Change-Id: I85a736609413b4b0bfc2d6ebe2339f9877f5a9d1
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
include/app_info_extension.h
src/app_info.c

index ccf922b9f9bc5078873e67a3db570c7b32e0076d..1faca3af5c098f235c3a4547c31644b6e9d8b3ed 100644 (file)
@@ -34,6 +34,12 @@ extern "C" {
  * @{
  */
 
+/**
+ * @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  Called for each application category in app_info_foreach_category().
  * @since_tizen 4.0
index f23e44ec106756b61c2941c02c4b6ac0f86461dd..7de31cbac6e6a0ae63bdbc4890374fdc36147d2a 100644 (file)
@@ -95,6 +95,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;