Add string filter property for app installed storage 75/84475/8 accepted/tizen/common/20160912.180707 accepted/tizen/ivi/20160912.093238 accepted/tizen/mobile/20160912.093150 accepted/tizen/tv/20160912.093203 accepted/tizen/wearable/20160912.093222 submit/tizen/20160911.233959
authorJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 19 Aug 2016 02:34:44 +0000 (11:34 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 9 Sep 2016 08:50:03 +0000 (01:50 -0700)
Change-Id: I04da94628fb57d2682259ec57ae710d69d4af849
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
doc/appfw_app_manager_doc.h
include/app_info.h
src/app_info.c

index 5182939..3616643 100755 (executable)
  * <td>String</td>
  * </tr>
  * <tr>
+ * <td>PACKAGE_INFO_PROP_APP_INSTALLED_STORAGE</td>
+ * <td>String</td>
+ * </tr>
+ * <tr>
  * <td>PACKAGE_INFO_PROP_APP_NODISPLAY</td>
  * <td>Boolean</td>
  * </tr>
index 3b6b68d..14c65c1 100644 (file)
@@ -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
  */
index 973efe2..919e96d 100644 (file)
@@ -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;