Since Tizen 10.0, EFL will be deprecated.
component-based-app that depend on the efl api will also be deprecated.
Change-Id: Idc2b1473cb2d7dc992b555f54b988876c74f2fa1
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the application starts.
* @details The callback function is called before the main loop of the application starts.
* In this callback, you can initialize resources which can be shared among component instances.
typedef component_class_h (*component_based_app_create_cb)(void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the main loop of the application exits.
* @details This callback function is called once after the main loop of the application exits.
* You should release the resources of the application in this function.
typedef void (*component_based_app_terminate_cb)(void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief The structure for lifecycle of a component based application.
* @since_tizen 5.5
*/
} component_based_app_lifecycle_callback_s;
/**
+ * @deprecated Deprecated since 10.0.
* @brief Runs the main loop of the application until component_based_app_exit() is called.
* @since_tizen 5.5
*
*/
int component_based_app_main(int argc, char **argv,
component_based_app_lifecycle_callback_s *callback,
- void *user_data);
+ void *user_data) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 10.0.
* @brief Exits the main loop of the application.
* @since_tizen 5.5
*
* otherwise a negative error value
* @retval #APP_ERROR_NONE Successful
*/
-int component_based_app_exit(void);
+int component_based_app_exit(void) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 10.0.
* @brief Adds a new frame component to @a comp_class.
* @details Adds a new frame component with @a comp_id to @a comp_class.
* If @a comp_class is null, the platform creates a #component_class_h and adds a new frame component with @a comp_id and then return the #component_class_h.
component_class_h comp_class,
const char *comp_id,
frame_component_lifecycle_callback_s *callback,
- void *user_data);
+ void *user_data) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 10.0.
* @brief Adds a service component to @a comp_class.
* @details Adds a new service component with @a comp_id to @a comp_class.
* If @a comp_class is null, the platform creates a #component_class_h and adds a new service component with @a comp_id and then return the #component_class_h.
component_class_h comp_class,
const char *comp_id,
service_component_lifecycle_callback_s *callback,
- void *user_data);
+ void *user_data) TIZEN_DEPRECATED_API;
/**
* @}
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the frame component instance is created.
* @details The returned Evas_Object MUST NOT be released using evas_object_del(). The platform frees the window when the frame component instance is destroyed.
* @since_tizen 5.5
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the frame component instance is started.
* @since_tizen 5.5
* @remarks The @a context should not be released. The @a context can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the frame component becomes visible.
* @since_tizen 5.5
* @remarks The @a context should not be released. The @a context can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the frame component becomes invisible.
* @since_tizen 5.5
* @remarks The @a context should not be released. The @a context can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called before the frame component instance is stopped.
* @since_tizen 5.5
* @remarks The @a context should not be released. The @a context can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called before the frame component instance is destroyed.
* @since_tizen 5.5
* @remarks The @a context should not be released. The @a context can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called after the content information of the frame component instance is restored.
* @since_tizen 5.5
* @remarks The @a content should not be released. The @a content can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called before the content information of the frame component instance is saved.
* @since_tizen 5.5
* @remarks The @a content should not be released. The @a content can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when another application sends a launch request to the component.
* @details Before calling frame_component_start_cb(), this callback function is called.
* @since_tizen 5.5
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the device orientation is changed.
* @since_tizen 5.5
* @remarks The @a context should not be released. The @a context can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the system language is changed.
* @since_tizen 5.5
* @remarks The @a context should not be released. The @a context can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the system region format is changed.
* @since_tizen 5.5
* @remarks The @a context should not be released. The @a context can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the battery status is changed.
* @since_tizen 5.5
* @remarks The @a context should not be released. The @a context can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the memory status is changed.
* @since_tizen 5.5
* @remarks The @a context should not be released. The @a context can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the suspended state of the frame component is changed.
* @since_tizen 5.5
* @remarks The @a context should not be released. The @a context can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the time zone of the frame component is changed.
* @details An application can obtain a changed time zone (e.g., "+9:00") and a time zone id (e.g., "Asia/Seoul").
* @since_tizen 8.0
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief The structure type containing the set of callback functions for lifecycle of a frame component instance.
* @since_tizen 5.5
*/
} frame_component_lifecycle_callback_s;
/**
+ * @deprecated Deprecated since 10.0.
* @brief Gets the display status.
* @since_tizen 5.5
*
* @retval #COMPONENT_ERROR_INVALID_CONTEXT The display is in an unknown state.
*/
int frame_component_get_display_status(component_h context,
- component_display_status_e *display_status);
+ component_display_status_e *display_status) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 10.0.
* @brief Gets an Evas object for the frame component.
* @since_tizen 5.5
* @remarks The @c window MUST NOT be released using evas_object_del().
* @retval #COMPONENT_ERROR_INVALID_PARAMETER Invalid parameter
*/
int frame_component_get_window(component_h context,
- Evas_Object **window);
+ Evas_Object **window) TIZEN_DEPRECATED_API;
/**
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the service component instance is created.
* @since_tizen 5.5
* @remarks The @a context should not be released. The @a context can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the service component instance is started.
* @since_tizen 5.5
* @remarks The @a context should not be released. The @a context can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called before the service component instance is destroyed.
* @since_tizen 5.5
* @remarks The @a context should not be released. The @a context can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called after the content information of the service component instance is restored.
* @since_tizen 5.5
* @remarks The @a content should not be released. The @a content can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called before the content information of the service component instance is saved.
* @since_tizen 5.5
* @remarks The @a content should not be released. The @a content can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when another application sends a launch request to the component.
* @details Before calling service_component_start_command_cb(), this callback function is called.
* @since_tizen 5.5
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the device orientation is changed.
* @since_tizen 5.5
* @remarks The @a context should not be released. The @a context can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the system language is changed.
* @since_tizen 5.5
* @remarks The @a context should not be released. The @a context can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the system region format is changed.
* @since_tizen 5.5
* @remarks The @a context should not be released. The @a context can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the battery status is changed.
* @since_tizen 5.5
* @remarks The @a context should not be released. The @a context can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the memory status is changed.
* @since_tizen 5.5
* @remarks The @a context should not be released. The @a context can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the suspended state of the service component is changed.
* @since_tizen 5.5
* @remarks The @a context should not be released. The @a context can be used only in the callback.
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief Called when the time zone of the service component is changed.
* @details An application can obtain a changed time zone (e.g., "+9:00") and a time zone id (e.g., "Asia/Seoul").
* @since_tizen 8.0
void *user_data);
/**
+ * @deprecated Deprecated since 10.0.
* @brief The structure type containing the set of callback functions for lifecycle of a service component instance.
* @since_tizen 5.5
*/
extern "C" EXPORT_API int component_based_app_main(int argc, char** argv,
component_based_app_lifecycle_callback_s *callback, void* user_data) {
+ LOGW(
+ "DEPRECATION WARNING: %s() is deprecated and will be removed from future "
+ "release.",
+ __FUNCTION__);
if (argc < 1 || argv == nullptr || !callback || !callback->create) {
LOGE("Invalid parameter");
return APP_ERROR_INVALID_PARAMETER;
}
extern "C" EXPORT_API int component_based_app_exit(void) {
+ LOGW(
+ "DEPRECATION WARNING: %s() is deprecated and will be removed from future "
+ "release.",
+ __FUNCTION__);
auto& inst = ::StubApplication::GetInst();
inst.Exit();
return APP_ERROR_NONE;
const char* comp_id,
frame_component_lifecycle_callback_s* callback,
void* user_data) {
+ LOGW(
+ "DEPRECATION WARNING: %s() is deprecated and will be removed from future "
+ "release.",
+ __FUNCTION__);
if (comp_id == nullptr || callback == nullptr) {
LOGE("Invalid parameter");
set_last_result(APP_ERROR_INVALID_PARAMETER);
const char* comp_id,
service_component_lifecycle_callback_s* callback,
void* user_data) {
+ LOGW(
+ "DEPRECATION WARNING: %s() is deprecated and will be removed from future "
+ "release.",
+ __FUNCTION__);
if (comp_id == nullptr || callback == nullptr) {
LOGE("Invalid parameter");
set_last_result(APP_ERROR_INVALID_PARAMETER);
extern "C" EXPORT_API int frame_component_get_display_status(
component_h context, component_display_status_e* display_status) {
+ LOGW(
+ "DEPRECATION WARNING: %s() is deprecated and will be removed from future "
+ "release.",
+ __FUNCTION__);
if (context == nullptr || display_status == nullptr) {
LOGE("Invalid parameter");
return COMPONENT_ERROR_INVALID_PARAMETER;
extern "C" EXPORT_API int frame_component_get_window(
component_h context,
Evas_Object** window) {
+ LOGW(
+ "DEPRECATION WARNING: %s() is deprecated and will be removed from future "
+ "release.",
+ __FUNCTION__);
if (context == nullptr || window == nullptr) {
LOGE("Invalid parameter");
return COMPONENT_ERROR_INVALID_PARAMETER;
#define __TIZEN_APPFW_COMPONENT_BASED_APPLICATION_DOC_H__
/**
- * @defgroup COMPONENT_BASED_APPLICATION_MODULE Component Based Application
+ * @defgroup COMPONENT_BASED_APPLICATION_MODULE Component Based Application (Deprecated)
* @ingroup CAPI_APPLICATION_FRAMEWORK
* @brief Component based application API.
*
*/
/**
- * @defgroup COMPONENT_BASED_FRAME_COMPONENT_MODULE Frame Component
+ * @defgroup COMPONENT_BASED_FRAME_COMPONENT_MODULE Frame Component (Deprecated)
* @ingroup COMPONENT_BASED_APPLICATION_MODULE
* @brief The @ref COMPONENT_BASED_FRAME_COMPONENT_MODULE API provides functions for handling Frame Component state changes or system events, and get information about the Frame Component
*
*/
/**
- * @defgroup COMPONENT_BASED_SERVICE_COMPONENT_MODULE Service Component
+ * @defgroup COMPONENT_BASED_SERVICE_COMPONENT_MODULE Service Component (Deprecated)
* @ingroup COMPONENT_BASED_APPLICATION_MODULE
* @brief The @ref COMPONENT_BASED_SERVICE_COMPONENT_MODULE API provides functions for handling Service Component state changes or system events.
*