Add a new component type for component-based application 88/201088/7
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 8 Mar 2019 06:54:48 +0000 (15:54 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 3 Jul 2019 05:50:02 +0000 (14:50 +0900)
Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/pkgmgr-info/+/200568/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/tpk-manifest-handlers/+/200669/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/200691/
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/amd/+/200773/

Change-Id: If676ed9aba934a08d92d4a1e7b16d8f6a61f32ef
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
include/app_info.h
src/app_info.c

index a9f7740..5200dbb 100644 (file)
@@ -79,8 +79,8 @@ extern "C" {
 /**
  * @brief Definition for string property for filtering based on app info: String property for
  *        filtering with the application component type.
- *        Value related with this property should be one of "uiapp", "svcapp", "widgetapp"
- *        and "watchapp".
+ *        Value related with this property should be one of "uiapp", "svcapp", "widgetapp",
+ *        "watchapp" and "componentbasedapp" (Since 5.5).
  * @since_tizen 4.0
  * @see app_info_app_component_type_e
  * @see app_info_get_app_component_type()
@@ -97,10 +97,11 @@ extern "C" {
  * @see app_info_get_app_component_type()
  */
 typedef enum {
-        APP_INFO_APP_COMPONENT_TYPE_UI_APP,       /**< UI application */
-        APP_INFO_APP_COMPONENT_TYPE_SERVICE_APP,  /**< Service application */
-        APP_INFO_APP_COMPONENT_TYPE_WIDGET_APP,   /**< Widget application */
-        APP_INFO_APP_COMPONENT_TYPE_WATCH_APP,    /**< Watch application */
+       APP_INFO_APP_COMPONENT_TYPE_UI_APP,                     /**< UI application */
+       APP_INFO_APP_COMPONENT_TYPE_SERVICE_APP,                /**< Service application */
+       APP_INFO_APP_COMPONENT_TYPE_WIDGET_APP,                 /**< Widget application */
+       APP_INFO_APP_COMPONENT_TYPE_WATCH_APP,                  /**< Watch application */
+       APP_INFO_APP_COMPONENT_TYPE_COMPONENT_BASED_APP,        /**< Component-based application (Since 5.5) */
 } app_info_app_component_type_e;
 
 /**
index e9e23c6..ada3d46 100644 (file)
@@ -115,6 +115,8 @@ static int app_info_convert_app_component(pkgmgrinfo_app_component component, ap
                *converted_component = APP_INFO_APP_COMPONENT_TYPE_WIDGET_APP;
        else if (component == PMINFO_WATCH_APP)
                *converted_component = APP_INFO_APP_COMPONENT_TYPE_WATCH_APP;
+       else if (component == PMINFO_COMPONENT_BASED_APP)
+               *converted_component = APP_INFO_APP_COMPONENT_TYPE_COMPONENT_BASED_APP;
        else
                return -1;