From: Junghyun Yeon Date: Fri, 19 Aug 2016 02:34:44 +0000 (+0900) Subject: Add string filter property for app installed storage X-Git-Tag: accepted/tizen/common/20160912.180707^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42c87d5064627e385ca0a35a6b166186b2884906;p=platform%2Fcore%2Fapi%2Fapp-manager.git Add string filter property for app installed storage Change-Id: I04da94628fb57d2682259ec57ae710d69d4af849 Signed-off-by: Junghyun Yeon --- diff --git a/doc/appfw_app_manager_doc.h b/doc/appfw_app_manager_doc.h index 5182939..3616643 100755 --- a/doc/appfw_app_manager_doc.h +++ b/doc/appfw_app_manager_doc.h @@ -78,6 +78,10 @@ * String * * + * PACKAGE_INFO_PROP_APP_INSTALLED_STORAGE + * String + * + * * PACKAGE_INFO_PROP_APP_NODISPLAY * Boolean * diff --git a/include/app_info.h b/include/app_info.h index 3b6b68d..14c65c1 100644 --- a/include/app_info.h +++ b/include/app_info.h @@ -52,6 +52,13 @@ extern "C" { #define PACKAGE_INFO_PROP_APP_CATEGORY "PACKAGE_INFO_PROP_APP_CATEGORY" /** + * @brief Definition for string property for filtering based on app info: String property for filtering packages with installed storage of app + * Value related with this property should be "installed_internal" or "installed_external" + * @since_tizen 3.0 + */ +#define PACKAGE_INFO_PROP_APP_INSTALLED_STORAGE "PACKAGE_INFO_PROP_APP_INSTALLED_STORAGE" + +/** * @brief Definition for boolean property for filtering based on app info: Boolean property for filtering whether the package is nodisplay or not based on package info * @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 973efe2..919e96d 100644 --- a/src/app_info.c +++ b/src/app_info.c @@ -64,13 +64,12 @@ static int app_info_convert_str_property(const char *property, char **converted_ if (strcmp(property, PACKAGE_INFO_PROP_APP_ID) == 0) *converted_property = PMINFO_APPINFO_PROP_APP_ID; - else if (strcmp(property, PACKAGE_INFO_PROP_APP_TYPE) == 0) *converted_property = PMINFO_APPINFO_PROP_APP_TYPE; - else if (strcmp(property, PACKAGE_INFO_PROP_APP_CATEGORY) == 0) *converted_property = PMINFO_APPINFO_PROP_APP_CATEGORY; - + else if (strcmp(property, PACKAGE_INFO_PROP_APP_INSTALLED_STORAGE) == 0) + *converted_property = PMINFO_APPINFO_PROP_APP_INSTALLED_STORAGE; else return -1; @@ -84,7 +83,6 @@ static int app_info_convert_bool_property(const char *property, char **converted if (strcmp(property, PACKAGE_INFO_PROP_APP_NODISPLAY) == 0) *converted_property = PMINFO_APPINFO_PROP_APP_NODISPLAY; - else if (strcmp(property, PACKAGE_INFO_PROP_APP_TASKMANAGE) == 0) *converted_property = PMINFO_APPINFO_PROP_APP_TASKMANAGE;