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 5182939586696750db43676b5f27e3d9261aa581..3616643d3795cd26b2abaf20edee7a0b9102bd50 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 3b6b68d32cf0738ab90382ca2e799d272e8217c2..14c65c10f07d5f205aff5b181fb0ecea12bca78a 100644 (file)
@@ -51,6 +51,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 973efe224d0780a18f705656f7af4a6555f9e3e6..919e96dd941b14cf0631eb487343bbd79796d191 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;