*/
int bt_opp_server_initialize(const char *destination, bt_opp_server_push_requested_cb push_requested_cb, void *user_data);
+/**
+ * @internal
+ * @ingroup CAPI_NETWORK_BLUETOOTH_OPP_MODULE
+ * @brief Gets the percentage progress for ongoing transfers.
+ * @since_tizen 3.0
+ * @exception None
+ * @param[in] transfer_type Transfer Type: (@c BLUETOOTH_TRANSFER_INBOUND = receiving , @c BLUETOOTH_TRANSFER_OUTBOUND = sending)
+ * @param[in] transfer_id Transfer ID
+ * @param[out] progress Percentage Progress
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_NOT_ENABLED Not enabled
+ * @retval #BT_ERROR_OPERATION_FAILED Operation failed
+ */
+int bt_opp_get_transfer_progress(bt_opp_transfer_type_t transfer_type,
+ int transfer_id, unsigned char *progress);
+
/**
* @internal
* @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_AG_MODULE
BT_AG_CALL_STATE_WAITING, /**< Waiting for connected indication event after answering an incoming call*/
} bt_ag_call_state_e;
+/**
+ * @ingroup CAPI_NETWORK_BLUETOOTH_OPP_MODULE
+ * @brief Enumerations for the transfer type
+ * @since_tizen 3.0
+ */
+typedef enum {
+ BT_TRANSFER_INBOUND, /**< Inbound Transfer Type */
+ BT_TRANSFER_OUTBOUND, /**< Outbound Transfer Type */
+} bt_opp_transfer_type_t;
+
/**
* @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE
* @brief Called when the connectable state changes.
*/
int bt_opp_server_initialize(const char *destination, bt_opp_server_push_requested_cb push_requested_cb, void *user_data);
+/**
+ * @internal
+ * @ingroup CAPI_NETWORK_BLUETOOTH_OPP_MODULE
+ * @brief Gets the percentage progress for ongoing transfers.
+ * @since_tizen 3.0
+ * @exception None
+ * @param[in] transfer_type Transfer Type: (@c BLUETOOTH_TRANSFER_INBOUND = receiving , @c BLUETOOTH_TRANSFER_OUTBOUND = sending)
+ * @param[in] transfer_id Transfer ID
+ * @param[out] progress Percentage Progress
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_NOT_ENABLED Not enabled
+ * @retval #BT_ERROR_OPERATION_FAILED Operation failed
+ */
+int bt_opp_get_transfer_progress(bt_opp_transfer_type_t transfer_type,
+ int transfer_id, unsigned char *progress);
+
/**
* @internal
* @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_AG_MODULE
int bt_device_le_conn_update(const char *device_address,
const bt_le_conn_update_s *parameters);
+/**
+ * @internal
+ * @ingroup CAPI_NETWORK_BLUETOOTH_DEVICE_MODULE
+ * @brief Gets the is_alias_set property of a bonded device.
+ * @since_tizen 3.0
+ *
+ * @param [in] remote_address The address of remote device
+ * @param [out] is_alias_set The is_alias_set property of device
+ *
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_NOT_INITIALIZED Not initialized
+ * @retval #BT_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #BT_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #BT_ERROR_NOT_ENABLED Not enabled
+ * @retval #BT_ERROR_NOT_SUPPORTED Not supported
+ *
+ * @pre The state of local Bluetooth must be #BT_ADAPTER_ENABLED.
+ */
+int bt_adapter_get_bonded_device_is_alias_set(const char *remote_address, gboolean *is_alias_set);
+
/**
* @ingroup CAPI_NETWORK_BLUETOOTH_HID_MODULE
* @brief Registers the method for HID Device role
BT_AG_CALL_STATE_WAITING, /**< Waiting for connected indication event after answering an incoming call*/
} bt_ag_call_state_e;
+/**
+ * @ingroup CAPI_NETWORK_BLUETOOTH_OPP_MODULE
+ * @brief Enumerations for the transfer type
+ * @since_tizen 3.0
+ */
+typedef enum {
+ BT_TRANSFER_INBOUND, /**< Inbound Transfer Type */
+ BT_TRANSFER_OUTBOUND, /**< Outbound Transfer Type */
+} bt_opp_transfer_type_t;
+
/**
* @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE
* @brief Called when the connectable state changes.
*/
int bt_opp_server_initialize(const char *destination, bt_opp_server_push_requested_cb push_requested_cb, void *user_data);
+/**
+ * @internal
+ * @ingroup CAPI_NETWORK_BLUETOOTH_OPP_MODULE
+ * @brief Gets the percentage progress for ongoing transfers.
+ * @since_tizen 3.0
+ * @exception None
+ * @param[in] transfer_type Transfer Type: (@c BLUETOOTH_TRANSFER_INBOUND = receiving , @c BLUETOOTH_TRANSFER_OUTBOUND = sending)
+ * @param[in] transfer_id Transfer ID
+ * @param[out] progress Percentage Progress
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_NOT_ENABLED Not enabled
+ * @retval #BT_ERROR_OPERATION_FAILED Operation failed
+ */
+int bt_opp_get_transfer_progress(bt_opp_transfer_type_t transfer_type,
+ int transfer_id, unsigned char *progress);
+
/**
* @internal
* @ingroup CAPI_NETWORK_BLUETOOTH_AUDIO_AG_MODULE
BT_AG_CALL_STATE_WAITING, /**< Waiting for connected indication event after answering an incoming call*/
} bt_ag_call_state_e;
+/**
+ * @ingroup CAPI_NETWORK_BLUETOOTH_OPP_MODULE
+ * @brief Enumerations for the transfer type
+ * @since_tizen 3.0
+ */
+typedef enum {
+ BT_TRANSFER_INBOUND, /**< Inbound Transfer Type */
+ BT_TRANSFER_OUTBOUND, /**< Outbound Transfer Type */
+} bt_opp_transfer_type_t;
+
/**
* @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE
* @brief Called when the connectable state changes.
return error_code; /* LCOV_EXCL_STOP */
}
+/* LCOV_EXCL_START */
+int bt_opp_get_transfer_progress(bt_opp_transfer_type_t transfer_type,
+ int transfer_id, unsigned char *progress)
+{
+ int error_code = BT_ERROR_NONE;
+
+ BT_CHECK_OPP_SERVER_SUPPORT();
+ BT_CHECK_INIT_STATUS();
+ BT_CHECK_INPUT_PARAMETER(progress);
+
+ error_code = _bt_get_error_code(bluetooth_opp_get_transfer_progress(transfer_type, transfer_id, progress));
+ if (error_code != BT_ERROR_NONE) {
+ BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code),
+ error_code);
+ *progress = 0;
+ }
+
+ return error_code;
+
+}
+/* LCOV_EXCL_STOP */