/**
* @brief Enumeration for describing error code of minicontrol library.
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 5.0 @endif
*/
typedef enum _minicontrol_error {
MINICONTROL_ERROR_NONE = TIZEN_ERROR_NONE, /**< MiniControl error none */
/**
* @brief Enumeration for describing type of actions allowed to inhouse apps.
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 5.0 @endif
*/
typedef enum {
MINICONTROL_REQ_NONE = 0,
/**
* @brief Enumeration for describing priority of a minicontrol provider.
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 5.0 @endif
*/
typedef enum {
MINICONTROL_PRIORITY_TOP = 1000, /**< Top priority */
/**
* @brief Enumeration for describing type of events originated by a minicontrol provider.
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 5.0 @endif
*/
typedef enum _minicontrol_action {
MINICONTROL_ACTION_START = 0, /**< A minicontrol object is created */
#include <Evas.h>
#include <bundle.h>
-#include "minicontrol-error.h"
-#include "minicontrol-type.h"
+#include <minicontrol-error.h>
+#include <minicontrol-type.h>
#ifdef __cplusplus
extern "C" {
/**
* @brief Called when a event comes from viewer.
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 5.0 @endif
+ * @remarks The @a event_arg should not be released.
* @param[in] event_type The type of fired event
* @param[in] event_arg Argument of the event
+ * The @a event_arg can be used only in the callback. To use outside, make a copy.
* @pre minicontrol_viewer_register_event_callback() used to register this callback.
* @see #minicontrol_create_window
* @see #minicontrol_viewer_event_e
/**
* @brief Creates a window for minicontrol.
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 5.0 @endif
* @remarks The specific error code can be obtained using the gat_last_result() method. Error codes are described in Exception section.
+ * The returned value should be released using evas_object_del().
* @param[in] name Name of minicontrol socket window
* @param[in] target_viewer Target viewer for minicontrol. You can select multiple viewers by using bitwise OR operator
* @param[in] callback A callback function for events originated by minicontrol viewer
/**
* @brief Sends a event to the viewer.
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 5.0 @endif
* @remarks When a viewer doesn't handle some events, it can be ignored.
- * @since_tizen 2.4
* @param[in] minicontrol Minicontrol window
* @param[in] event Type of the event
* @param[in] event_arg Bundle argument of the event
* @return #MINICONTROL_ERROR_NONE on success,
* otherwise an error code on failure
+ * @retval #MINICONTROL_ERROR_NONE Success
* @retval #MINICONTROL_ERROR_INVALID_PARAMETER Invalid argument
* @retval #MINICONTROL_ERROR_NOT_SUPPORTED Not supported
* @see #minicontrol_provider_event_e
/**
* @brief Enumeration for describing types of events originated by a minicontrol provider.
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 5.0 @endif
*/
typedef enum {
MINICONTROL_EVENT_START, /**< A minicontrol object is created */
/**
* @brief Enumeration for types of events which will be sent by minicontrol_send_event.
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 5.0 @endif
*/
typedef enum {
MINICONTROL_PROVIDER_EVENT_REQUEST_HIDE = MINICONTROL_EVENT_REQUEST_HIDE, /**< Requests that the minicontrol viewer(s) close the provider's minicontrol. Required bundle argument : NULL. */
/**
* @brief Enumeration for types of events which will be sent by minicontrol_viewer_send_event.
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 5.0 @endif
*/
typedef enum {
MINICONTROL_VIEWER_EVENT_REPORT_ANGLE = MINICONTROL_EVENT_REPORT_ANGLE, /**< Reports the current angle of the minicontrol viewer. Required argument : Angle of minicontrol viewer, Bundle Key : "angle", Bundle Value Type : string.*/
/**
* @brief Enumeration for selecting target viewers.
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 5.0 @endif
*/
typedef enum {
MINICONTROL_TARGET_VIEWER_QUICK_PANEL = 0x0001, /**< Request to place the minicontrol on the quickpanel */
#include <Evas.h>
#include <bundle.h>
-#include "minicontrol-error.h"
-#include "minicontrol-type.h"
+#include <minicontrol-error.h>
+#include <minicontrol-type.h>
#ifdef __cplusplus
extern "C" {
/**
* @brief Adds minicontrol named as "minicontrol_name" to a given parent evas object and returns it.
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 5.0 @endif
* @remarks The specific error code can be obtained using the gat_last_result() method. Error codes are described in Exception section.
+ * The returned value should be released using evas_object_del().
* @param[in] parent Minicontrol object will be added to this parent evas object
* @param[in] minicontrol_name Name of minicontrol
* @return Evas object of minicontrol. NULL on error
/**
* @brief Sends a event to the provider.
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 5.0 @endif
* @param[in] minicontrol_name The name of the minicontrol window
* @param[in] event Type of the event
* @param[in] event_arg A bundle of arguments
* @return #MINICONTROL_ERROR_NONE on success,
* otherwise an error code on failure
+ * @retval #MINICONTROL_ERROR_NONE Success
* @retval #MINICONTROL_ERROR_INVALID_PARAMETER Invalid argument
* @retval #MINICONTROL_ERROR_NOT_SUPPORTED Not supported
* @see #minicontrol_viewer_event_e
/**
* @brief Called when a event comes from the provider.
- * @since_tizen 2.4
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 5.0 @endif
+ * @remarks The @a event_arg should not be released.
* @param[in] event The type of fired event
* @param[in] minicontrol_name The name of the minicontrol window
+ * The @a minicontrol_name can be used only in the callback. To use outside, make a copy.
* @param[in] event_arg A bundle of arguments
- * @param[in] data User data
+ * The @a event_arg can be used only in the callback. To use outside, make a copy.
+ * @param[in] user_data User data
* @see #minicontrol_viewer_set_event_cb
*/
-typedef void (*minicontrol_viewer_event_cb)(minicontrol_event_e event, const char *minicontrol_name, bundle *event_arg, void *data);
+typedef void (*minicontrol_viewer_event_cb)(minicontrol_event_e event, const char *minicontrol_name, bundle *event_arg, void *user_data);
/**
- * @brief Registers a callback for events originated by minicontrol provider.
- * @since_tizen 2.4
+ * @brief Sets a callback for events originated by minicontrol provider.
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 5.0 @endif
* @param[in] callback Callback function
* @param[in] user_data User data
* @return #MINICONTROL_ERROR_NONE on success,
* otherwise an error code on failure
+ * @retval #MINICONTROL_ERROR_NONE Success
* @retval #MINICONTROL_ERROR_INVALID_PARAMETER Invalid argument
* @retval #MINICONTROL_ERROR_IPC_FAILURE IPC failure
* @retval #MINICONTROL_ERROR_OUT_OF_MEMORY Out of memory
int minicontrol_viewer_set_event_cb(minicontrol_viewer_event_cb callback, void *user_data);
/**
- * @brief Unregisters a callback for events originated by minicontrol provider.
- * @since_tizen 2.4
+ * @brief Unsets a callback for events originated by minicontrol provider.
+ * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 5.0 @endif
* @return #MINICONTROL_ERROR_NONE if success,
* other value if failure
* @retval #MINICONTROL_ERROR_NOT_SUPPORTED Not supported