From 6a031369755f535d0b1c2c56fd7ee497710f5cc0 Mon Sep 17 00:00:00 2001 From: "jh8801.jung" Date: Mon, 24 Jul 2017 15:48:33 +0900 Subject: [PATCH] Add privilege tag Signed-off-by: jh8801.jung Change-Id: I7631074ac34c0f37320053215a32238cbe49e452 --- .../Tizen.Network.Nfc/NfcCardEmulationAdapter.cs | 16 ++++++++++++++++ src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcManager.cs | 3 +++ src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2p.cs | 1 + src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2pAdapter.cs | 1 + .../Tizen.Network.Nfc/NfcSecureElement.cs | 1 + src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs | 5 +++++ src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTagAdapter.cs | 1 + 7 files changed, 28 insertions(+) mode change 100644 => 100755 src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcSecureElement.cs diff --git a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCardEmulationAdapter.cs b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCardEmulationAdapter.cs index d74be00..a8d00dc 100755 --- a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCardEmulationAdapter.cs +++ b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcCardEmulationAdapter.cs @@ -41,6 +41,7 @@ namespace Tizen.Network.Nfc /// Event that is called when receiving Secure Element (SIM/UICC(Universal Integrated Circuit Card)) event. /// /// 3 + /// http://tizen.org/privilege/nfc.cardemulation public event EventHandler SecureElementEvent { add @@ -65,6 +66,7 @@ namespace Tizen.Network.Nfc /// Event that is called when receiving Secure Element(SIM/UICC(Universal Integrated Circuit Card)) transaction event for 'ESE(SmartMX)' type. /// /// 3 + /// http://tizen.org/privilege/nfc.cardemulation public event EventHandler EseSecureElementTransactionEvent { add @@ -89,6 +91,7 @@ namespace Tizen.Network.Nfc /// Event that is called when receiving Secure Element(SIM/UICC(Universal Integrated Circuit Card)) transaction event for 'UICC' type. /// /// 3 + /// http://tizen.org/privilege/nfc.cardemulation public event EventHandler UiccSecureElementTransactionEvent { add @@ -113,6 +116,7 @@ namespace Tizen.Network.Nfc /// Event that is called when when receiving HCE(Host Card Emulation) event. /// /// 3 + /// http://tizen.org/privilege/nfc.cardemulation public event EventHandler HostCardEmulationEvent { add @@ -165,6 +169,7 @@ namespace Tizen.Network.Nfc /// Enable card emulation mode. /// /// 3 + /// http://tizen.org/privilege/nfc.cardemulation /// Thrown when Nfc is not supported. /// Thrown when the method failed due to invalid operation. public void EnableCardEmulation() @@ -181,6 +186,7 @@ namespace Tizen.Network.Nfc /// Disable card emulation mode. /// /// 3 + /// http://tizen.org/privilege/nfc.cardemulation /// Thrown when Nfc is not supported. /// Thrown when the method failed due to invalid operation. public void DisableCardEmulation() @@ -198,6 +204,7 @@ namespace Tizen.Network.Nfc /// /// 3 /// Enumeration value of NfcSecureElementCardEmulationMode. + /// http://tizen.org/privilege/nfc.cardemulation public NfcSecureElementCardEmulationMode GetCardEmulationMode() { int mode = 0; @@ -214,6 +221,7 @@ namespace Tizen.Network.Nfc /// Give the priority to the foreground application when dispatching transaction event. /// /// 3 + /// http://tizen.org/privilege/nfc.cardemulation /// Thrown when Nfc is not supported. /// Thrown when the method failed due to invalid operation. public void EnableTransactionForegroundDispatch() @@ -230,6 +238,7 @@ namespace Tizen.Network.Nfc /// Disable foreground dispatch for "EVT_TRANSACTION" to the givin application. /// /// 3 + /// http://tizen.org/privilege/nfc.cardemulation /// Thrown when Nfc is not supported. /// Thrown when the method failed due to invalid operation. public void DisableTransactionForegroundDispatch() @@ -249,6 +258,7 @@ namespace Tizen.Network.Nfc /// 'True' when application is currently the activated handler, otherwise 'False'. /// The type of Secure Element. /// Application Id, specified in ISO/IEC 7816-4. + /// http://tizen.org/privilege/nfc.cardemulation /// Thrown when Nfc is not supported. /// Thrown when method is failed due to an invalid parameter. /// Thrown when the method failed due to invalid operation. @@ -272,6 +282,7 @@ namespace Tizen.Network.Nfc /// 'True' when application is currently the activated handler, otherwise 'False'. /// The type of Secure Element. /// Enumeration value of category. + /// http://tizen.org/privilege/nfc.cardemulation /// Thrown when Nfc is not supported. /// Thrown when method is failed due to an invalid parameter. /// Thrown when the method failed due to invalid operation. @@ -295,6 +306,7 @@ namespace Tizen.Network.Nfc /// The type of Secure Element. /// Enumeration value of category. /// Application Id, specified in ISO/IEC 7816-4. + /// http://tizen.org/privilege/nfc.cardemulation /// Thrown when Nfc is not supported. /// Thrown when method is failed due to an invalid parameter. /// Thrown when the method failed due to invalid operation. @@ -315,6 +327,7 @@ namespace Tizen.Network.Nfc /// The type of Secure Element. /// Enumeration value of category. /// Application Id, specified in ISO/IEC 7816-4. + /// http://tizen.org/privilege/nfc.cardemulation /// Thrown when Nfc is not supported. /// Thrown when method is failed due to an invalid parameter. /// Thrown when the method failed due to invalid operation. @@ -332,6 +345,7 @@ namespace Tizen.Network.Nfc /// Sets the application as a preferred handler. /// /// 3 + /// http://tizen.org/privilege/nfc.cardemulation /// Thrown when Nfc is not supported. /// Thrown when the method failed due to invalid operation. public void SetPreferredApplication() @@ -348,6 +362,7 @@ namespace Tizen.Network.Nfc /// Unsets the application as a preferred handler. /// /// 3 + /// http://tizen.org/privilege/nfc.cardemulation /// Thrown when Nfc is not supported. /// Thrown when the method failed due to invalid operation. public void UnsetPreferredApplication() @@ -367,6 +382,7 @@ namespace Tizen.Network.Nfc /// List of NfcRegisteredAidInformation objects. /// The type of Secure Element. /// Enumeration value of category. + /// http://tizen.org/privilege/nfc.cardemulation /// Thrown when Nfc is not supported. /// Thrown when method is failed due to an invalid parameter. /// Thrown when the method failed due to invalid operation. diff --git a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcManager.cs b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcManager.cs index 439fec7..c8ad62e 100755 --- a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcManager.cs +++ b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcManager.cs @@ -130,6 +130,7 @@ namespace Tizen.Network.Nfc /// The Secure Element type. /// /// 3 + /// http://tizen.org/privilege/nfc.cardemulation static public NfcSecureElementType SecureElementType { get @@ -176,6 +177,7 @@ namespace Tizen.Network.Nfc /// Enable or disable the system handling for tag and target discovered event. /// /// 3 + /// http://tizen.org/privilege/nfc static public bool SystemHandlerEnabled { get @@ -319,6 +321,7 @@ namespace Tizen.Network.Nfc /// /// 3 /// A task indicates whether the Activate method is done or not. + /// http://tizen.org/privilege/nfc.admin static public Task SetActivationAsync(bool activation) { bool isNfcSupported = SystemInfo.TryGetValue("http://tizen.org/feature/network.nfc", out isNfcSupported); diff --git a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2p.cs b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2p.cs index a1a5308..90a1c4f 100755 --- a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2p.cs +++ b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2p.cs @@ -91,6 +91,7 @@ namespace Tizen.Network.Nfc /// /// 3 /// NfcNdefMessage object. + /// http://tizen.org/privilege/nfc /// Thrown when Nfc is not supported. /// Thrown when method is failed due to an invalid parameter. /// Thrown when the method failed due to invalid operation. diff --git a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2pAdapter.cs b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2pAdapter.cs index ac3c693..0c9945b 100755 --- a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2pAdapter.cs +++ b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcP2pAdapter.cs @@ -85,6 +85,7 @@ namespace Tizen.Network.Nfc /// /// 3 /// NfcP2p object. + /// http://tizen.org/privilege/nfc /// Thrown when Nfc is not supported. /// Thrown when the method failed due to invalid operation. public NfcP2p GetConnectedTarget() diff --git a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcSecureElement.cs b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcSecureElement.cs old mode 100644 new mode 100755 index e882ba7..0baa11a --- a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcSecureElement.cs +++ b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcSecureElement.cs @@ -64,6 +64,7 @@ namespace Tizen.Network.Nfc /// 3 /// The bytes array of response data. /// The size of response bytes array. + /// http://tizen.org/privilege/nfc.cardemulation /// Thrown when Nfc is not supported. /// Thrown when method is failed due to an invalid parameter. /// Thrown when the method failed due to invalid operation. diff --git a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs index 7643171..c0008c8 100755 --- a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs +++ b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTag.cs @@ -137,6 +137,7 @@ namespace Tizen.Network.Nfc /// /// 3 /// List of NfcTagInformation objects. + /// http://tizen.org/privilege/nfc /// Thrown when Nfc is not supported. /// Thrown when the method failed due to invalid operation. public IEnumerable ForeachInformation() @@ -172,6 +173,7 @@ namespace Tizen.Network.Nfc /// /// 3 /// The binary data for parameter or additional commands. + /// http://tizen.org/privilege/nfc /// Thrown when Nfc is not supported. /// Thrown when method is failed due to an invalid parameter. /// Thrown when the method failed due to invalid operation. @@ -205,6 +207,7 @@ namespace Tizen.Network.Nfc /// Reads NDEF formatted data from NFC tag. /// /// 3 + /// http://tizen.org/privilege/nfc /// Thrown when Nfc is not supported. /// Thrown when the method failed due to invalid operation. public Task ReadNdefMessageAsync() @@ -239,6 +242,7 @@ namespace Tizen.Network.Nfc /// /// 3 /// The NfcNdefMessage object. + /// http://tizen.org/privilege/nfc /// Thrown when Nfc is not supported. /// Thrown when method is failed due to an invalid parameter. /// Thrown when the method failed due to invalid operation. @@ -267,6 +271,7 @@ namespace Tizen.Network.Nfc /// /// 3 /// The key value that may need to format the tag. + /// http://tizen.org/privilege/nfc /// Thrown when Nfc is not supported. /// Thrown when method is failed due to an invalid parameter. /// Thrown when the method failed due to invalid operation. diff --git a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTagAdapter.cs b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTagAdapter.cs index 61c6c1b..9a36264 100755 --- a/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTagAdapter.cs +++ b/src/Tizen.Network.Nfc/Tizen.Network.Nfc/NfcTagAdapter.cs @@ -85,6 +85,7 @@ namespace Tizen.Network.Nfc /// /// 3 /// NfcTag object. + /// http://tizen.org/privilege/nfc /// Thrown when Nfc is not supported. /// Thrown when the method failed due to invalid operation. public NfcTag GetConnectedTag() -- 2.7.4