* Application Filtering</a>.
* @exception E_OPERATION_FAILED The operation has failed.
* @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
* @remarks Before calling this method, check whether the feature is supported by %Tizen::System::SystemInfo::GetValue()
* methods.
*/
* Application Filtering</a>.
* @exception E_OPERATION_FAILED The operation has failed.
* @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
* @remarks Before calling this method, check whether the feature is supported by %Tizen::System::SystemInfo::GetValue()
* methods.
*/
* <a href="../org.tizen.gettingstarted/html/tizen_overview/application_filtering.htm">
* Application Filtering</a>.
* @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 The method cannot proceed due to a severe system error.
* @see <a href="../org.tizen.native.appprogramming/html/guide/net/nfc_reserved_push.htm">
* The NFC Reserved Push guide</a>
* <a href="../org.tizen.gettingstarted/html/tizen_overview/application_filtering.htm">
* Application Filtering</a>.
* @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 The method cannot proceed due to a severe system error.
* @see <a href="../org.tizen.native.appprogramming/html/guide/net/nfc_reserved_push.htm">
* The NFC Reserved Push guide</a>
* operation. @n
* For example, the NFC feature is already 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 INfcManagerEventListener::OnNfcActivated()
*/
* operation. @n
* For example, the NFC feature is already deactivated.
* @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 INfcManagerEventListener::OnNfcDeactivated()
*/
* @exception E_CONNECTION_FAILED The connection to the tag is closed or has failed.
* @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.
* @remarks
* - The NdefTagConnection class can inherit the TagConnection class if the currently detected tag
* @exception E_SUCCESS The method is successful.
* @exception E_OBJ_ALREADY_EXIST The listener with the specified type is already added.
* @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 can be invoked several times with different Tizen::Net::Nfc::NfcTagType values for the
* same listener instance. In this case, the listener is called if the specified type of the target
* @exception E_SUCCESS The method is successful.
* @exception E_OBJ_NOT_FOUND The listener with the specified type is not found.
* @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.
*/
result RemoveTagDiscoveryEventListener(INfcTagDiscoveryEventListener& listener, NfcTagType type);
* or NDEF_TNF_EXTERNAL.
* @exception E_OBJ_ALREADY_EXIST The listener with the specified type is already added.
* @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 can be invoked several times with different NdefRecordType values for the same
* or NDEF_TNF_EXTERNAL.
* @exception E_OBJ_NOT_FOUND The listener with the specified type is not found.
* @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.
*/
result RemoveNdefMessageDiscoveryEventListener(INdefMessageDiscoveryEventListener& listener, const NdefRecordType& type);
* @exception E_OBJ_ALREADY_EXIST The listener is already added.
* @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.
*/
result AddDeviceDiscoveryEventListener(INfcDeviceDiscoveryEventListener& listener);
* @exception E_SUCCESS The method is successful.
* @exception E_OBJ_NOT_FOUND The listener is not found.
* @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.
*/
result RemoveDeviceDiscoveryEventListener(INfcDeviceDiscoveryEventListener& listener);
* @exception E_INVALID_FORMAT The cached data cannot be converted to the NDEF message.
* @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.
* @remarks
* - The input NdefMessage instance should be deleted by the application after it is used, even
* <a href="../org.tizen.gettingstarted/html/tizen_overview/application_filtering.htm">
* Application Filtering</a>.
* @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
* - Note that this method is used to enable or disable the launch pop-up when the application is in
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_NFC_P2P);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_NFC, r == E_SUCCESS, r, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY, E_USER_NOT_CONSENTED);
+ SysTryReturnResult(NID_NET_NFC, r == E_SUCCESS, r, "The application is not permitted to call this method.");
r = __pImpl->SetNdefPushManagerListener(pListener);
SysTryReturnResult(NID_NET_NFC, r == E_SUCCESS, r, "Failed to add the callback to _NfcSystemAdapter.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_NFC_P2P);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_NFC, r == E_SUCCESS, r, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY, E_USER_NOT_CONSENTED);
+ SysTryReturnResult(NID_NET_NFC, r == E_SUCCESS, r, "The application is not permitted to call this method.");
r = __pImpl->Push(message);
SysTryReturnResult(NID_NET_NFC, r == E_SUCCESS, r, "Failed to push NDEF message.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_NFC_P2P);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_NFC, r == E_SUCCESS, r, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY, E_USER_NOT_CONSENTED);
+ SysTryReturnResult(NID_NET_NFC, r == E_SUCCESS, r, "The application is not permitted to call this method.");
return _NdefPushManagerImpl::RegisterNdefPushMessage(message, description);
}
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_NFC_P2P);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_NFC, r == E_SUCCESS, r, "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY, E_USER_NOT_CONSENTED);
+ SysTryReturnResult(NID_NET_NFC, r == E_SUCCESS, r, "The application is not permitted to call this method.");
return _NdefPushManagerImpl::UnregisterNdefPushMessage();
}
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_NFC_ADMIN);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_NFC, r == E_SUCCESS, r,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY, E_USER_NOT_CONSENTED);
+ SysTryReturnResult(NID_NET_NFC, 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.");
-
return __pImpl->Activate();
}
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_NFC_ADMIN);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_NFC, r == E_SUCCESS, r,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY, E_USER_NOT_CONSENTED);
+ SysTryReturnResult(NID_NET_NFC, 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_NFC_TAG);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- TryCatch(r == E_SUCCESS, , "[%s] The application does not have the privilege to call this method.", GetErrorMessage(r));
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY, E_USER_NOT_CONSENTED);
+ TryCatch(r == E_SUCCESS, , "[%s] The application is not permitted to call this method.", GetErrorMessage(r));
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_NFC_COMMON);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- TryCatch(r == E_SUCCESS, , "[%s] The application does not have the privilege to call this method.", GetErrorMessage(r));
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY, E_USER_NOT_CONSENTED);
+ TryCatch(r == E_SUCCESS, , "[%s] The application is not permitted to call this method.", GetErrorMessage(r));
return _NfcManagerImpl::GetCachedNdefMessageN();
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_NFC_COMMON);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_NFC, r == E_SUCCESS, r,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY, E_USER_NOT_CONSENTED);
+ SysTryReturnResult(NID_NET_NFC, r == E_SUCCESS, r, "The application is not permitted to call this method.");
return _NfcManagerImpl::SetLaunchPopupEnabled(enable);
}
// Privilege check
r = _AccessController::CheckUserPrivilege(_PRV_NFC_TAG);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_NFC, r == E_SUCCESS, r,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY, E_USER_NOT_CONSENTED);
+ SysTryReturnResult(NID_NET_NFC, 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_NFC_TAG);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_NFC, r == E_SUCCESS, r,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY, E_USER_NOT_CONSENTED);
+ SysTryReturnResult(NID_NET_NFC, 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_NFC_COMMON);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_NFC, r == E_SUCCESS, r,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY, E_USER_NOT_CONSENTED);
+ SysTryReturnResult(NID_NET_NFC, 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_NFC_COMMON);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_NFC, r == E_SUCCESS, r,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY, E_USER_NOT_CONSENTED);
+ SysTryReturnResult(NID_NET_NFC, 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_NFC_P2P);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_NFC, r == E_SUCCESS, r,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY, E_USER_NOT_CONSENTED);
+ SysTryReturnResult(NID_NET_NFC, 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_NFC_P2P);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET_NFC, r == E_SUCCESS, r,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY, E_USER_NOT_CONSENTED);
+ SysTryReturnResult(NID_NET_NFC, 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.");