int pkgmgrinfo_appinfo_is_global(pkgmgrinfo_appinfo_h handle, bool *global);
/**
+ * @fn int pkgmgrinfo_appinfo_get_splash_screen_display(pkgmgrinfo_appinfo_h handle, bool *splash_screen_display)
+ * @brief This API gets the application 'splash_screen_display' value from the app ID
+ *
+ * @par This API is for package-manager client application
+ * @par Sync (or) Async : Synchronous API
+ *
+ * @param[in] handle pointer to application info handle
+ * @param[out] splash_screen_display pointer to hold package splash_screen_display value
+ * @return 0 if success, error code(<0) if fail
+ * @retval PMINFO_R_OK success
+ * @retval PMINFO_R_EINVAL invalid argument
+ * @retval PMINFO_R_ERROR internal error
+ */
+int pkgmgrinfo_appinfo_get_splash_screen_display(pkgmgrinfo_appinfo_h handle, bool *splash_screen_display);
+
+/**
* @fn int pkgmgrinfo_appinfo_destroy_appinfo(pkgmgrinfo_appinfo_h handle)
* @brief This API destroys the application information handle freeing up all the resources
*
char *api_version; /*set from package_x*/
char *for_all_users; /**< Flag that indicates if the package is available for everyone or for current user only, no xml part*/
char *is_disabled; /**< Flag that indicates if the application is disabled or not, no xml part*/
-
+ char *splash_screen_display; /*attr, default: "true"*/
GList *label; /*element*/
GList *icon; /*element*/
GList *image; /*element*/
<xs:attribute name="multi-instance-mainid" type="xs:string"/>
<xs:attribute name="ui-gadget" type="xs:boolean"/>
<xs:attribute name="launch_mode" type="xs:string"/>
+ <xs:attribute name="splash-screen-display" type="xs:boolean"/>
<xs:anyAttribute namespace="##any" processContents="lax"/>
</xs:complexType>
</xs:element>
<xs:attribute name="multi-instance-mainid" type="xs:string"/>
<xs:attribute name="ui-gadget" type="xs:boolean"/>
<xs:attribute name="launch_mode" type="packages:LaunchType"/>
+ <xs:attribute name="splash-screen-display" type="xs:boolean"/>
</xs:complexType>
</xs:element>
<xs:element name="ime-application">
__save_xml_attribute(reader, "ui-gadget", &application->ui_gadget, "false");
__save_xml_attribute(reader, "auto-restart", &application->autorestart, "false");
__save_xml_attribute(reader, "on-boot", &application->onboot, "false");
+ __save_xml_attribute(reader, "splash-screen-display", &application->splash_screen_display, "true");
application->package= strdup(package);
/* overwrite some attributes if the app is widgetapp */
"app_root_path text, " \
"app_api_version text, " \
"app_effective_appid text, " \
+ "app_splash_screen_display text DEFAULT 'true', " \
"FOREIGN KEY(package) " \
"REFERENCES package_info(package) " \
"ON DELETE CASCADE)"
"app_preload, app_submode, app_submode_mainid, app_installed_storage, app_process_pool, " \
"app_launch_mode, app_ui_gadget, app_support_disable, component_type, package, " \
"app_tep_name, app_background_category, app_package_type, app_root_path, app_api_version, " \
- "app_effective_appid) " \
+ "app_effective_appid, app_splash_screen_display) " \
"values(" \
"'%s', '%s', '%s', '%s', '%s', " \
"'%s', '%s', '%s', '%s', '%s', " \
"'%s', '%s', '%s', '%s', '%s', " \
"'%s', '%s', '%s', '%s', '%s', " \
"'%s', '%d', '%s', '%s', '%s', " \
- "'%s')", \
+ "'%s', '%s')", \
app->appid, app->component_type, app->exec, app->nodisplay, app->type,
app->onboot, app->multiple, app->autorestart, app->taskmanage, app->enabled,
app->hwacceleration, app->screenreader, app->mainapp, __get_str(app->recentimage), app->launchcondition,
mfx->preload, app->submode, __get_str(app->submode_mainid), mfx->installed_storage, app->process_pool,
app->launch_mode, app->ui_gadget, mfx->support_disable, app->component_type, mfx->package,
__get_str(mfx->tep_name), background_value, type, mfx->root_path, __get_str(mfx->api_version),
- __get_str(effective_appid));
+ __get_str(effective_appid), app->splash_screen_display);
ret = __exec_query(query);
if (ret == -1) {
"app_support_disable, "
"component_type, package, app_process_pool, app_installed_storage, "
"app_background_category, app_package_type, "
- "app_root_path, app_api_version, app_effective_appid, app_disable "
+ "app_root_path, app_api_version, app_effective_appid, app_disable, "
+ "app_splash_screen_display "
"FROM package_app_info WHERE app_id='%s' "
"AND (app_disable='%s' "
"%s app_id %s IN "
_save_column_str(stmt, idx++, &info->root_path);
_save_column_str(stmt, idx++, &info->api_version);
_save_column_str(stmt, idx++, &info->effective_appid);
- _save_column_str(stmt, idx++, &info->is_disabled);
+ _save_column_str(stmt, idx++, &info->is_disabled);
+ _save_column_str(stmt, idx++, &info->splash_screen_display);
info->background_category = __get_background_category(bg_category_str);
free(bg_category_str);
"app_installed_storage, app_process_pool, app_launch_mode, "
"app_package_type, component_type, package, app_tep_name, "
"app_background_category, app_root_path, app_api_version, "
- "app_effective_appid, (CASE WHEN A.app_disable='true' THEN 'true' "
+ "app_effective_appid, app_disable, app_splash_screen_display, "
+ "(CASE WHEN A.app_disable='true' THEN 'true' "
"ELSE (CASE WHEN (SELECT app_id FROM package_app_disable_for_user "
"WHERE app_id=A.app_id AND uid='%d') IS NULL "
"THEN 'false' ELSE 'true' END) END) AS app_disable "
_save_column_str(stmt, idx++, &appinfo->api_version);
_save_column_str(stmt, idx++, &appinfo->effective_appid);
- _save_column_str(stmt, idx++, &appinfo->is_disabled);
+ _save_column_str(stmt, idx++, &appinfo->is_disabled);
+ _save_column_str(stmt, idx++, &appinfo->splash_screen_display);
appinfo->background_category = __get_background_category(bg_category_str);
free(bg_category_str);
app_info->package_type = strdup(data->package_type);
if (data->effective_appid != NULL)
app_info->effective_appid = strdup(data->effective_appid);
+ if (data->splash_screen_display != NULL)
+ app_info->splash_screen_display = strdup(data->splash_screen_display);
/* GList */
ret = 0;
*global = _get_bool_value(info->app_info->for_all_users);
return PMINFO_R_OK;
+}
+
+API int pkgmgrinfo_appinfo_get_splash_screen_display(pkgmgrinfo_appinfo_h handle, bool *splash_screen_display)
+{
+ pkgmgr_appinfo_x *info = (pkgmgr_appinfo_x *)handle;
+ if (info == NULL || splash_screen_display == NULL) {
+ _LOGE("Invalid parameter");
+ return PMINFO_R_EINVAL;
+ }
+
+ if (info->app_info == NULL || info->app_info->splash_screen_display == NULL)
+ return PMINFO_R_ERROR;
+
+ *splash_screen_display = _get_bool_value(info->app_info->splash_screen_display);
+
+ return PMINFO_R_OK;
}
API int pkgmgrinfo_appinfo_destroy_appinfo(pkgmgrinfo_appinfo_h handle)
free((void *)application->effective_appid);
if (application->is_disabled)
free((void *)application->is_disabled);
+ if (application->splash_screen_display)
+ free((void *)application->splash_screen_display);
/*Free Label*/
g_list_free_full(application->label, __ps_free_label);