* @exception E_SERVICE_UNAVAILABLE The sink role with the specified data type is currently busy with another
* instance or application.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_OPERATION_FAILED The method has failed.
*/
result StartAsSink(int dataType);
* operation. @n
* For example, the sink role is not started yet.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_OPERATION_FAILED The method has failed.
*/
result Stop(void);
* For example, the sink role is not started yet.
* @exception E_DEVICE_BUSY The pairing and connection process is in progress.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_OPERATION_FAILED The method has failed.
* @remarks If the local device is not paired with the specified target device, the pairing process starts
* internally before the connect request is sent.
* operation. @n
* For example, there is no connection with the specified channel ID.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_OPERATION_FAILED The method has failed.
*/
result Disconnect(int channelId);
* For example, there is no connection with the specified channel ID.
* @exception E_INVALID_ARG The input buffer has no data.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_OPERATION_FAILED The operation has failed.
* @see IBluetoothHealthEventListener::OnHealthDataReceived()
*/
* For example, %Bluetooth is already activated.
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_SYSTEM A system error has occurred.
* @see IBluetoothManagerEventListener::OnBluetoothActivated()
*/
* For example, the %Bluetooth is already deactivated.
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_SYSTEM A system error has occurred.
* @see IBluetoothManagerEventListener::OnBluetoothDeactivated()
*/
* @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG The specified device name is an empty string.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_SYSTEM A system error has occurred.
* @remarks This method does not affect the system settings.
*/
* is @c BT_DISC_MODE_TIME_LIMITED_DISCOVERABLE.
* @exception E_INVALID_OPERATION %Bluetooth is not activated.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_SYSTEM A system error has occurred.
* @see IBluetoothManagerEventListener::OnBluetoothDiscoverableModeChanged()
*/
* @exception E_INVALID_OPERATION The current state of the instance prohibits the execution of this
* operation.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_SYSTEM A system error has occurred.
* @see IBluetoothDeviceEventListener::OnBluetoothDiscoveryStarted()
* @see IBluetoothDeviceEventListener::OnBluetoothRemoteDeviceFoundN()
* operation. @n
* For example, the discovery has not started as yet.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_SYSTEM A system error has occurred.
* @see IBluetoothDeviceEventListener::OnBluetoothDiscoveryDone()
*/
* For example, the discovery is in progress.
* @exception E_NOT_PAIRED The input device is not found in the paired device list.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_SYSTEM A system error has occurred.
* @remarks The target remote device should be a paired device.
* @see IBluetoothDeviceEventListener::OnBluetoothServiceListReceived()
* For example, the %Bluetooth is not activated.
* @exception E_DEVICE_BUSY The device cannot be approached because other operation is in progress.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_SYSTEM A system error has occurred.
* @remarks IBluetoothDeviceEventListener::OnBluetoothPaired() is called if the pairing is successful, @n
* IBluetoothDeviceEventListener::OnBluetoothPairingFailed() if the pairing has failed.
* For example, the pairing process is not in progress.
* @exception E_IN_PROGRESS The termination of the pairing process is in progress.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_SYSTEM A system error has occurred.
* @remarks If the canceling of the pairing process is successful, @n
* IBluetoothDeviceEventListener::OnBluetoothPairingFailed() is called with @c E_OPERATION_CANCELED.
* list is in progress.
* @exception E_NOT_PAIRED The input device is not found in the paired device list.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_SYSTEM A system error has occurred.
* @see IBluetoothDeviceEventListener::OnBluetoothUnpaired()
*/
* For example, %Bluetooth is not activated.
* @exception E_IN_PROGRESS The push process is in progress.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_SERVICE_UNAVAILABLE The OPP service is unavailable.
* @exception E_INACCESSIBLE_PATH The specified @c filePath is inaccessible.
* @exception E_REMOTE_DEVICE_NOT_FOUND The input device is not found. @n
* operation. @n
* For example, the push request is not sent or accepted by a remote device.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_FAILURE The method has failed.
*/
result CancelPush(void);
* For example, the service is not started yet or a push request is not
* received from a remote device.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_FAILURE The method has failed.
* @see IBluetoothOppClientEventListener::OnOppPushResponded()
*/
* For example, the service is not started yet or a push request is not
* received from a remote device.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_FAILURE The method has failed.
* @see IBluetoothOppClientEventListener::OnOppPushResponded()
*/
* For example, %Bluetooth is not activated.
* @exception E_IN_PROGRESS The service has already started.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_SERVICE_UNAVAILABLE The OPP service is unavailable.
* @exception E_INACCESSIBLE_PATH The specified @c dstPath is inaccessible.
* @exception E_INVALID_OPERATION The current state of the instance prohibits the execution of the specified
* operation. @n
* For example, the service is not started as yet.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_IN_PROGRESS The stop process is in progress.
* @exception E_FAILURE The method has failed.
*/
* operation. @n
* For example, the file transfer is not in progress.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_OPERATION_FAILED The operation has failed.
*/
result StopTransfer(void);
* For example, the service is not started yet or the connection request is
* not yet received from a remote device.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_FAILURE The method has failed.
* @see IBluetoothSppInitiatorEventListener::OnSppConnectionResponded()
*/
* For example, the service is not started yet or the connection request is
* not yet received from a remote device.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_FAILURE The method has failed.
* @see IBluetoothSppInitiatorEventListener::OnSppConnectionResponded()
*/
* @exception E_IN_PROGRESS The service has already started.
* @exception E_ALREADY_CONNECTED The connection with an SPP initiator has already been established.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_SERVICE_UNAVAILABLE The SPP service with the specified UUId is unavailable.
* @exception E_FAILURE The method has failed.
*/
* @exception E_IN_PROGRESS The service has already started.
* @exception E_ALREADY_CONNECTED The connection with an SPP initiator has already been established.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_SERVICE_UNAVAILABLE The SPP service with the specified UUId is unavailable.
* @exception E_FAILURE The method has failed.
*/
* operation. @n
* For example, the service is not started yet.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_FAILURE The method has failed.
*/
result StopService(void);
* For example, the service is not started yet or a connection with a remote
* device is not established.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_FAILURE The method has failed.
* @see IBluetoothSppAcceptorEventListener::OnSppDisconnected()
* @see IBluetoothSppInitiatorEventListener::OnSppDisconnected()
* @exception E_INVALID_ARG The specified @c buffer is empty.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_FAILURE The method has failed.
* @see IBluetoothSppInitiatorEventListener::OnSppDataReceived()
*/
* @exception E_IN_PROGRESS The connection process is in progress.
* @exception E_ALREADY_CONNECTED The connection with an SPP acceptor has already been established.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_SERVICE_UNAVAILABLE The SPP connection is unavailable.
* @exception E_REMOTE_DEVICE_NOT_FOUND The input device is not found. @n
* This exception is currently not in use.
* @exception E_IN_PROGRESS The connection process is in progress.
* @exception E_ALREADY_CONNECTED The connection with an SPP acceptor has already been established.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_SERVICE_UNAVAILABLE The SPP connection is unavailable.
* @exception E_REMOTE_DEVICE_NOT_FOUND The input device is not found. @n
* This exception is currently not in use.
* For example, the connection request is not sent or a connection with a
* remote device is not established yet.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_FAILURE The method has failed.
* @see IBluetoothSppAcceptorEventListener::OnSppDisconnected()
*/
* @exception E_INVALID_ARG The argument has no data.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_FAILURE The method has failed.
* @see IBluetoothSppAcceptorEventListener::OnSppDataReceived()
*/
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_HEALTH);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// Check Construct
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_HEALTH);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// Check Construct
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_HEALTH);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// Check Construct
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_HEALTH);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// Check Construct
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_HEALTH);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// Check Construct
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_ADMIN);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_ADMIN);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_ADMIN);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_GAP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_GAP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_GAP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_GAP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_GAP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_GAP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_OPP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// Check Construct
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_OPP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// Check Construct
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_OPP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// Check Construct
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_OPP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// Check Construct
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_OPP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// Check Construct
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_OPP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// Check Construct
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_OPP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// Check Construct
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_SPP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// Check Construct
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_SPP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// Check Construct
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_SPP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// Check Construct
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_SPP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// Check Construct
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_SPP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// Check Construct
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_SPP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// Check Construct
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_SPP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// Check Construct
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_SPP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// Check Construct
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_BLUETOOTH_SPP);
- SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
+ SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// Check Construct
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Sets the discoverable mode through osp-connectivity-service.
r = __pIpcProxy->SetDiscoverableMode((int)mode, seconds);
- SysTryReturnResult(NID_NET_BT, r != E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED,
- "The application does not have the privilege to call this method.");
+ SysTryReturnResult(NID_NET_BT, r != E_PRIVILEGE_DENIED && r != E_USER_NOT_CONSENTED, r,
+ "The application is not permitted to call this method.");
SysTryReturn(NID_NET_BT, r == E_SUCCESS, r, r,
"[%s] Setting the the discoverable mode through osp-connectivity-service has failed.", GetErrorMessage(r));
*
* @visibility partner-manufacturer
* @privlevel platform
- * @privilege http://tizen.org/privilege/bluetoothmanager
+ * @privilege %http://tizen.org/privilege/bluetoothmanager
*
* @return An error code
* @param[in] mode The new discoverable mode
* @c mode is BT_DISC_MODE_TIME_LIMITED_DISCOVERABLE.
* @exception E_INVALID_OPERATION %Bluetooth is not activated.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @exception E_SYSTEM A system error has occurred.
* @see IBluetoothManagerEventListener::OnBluetoothDiscoverableModeChanged()
* @remarks @c seconds is adopted only if the specified @c mode is BT_DISC_MODE_TIME_LIMITED_DISCOVERABLE.