From d84497776b4ea31f715a349934796fa2f0095eb3 Mon Sep 17 00:00:00 2001 From: Wonyoung Choi Date: Tue, 19 Sep 2017 14:40:12 +0900 Subject: [PATCH] [Bluetooth] Remove build warnings Change-Id: I416ad691514aede705de62c450c039467ad3aeab Signed-off-by: Anupam Roy --- .../Tizen.Network.Bluetooth/BluetoothAdapter.cs | 96 +++++++++++----------- .../Tizen.Network.Bluetooth/BluetoothAudio.cs | 8 +- .../Tizen.Network.Bluetooth/BluetoothAvrcp.cs | 28 +++---- .../Tizen.Network.Bluetooth/BluetoothDevice.cs | 18 ++-- .../Tizen.Network.Bluetooth/BluetoothError.cs | 2 +- .../Tizen.Network.Bluetooth/BluetoothGatt.cs | 58 ++++++------- .../Tizen.Network.Bluetooth/BluetoothHid.cs | 4 +- .../Tizen.Network.Bluetooth/BluetoothLeAdapter.cs | 88 ++++++++++---------- .../Tizen.Network.Bluetooth/BluetoothOpp.cs | 60 +++++++------- .../BluetoothServerSocket.cs | 4 +- .../Tizen.Network.Bluetooth/BluetoothSocket.cs | 14 ++-- .../Tizen.Network.Bluetooth/BluetoothStructs.cs | 4 + 12 files changed, 192 insertions(+), 192 deletions(-) diff --git a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothAdapter.cs b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothAdapter.cs index 756944a..667dc78 100644 --- a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothAdapter.cs +++ b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothAdapter.cs @@ -29,8 +29,8 @@ namespace Tizen.Network.Bluetooth /// /// A property to check whether the Bluetooth is enabled. /// - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled. + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled. static public bool IsBluetoothEnabled { get @@ -52,8 +52,8 @@ namespace Tizen.Network.Bluetooth /// /// The Bluetooth must be enabled. /// - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled. + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled. static public string Address { get @@ -75,8 +75,8 @@ namespace Tizen.Network.Bluetooth /// /// The Bluetooth must be enabled. /// - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled. + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled. static public string Name { get @@ -109,8 +109,8 @@ namespace Tizen.Network.Bluetooth /// /// The Bluetooth must be enabled. /// - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled. + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled. static public VisibilityMode Visibility { get @@ -132,8 +132,8 @@ namespace Tizen.Network.Bluetooth /// /// The Bluetooth must be enabled. /// - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled. + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled. static public bool IsDiscoveryInProgress { get @@ -155,8 +155,8 @@ namespace Tizen.Network.Bluetooth /// /// The Bluetooth must be enabled. /// - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled. + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled. static public int RemainingTimeAsVisible { get @@ -175,8 +175,8 @@ namespace Tizen.Network.Bluetooth /// /// The StateChanged event is raised when the Bluetooth adapter state is changed. /// - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled. + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled. static public event EventHandler StateChanged { add @@ -206,8 +206,8 @@ namespace Tizen.Network.Bluetooth /// /// The NameChanged event is raised when the Bluetooth adapter name is changed. /// - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled. + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled. static public event EventHandler NameChanged { add @@ -237,8 +237,8 @@ namespace Tizen.Network.Bluetooth /// /// The VisibilityModeChanged event is raised when the Bluetooth adapter visibility mode is changed. /// - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled. + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled. static public event EventHandler VisibilityModeChanged { add @@ -268,8 +268,8 @@ namespace Tizen.Network.Bluetooth /// /// The VisibilityDurationChanged event is raised very second until the visibility mode is changed to NonDiscoverable. /// - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled. + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled. static public event EventHandler VisibilityDurationChanged { add @@ -299,8 +299,8 @@ namespace Tizen.Network.Bluetooth /// /// The DiscoveryStateChanged event is raised when the device discovery state is changed. /// - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled. + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled. static public event EventHandler DiscoveryStateChanged { add @@ -330,8 +330,8 @@ namespace Tizen.Network.Bluetooth /// /// This event is called when the LE scan result is obtained. /// - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled. + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled. static public event EventHandler ScanResultChanged { add @@ -365,8 +365,8 @@ namespace Tizen.Network.Bluetooth /// The Bluetooth must be enabled and the device discovery process can be stopped by StopDiscovery(). /// If this succeeds, the DiscoveryStateChanged event will be invoked. /// - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled /// or the start discovery fails. static public void StartDiscovery() { @@ -383,8 +383,8 @@ namespace Tizen.Network.Bluetooth /// The device discovery process must be in progress with StartDiscovery(). /// If this succeeds, the DiscoveryStateChanged event will be invoked. /// - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled or + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled or /// the discovery process is not is progress. static public void StopDiscovery() { @@ -401,8 +401,8 @@ namespace Tizen.Network.Bluetooth /// The Bluetooth must be enabled. /// /// The list of the bonded BluetoothDeviceInfo objects. - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled /// or reading the Bonded devices list is failed. static public IEnumerable GetBondedDevices() { @@ -423,8 +423,8 @@ namespace Tizen.Network.Bluetooth /// The Bluetooth must be enabled. /// /// Information of the bonded BluetoothDeviceInfo object. - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled /// or reading the bonded device information fails. static public BluetoothDevice GetBondedDevice(string address) { @@ -443,8 +443,8 @@ namespace Tizen.Network.Bluetooth /// /// true if the specified serviceUuid is used, otherwise false. /// The UUID of Service. - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled. + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled. static public bool IsServiceUsed(string serviceUuid) { try @@ -464,8 +464,8 @@ namespace Tizen.Network.Bluetooth /// The Bluetooth must be enabled. /// /// The BluetoothOobData object. - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled /// or the read OObData procedure is failed. static public BluetoothOobData GetLocalOobData() { @@ -487,8 +487,8 @@ namespace Tizen.Network.Bluetooth /// /// The remote device address. /// The BluetoothOobData object. - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled /// or the set OobData procedure is failed. static public void SetRemoteOobData(string address, BluetoothOobData oobData) { @@ -505,8 +505,8 @@ namespace Tizen.Network.Bluetooth /// The Bluetooth must be enabled. /// /// The remote device address. - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled. + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled. /// or if the Remove Oobdata procedure is failed. static public void RemoveRemoteOobData(string address) { @@ -522,8 +522,8 @@ namespace Tizen.Network.Bluetooth /// /// The Bluetooth must be enabled. /// The result of the operation StartLeScan. - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled /// or the Start LE scan is failed. static public void StartLeScan() { @@ -548,8 +548,8 @@ namespace Tizen.Network.Bluetooth /// /// The Bluetooth must be enabled. /// The result of the operation stopLescan. - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled /// or the Stop LE scan is failed. static public void StopLeScan() { @@ -588,8 +588,8 @@ namespace Tizen.Network.Bluetooth /// /// The BluetoothServerSocket instance. /// The UUID of service to provide. - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled /// or the socket create error occurs. static public BluetoothServerSocket CreateServerSocket(string serviceUuid) { @@ -610,8 +610,8 @@ namespace Tizen.Network.Bluetooth /// The socket must be created with CreateServerSocket(). The ConnectionStateChanged event is raised after this API is called. /// /// The server socket instance is created using CreateServerSocket(). - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled /// or the socket destroy error occurs. static public void DestroyServerSocket(BluetoothServerSocket socket) { diff --git a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothAudio.cs b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothAudio.cs index 614607f..5b4a1c8 100644 --- a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothAudio.cs +++ b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothAudio.cs @@ -53,8 +53,8 @@ namespace Tizen.Network.Bluetooth /// and AdvancedAudioDistribution is connected. /// /// The type of the audio profile. - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled /// or when the connection attempt fails. public void Connect(BluetoothAudioProfileType profileType) { @@ -82,8 +82,8 @@ namespace Tizen.Network.Bluetooth /// and AdvancedAudioDistribution is disconnected. /// /// The type of the audio profile. - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled /// or when Disconnection attempt fails. public void Disconnect(BluetoothAudioProfileType type) { diff --git a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothAvrcp.cs b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothAvrcp.cs index ac814ee..169cb16 100644 --- a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothAvrcp.cs +++ b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothAvrcp.cs @@ -110,8 +110,8 @@ namespace Tizen.Network.Bluetooth /// The remote device must be connected. /// /// The equalizer state. - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled /// or when notifying the equalizer state to the remote device fails. public void NotifyEqualizerState(EqualizerState state) { @@ -132,8 +132,8 @@ namespace Tizen.Network.Bluetooth /// The remote device must be connected. /// /// The repeat mode. - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled /// or when notifying the repeat mode state to the remote device fails. /// public void NotifyRepeatMode(RepeatMode mode) @@ -155,8 +155,8 @@ namespace Tizen.Network.Bluetooth /// The remote device must be connected. /// /// The shuffle mode. - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled /// or when notifying the shuffle mode state to the remote device fails. public void NotifyShuffleMode(ShuffleMode mode) { @@ -177,8 +177,8 @@ namespace Tizen.Network.Bluetooth /// The remote device must be connected. /// /// The scan mode. - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled /// or when notifying the scan mode state to the remote device fails. public void NotifyScanMode(ScanMode mode) { @@ -199,8 +199,8 @@ namespace Tizen.Network.Bluetooth /// The remote device must be connected. /// /// The player state. - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled /// or when notifying the player state to the remote device fails. public void NotifyPlayerState(PlayerState state) { @@ -221,8 +221,8 @@ namespace Tizen.Network.Bluetooth /// The remote device must be connected. /// /// The current position in milliseconds. - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled /// or when notifying the current position state to the remote device fails. public void NotifyCurrentPosition(uint position) { @@ -243,8 +243,8 @@ namespace Tizen.Network.Bluetooth /// The remote device must be connected. /// /// The data of the track. - /// Thrown when the Bluetooth is not supported. - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not supported. + /// Thrown when the Bluetooth is not enabled /// or when notifying the shuffle track state to the remote device fails. public void NotifyTrack(Track trackData) { diff --git a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothDevice.cs b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothDevice.cs index 24f1593..33adb66 100644 --- a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothDevice.cs +++ b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothDevice.cs @@ -436,7 +436,7 @@ namespace Tizen.Network.Bluetooth /// The Bluetooth must be enabled and the remote device must be discoverable by StartDiscovery(). The bond can be destroyed by DestroyBond(). /// The bonding request can be cancelled by CancelBonding(). If this succeeds, the BondCreated event will be invoked. /// - /// Thrown when the BT/BTLE is not enabled + /// Thrown when the BT/BTLE is not enabled /// or when the create bonding process to the remote device fails. public void CreateBond() { @@ -457,7 +457,7 @@ namespace Tizen.Network.Bluetooth /// /// Bonding must be in progress by CreateBond(). /// - /// Thrown when the BT/BTLE is not enabled + /// Thrown when the BT/BTLE is not enabled /// or when the cancel bonding procedure to remote device fails. public void CancelBonding() { @@ -476,7 +476,7 @@ namespace Tizen.Network.Bluetooth /// The Bluetooth must be enabled and the bond must be created by CreateBond(). /// If this succeeds, the BondDestroyed event will be invoked. /// - /// Thrown when the BT/BTLE is not enabled + /// Thrown when the BT/BTLE is not enabled /// or when the destroy bonding procedure fails. public void DestroyBond() { @@ -498,7 +498,7 @@ namespace Tizen.Network.Bluetooth /// The Bluetooth must be enabled and the bond must be created by CreateBond(). /// /// The alias name of the remote device. - /// Thrown when the BT/BTLE is not enabled + /// Thrown when the BT/BTLE is not enabled /// or when the set alias name to remote device fails. public void SetAlias(string aliasName) { @@ -521,7 +521,7 @@ namespace Tizen.Network.Bluetooth /// If this succeeds, the AuthorizationChanged event will be invoked. /// /// The authorization state. - /// Thrown when the BT/BTLE is not enabled + /// Thrown when the BT/BTLE is not enabled /// or when the set authorization to remote device fails. public void SetAuthorization(BluetoothAuthorizationType authorizationState) { @@ -541,7 +541,7 @@ namespace Tizen.Network.Bluetooth /// /// The service mask list converted from the given UUID list. /// The UUID list of the device. - /// Thrown when the BT/BTLE is not enabled + /// Thrown when the BT/BTLE is not enabled /// or when the get Mask from UUID fails. public BluetoothServiceClassType GetMaskFromUuid(string[] uuids) { @@ -563,7 +563,7 @@ namespace Tizen.Network.Bluetooth /// The Bluetooth must be enabled and remote device must be discoverable by StartDiscovery(). The bond must be created by CreateBond(). /// If this succeeds, the ServiceSearched event will be invoked. /// - /// Thrown when the BT/BTLE is not enabled + /// Thrown when the BT/BTLE is not enabled /// or when the remote device service search fails. public void StartServiceSearch() { @@ -586,7 +586,7 @@ namespace Tizen.Network.Bluetooth /// The Bluetooth must be enabled. /// /// The connected Bluetooth profiles. - /// Thrown when the BT/BTLE is not enabled + /// Thrown when the BT/BTLE is not enabled /// or when there is no BT connection. public IEnumerable GetConnectedProfiles() { @@ -623,7 +623,7 @@ namespace Tizen.Network.Bluetooth /// /// true if profile is connected, otherwise false. /// The Bluetooth profile type. - /// Thrown when the BT/BTLE is not enabled + /// Thrown when the BT/BTLE is not enabled /// or when there is no BT connection. public bool IsProfileConnected(BluetoothProfileType profileType) { diff --git a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothError.cs b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothError.cs index 253d50b..83ce73d 100644 --- a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothError.cs +++ b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothError.cs @@ -26,7 +26,7 @@ namespace Tizen.Network.Bluetooth /// /// Exceptions for Bluetooth Errors. /// - /// Thrown when the Bluetooth Error happens. + /// Thrown when the Bluetooth Error happens. static internal void ThrowBluetoothException(int exception) { BluetoothError error = (BluetoothError)exception; diff --git a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs index 923f99c..25328d7 100644 --- a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs +++ b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs @@ -53,8 +53,8 @@ namespace Tizen.Network.Bluetooth /// Creates the Bluetooth GATT server. /// /// - /// Thrown when the BT/BTLE is not supported. - /// Thrown when the create GATT server fails. + /// Thrown when the BT/BTLE is not supported. + /// Thrown when the create GATT server fails. public static BluetoothGattServer CreateServer() { if (_instance == null) @@ -71,8 +71,8 @@ namespace Tizen.Network.Bluetooth /// /// Registers the server along with the GATT services of the application it is hosting. /// - /// Thrown when the BT/BTLE is not supported. - /// Thrown when the register server application fails. + /// Thrown when the BT/BTLE is not supported. + /// Thrown when the register server application fails. public void Start() { _impl.Start(); @@ -82,8 +82,8 @@ namespace Tizen.Network.Bluetooth /// Registers a specified service to this server. /// /// The service, which needs to be registered with this server. - /// Thrown when the BT/BTLE is not supported. - /// Thrown when the register service fails. + /// Thrown when the BT/BTLE is not supported. + /// Thrown when the register service fails. public void RegisterGattService(BluetoothGattService service) { if (service.IsRegistered()) @@ -100,8 +100,8 @@ namespace Tizen.Network.Bluetooth /// /// Once unregistered, the service object will become invalid and should not be used to access sevices or any children attribute's methods/members. /// - /// Thrown when the BT/BTLE is not supported. - /// Thrown when the unregister service fails. + /// Thrown when the BT/BTLE is not supported. + /// Thrown when the unregister service fails. public void UnregisterGattService(BluetoothGattService service) { if (service.GetGattServer() != this) @@ -118,8 +118,8 @@ namespace Tizen.Network.Bluetooth /// /// Once unregistered, servicees will become invalid and should not be used to access sevices or any children attribute's methods/members. /// - /// Thrown when the BT/BTLE is not supported. - /// Thrown when the unregister all services fail. + /// Thrown when the BT/BTLE is not supported. + /// Thrown when the unregister all services fail. public void UnregisterGattServices() { _impl.UnregisterAllGattServices(this); @@ -149,7 +149,7 @@ namespace Tizen.Network.Bluetooth /// /// The characteristic whose the value is changed. /// The remote device address to send, notify, or indicate and if set to NULL, then notify/indicate all is enabled. - /// Thrown when the BT/BTLE is not enabled + /// Thrown when the BT/BTLE is not enabled /// or when the remote device is disconnected, or when service is not registered, or when the CCCD is not enabled. public async Task SendIndicationAsync(BluetoothGattCharacteristic characteristic, string clientAddress) { @@ -161,7 +161,7 @@ namespace Tizen.Network.Bluetooth /// /// The characteristic, which has a changed value. /// The remote device address to send, notify, or indicate and if set to NULL, then notify/indicate all is enabled. - /// Thrown when the BT/BTLE is not enabled + /// Thrown when the BT/BTLE is not enabled /// or when the remote device is disconnected, or when service is not registered, or when the CCCD is not enabled. public void SendNotification(BluetoothGattCharacteristic characteristic, string clientAddress) { @@ -176,7 +176,7 @@ namespace Tizen.Network.Bluetooth /// The error value in case of failure, 0 for success. /// The value to be sent. /// The offset from where the value is read. - /// Thrown when the BT/BTLE is not enabled + /// Thrown when the BT/BTLE is not enabled /// or when the remote device is disconnected, or the send response procedure fails. public void SendResponse(int requestId, BluetoothGattRequestType type, int status, byte[] value, int offset) { @@ -217,7 +217,7 @@ namespace Tizen.Network.Bluetooth /// /// The address of the remote device. /// - /// Thrown when the BT/BTLE is not enabled + /// Thrown when the BT/BTLE is not enabled /// or when the remote device is disconnected. public string RemoteAddress { @@ -236,7 +236,7 @@ namespace Tizen.Network.Bluetooth /// /// The UUID for the service to get. /// The service with the given UUID if it exists, null otherwise. - /// Thrown when the BT/BTLE is not enabled + /// Thrown when the BT/BTLE is not enabled /// or when the remote device is disconnected, or when the get service fails. public BluetoothGattService GetService(string uuid) { @@ -247,7 +247,7 @@ namespace Tizen.Network.Bluetooth /// Gets list of services that belongs to the remote device. /// /// The list of services that belongs to the remote device. - /// Thrown when the BT/BTLE is not enabled + /// Thrown when the BT/BTLE is not enabled /// or when the remote device is disconnected, or when the get service fails. public IEnumerable GetServices() { @@ -259,7 +259,7 @@ namespace Tizen.Network.Bluetooth /// /// The characteristic to be read. /// true on success, false otherwise. - /// Thrown when the BT/BTLE is not enabled + /// Thrown when the BT/BTLE is not enabled /// or when the remote device is disconnected, or when the read attribute value fails. public async Task ReadValueAsync(BluetoothGattCharacteristic characteristic) { @@ -271,7 +271,7 @@ namespace Tizen.Network.Bluetooth /// /// The descriptor to be read. /// true on success, false otherwise. - /// Thrown when the BT/BTLE is not enabled + /// Thrown when the BT/BTLE is not enabled /// or when the remote device is disconnected, or when the read attribute value fails. public async Task ReadValueAsync(BluetoothGattDescriptor descriptor) { @@ -283,7 +283,7 @@ namespace Tizen.Network.Bluetooth /// /// The characteristic to be written. /// true on success, false otherwise. - /// Thrown when the BT/BTLE is not enabled + /// Thrown when the BT/BTLE is not enabled /// or when the remote device is disconnected or when the write attribute value fails. public async Task WriteValueAsync(BluetoothGattCharacteristic characteristic) { @@ -295,7 +295,7 @@ namespace Tizen.Network.Bluetooth /// /// The descriptor to be written. /// true on success, false otherwise. - /// Thrown when the BT/BTLE is not enabled + /// Thrown when the BT/BTLE is not enabled /// or when the remote device is disconnected, or when the write attribute value fails. public async Task WriteValueAsync(BluetoothGattDescriptor descriptor) { @@ -323,7 +323,7 @@ namespace Tizen.Network.Bluetooth /// /// The UUID of the service. /// The type of service. - /// Thrown when the create GATT service procedure fails. + /// Thrown when the create GATT service procedure fails. public BluetoothGattService(string uuid, BluetoothGattServiceType type) { Uuid = uuid; @@ -346,7 +346,7 @@ namespace Tizen.Network.Bluetooth /// /// The characteristic to be added. /// true on success, false otherwise. - /// Thrown when the add GATT characteristic procedure fails. + /// Thrown when the add GATT characteristic procedure fails. public void AddCharacteristic(BluetoothGattCharacteristic characteristic) { if (GetGattClient() != null) @@ -387,7 +387,7 @@ namespace Tizen.Network.Bluetooth /// /// The service to be included. /// true on success, false otherwise - /// Thrown when the add GATT service procedure fails./// + /// Thrown when the add GATT service procedure fails./// public void AddService(BluetoothGattService service) { if (GetGattClient() != null) @@ -508,7 +508,7 @@ namespace Tizen.Network.Bluetooth /// Properties set for the characterstic. /// The value associated with the characterstic. /// throws in case of internal error. - /// Thrown when the create GATT characteristics procedure fails. + /// Thrown when the create GATT characteristics procedure fails. public BluetoothGattCharacteristic(string uuid, BluetoothGattPermission permissions, BluetoothGattProperty properties, byte[] value) : base(uuid, permissions) { _impl = new BluetoothGattCharacteristicImpl(uuid, permissions, properties, value); @@ -654,7 +654,7 @@ namespace Tizen.Network.Bluetooth /// /// The descriptor to be added. /// true on success, false otherwise. - /// Thrown when the add GATT descriptor procedure fails. + /// Thrown when the add GATT descriptor procedure fails. public void AddDescriptor(BluetoothGattDescriptor descriptor) { if (Client != null) @@ -724,7 +724,7 @@ namespace Tizen.Network.Bluetooth /// Permissions for the descriptor. /// The value associated with the descriptor. /// throws in case of internal error. - /// Thrown when the create GATT descriptor procedure fails. + /// Thrown when the create GATT descriptor procedure fails. public BluetoothGattDescriptor(string uuid, BluetoothGattPermission permisions, byte[] value) : base (uuid, permisions) { _impl = new BluetoothGattDescriptorImpl(uuid, permisions, value); @@ -800,7 +800,7 @@ namespace Tizen.Network.Bluetooth /// /// This event is called when the client request to read the value of a characteristic or a descriptor. /// - /// Thrown when the set read value requested callback procedure fails. + /// Thrown when the set read value requested callback procedure fails. public event EventHandler ReadRequested { add @@ -827,7 +827,7 @@ namespace Tizen.Network.Bluetooth /// /// This event is called when a value of a characteristic or a descriptor has been changed by a client. /// - /// Thrown when the set write value requested callback procedure fails. + /// Thrown when the set write value requested callback procedure fails. public event EventHandler WriteRequested { add @@ -908,7 +908,7 @@ namespace Tizen.Network.Bluetooth /// Returns a value at specified offset as the int value of the specified type. /// /// The type of the int value. - /// An offset in the attribute value buffer. + /// An offset in the attribute value buffer. /// The int value at given offset. /// Throws exception if (offset + size of int value) is greater than the length of the value buffer. public int GetValue(IntDataType type, int offset) diff --git a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothHid.cs b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothHid.cs index c35a963..a1fcf42 100644 --- a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothHid.cs +++ b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothHid.cs @@ -34,7 +34,7 @@ namespace Tizen.Network.Bluetooth /// The device must be bonded with the remote device by CreateBond(). /// If connection request succeeds, the HidConnectionStateChanged event will be invoked. /// - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not enabled /// or when the connection attempt to the remote device fails. public void Connect() { @@ -56,7 +56,7 @@ namespace Tizen.Network.Bluetooth /// /// Disconnects the remote device with the HID service. /// - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not enabled /// or when the disconnection attempt to the remote device fails. public void Disconnect() { diff --git a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothLeAdapter.cs b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothLeAdapter.cs index a700c44..3034d6c 100644 --- a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothLeAdapter.cs +++ b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothLeAdapter.cs @@ -62,8 +62,8 @@ namespace Tizen.Network.Bluetooth { /// The Bluetooth must be enabled. /// /// The advertiser object carrying information of the advertising. - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled. + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled. public void StartAdvertising(BluetoothLeAdvertiseData advertiseData) { if (BluetoothAdapter.IsBluetoothEnabled && Globals.IsInitialize) @@ -87,8 +87,8 @@ namespace Tizen.Network.Bluetooth { /// The Bluetooth must be enabled. /// /// The advertiser object carrying information of the advertising. - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled. + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled. public void StopAdvertising(BluetoothLeAdvertiseData advertiseData) { if (BluetoothAdapter.IsBluetoothEnabled && Globals.IsInitialize) @@ -250,8 +250,8 @@ namespace Tizen.Network.Bluetooth { /// /// The Bluetooth must be enabled. /// - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled. + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled. public IEnumerable ServiceUuid { get @@ -272,8 +272,8 @@ namespace Tizen.Network.Bluetooth { /// /// The Bluetooth must be enabled. /// - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled. + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled. public string DeviceName { get @@ -293,8 +293,8 @@ namespace Tizen.Network.Bluetooth { /// /// The Bluetooth must be enabled. /// - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled. + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled. public int TxPowerLevel { get @@ -314,8 +314,8 @@ namespace Tizen.Network.Bluetooth { /// /// The Bluetooth must be enabled. /// - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled. + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled. public IEnumerable ServiceSolictationUuid { get @@ -334,8 +334,8 @@ namespace Tizen.Network.Bluetooth { /// /// The Bluetooth must be enabled. /// - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled. + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled. public int Appearance { get @@ -354,8 +354,8 @@ namespace Tizen.Network.Bluetooth { /// /// The Bluetooth must be enabled. /// - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled./// + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled./// public ManufacturerData ManufacturerData { get @@ -375,8 +375,8 @@ namespace Tizen.Network.Bluetooth { /// The Bluetooth must be enabled. /// /// Returns the service data list. - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled. + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled. public IEnumerable GetServiceDataList() { int serviceCount = 0; @@ -397,8 +397,8 @@ namespace Tizen.Network.Bluetooth { /// /// The auto connect flag. /// client instance - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled /// or when the gatt connection attempt to remote device fails. public BluetoothGattClient GattConnect(bool autoConnect) { @@ -427,8 +427,8 @@ namespace Tizen.Network.Bluetooth { /// /// The Bluetooth must be enabled. /// - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled /// or when the GATT disconnection attempt to remote device fails. public void GattDisconnect() { @@ -462,8 +462,8 @@ namespace Tizen.Network.Bluetooth { /// /// The default constructor initializes an object of the BluetoothLeAdvertiseData. /// - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled /// or when create advertiser fails. public BluetoothLeAdvertiseData() { @@ -506,8 +506,8 @@ namespace Tizen.Network.Bluetooth { /// /// The Bluetooth must be enabled. /// - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled /// or when the set advertising mode fails. public BluetoothLeAdvertisingMode AdvertisingMode { @@ -535,8 +535,8 @@ namespace Tizen.Network.Bluetooth { /// /// The Bluetooth must be enabled. /// - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled /// or when the set advertising connectable mode fails. public bool AdvertisingConnectable { @@ -590,8 +590,8 @@ namespace Tizen.Network.Bluetooth { /// /// The Bluetooth must be enabled. /// - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled /// or when the set appearance fails. public int Appearance { @@ -618,8 +618,8 @@ namespace Tizen.Network.Bluetooth { /// /// The Bluetooth must be enabled. /// - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled /// or when the set advertising device name fails. public bool IncludeDeviceName { @@ -649,8 +649,8 @@ namespace Tizen.Network.Bluetooth { /// /// The Bluetooth must be enabled. /// - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled /// or when the set advertising TC power level fails. public bool IncludeTxPowerLevel { @@ -681,8 +681,8 @@ namespace Tizen.Network.Bluetooth { /// /// The packet type. /// The service UUID to add to advertise data. - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled /// or when the add advertising service UUID procedure fails. public void AddAdvertisingServiceUuid(BluetoothLePacketType packetType, string serviceUuid) { @@ -710,8 +710,8 @@ namespace Tizen.Network.Bluetooth { /// /// The packet type. /// The service solicitation UUID to add to advertise data. - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled /// or when the add advertising service solicitation UUID procedure fails. public void AddAdvertisingServiceSolicitationUuid(BluetoothLePacketType packetType, string serviceSolicitationUuid) @@ -741,8 +741,8 @@ namespace Tizen.Network.Bluetooth { /// /// The packet type. /// The service data to be added to advertising. - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled /// or when the add advertising data procedure fails. public void AddAdvertisingServiceData(BluetoothLePacketType packetType, BluetoothServiceData data) { @@ -777,8 +777,8 @@ namespace Tizen.Network.Bluetooth { /// /// The packet type. /// The manufacturer specific data. - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled /// or when the add advertising manufacturer data procedure fails. public void AddAdvertisingManufacturerData(BluetoothLePacketType packetType, ManufacturerData manufacturerData) @@ -810,8 +810,8 @@ namespace Tizen.Network.Bluetooth { /// The Bluetooth must be enabled. /// /// The packet type to be cleared. - /// Thrown when the Bluetooth LE is not supported. - /// Thrown when the Bluetooth LE is not enabled + /// Thrown when the Bluetooth LE is not supported. + /// Thrown when the Bluetooth LE is not enabled /// or when the clear advertising data procedure fails. internal void ClearAdvertisingData(BluetoothLePacketType packetType) { diff --git a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothOpp.cs b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothOpp.cs index 1963510..30d649e 100644 --- a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothOpp.cs +++ b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothOpp.cs @@ -86,9 +86,9 @@ namespace Tizen.Network.Bluetooth /// /// Path to store the files. /// http://tizen.org/feature/network.bluetooth.opp - /// Thrown when the required feature is not Supported. - /// Thrown when the BT/BTLE is not Supported. - /// Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors. + /// Thrown when the required feature is not Supported. + /// Thrown when the BT/BTLE is not Supported. + /// Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors. public static BluetoothOppServer StartServer(string FilePath) { if (BluetoothAdapter.IsBluetoothEnabled && Globals.IsInitialize) @@ -118,9 +118,9 @@ namespace Tizen.Network.Bluetooth /// Stops the Opp Server. /// /// http://tizen.org/feature/network.bluetooth.opp - /// Thrown when the required feature is not Supported. - /// Thrown when the BT/BTLE is not Supported. - /// Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors. + /// Thrown when the required feature is not Supported. + /// Thrown when the BT/BTLE is not Supported. + /// Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors. public void StopServer() { if (BluetoothAdapter.IsBluetoothEnabled && Globals.IsInitialize) @@ -148,9 +148,9 @@ namespace Tizen.Network.Bluetooth /// /// File name to accept. /// http://tizen.org/feature/network.bluetooth.opp - /// Thrown when the required feature is not Supported. - /// Thrown when the BT/BTLE is not Supported. - /// Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors. + /// Thrown when the required feature is not Supported. + /// Thrown when the BT/BTLE is not Supported. + /// Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors. public int AcceptPush(string FileName) { int _transitionId = -1; @@ -174,9 +174,9 @@ namespace Tizen.Network.Bluetooth /// Reject File Push request. /// /// http://tizen.org/feature/network.bluetooth.opp - /// Thrown when the required feature is not Supported. - /// Thrown when the BT/BTLE is not Supported. - /// Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors. + /// Thrown when the required feature is not Supported. + /// Thrown when the BT/BTLE is not Supported. + /// Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors. public void RejectPush() { if (BluetoothAdapter.IsBluetoothEnabled && Globals.IsInitialize) @@ -199,9 +199,9 @@ namespace Tizen.Network.Bluetooth /// /// tranfer ID. /// http://tizen.org/feature/network.bluetooth.opp - /// Thrown when the required feature is not Supported. - /// Thrown when the BT/BTLE is not Supported. - /// Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors. + /// Thrown when the required feature is not Supported. + /// Thrown when the BT/BTLE is not Supported. + /// Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors. public void CancelTransfer(int TransferId) { if (BluetoothAdapter.IsBluetoothEnabled && Globals.IsInitialize) @@ -224,9 +224,9 @@ namespace Tizen.Network.Bluetooth /// /// Path to store the files. /// http://tizen.org/feature/network.bluetooth.opp - /// Thrown when the required feature is not Supported. - /// Thrown when the BT/BTLE is not Supported. - /// Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors. + /// Thrown when the required feature is not Supported. + /// Thrown when the BT/BTLE is not Supported. + /// Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors. public void SetDestinationPath(string FilePath) { if (BluetoothAdapter.IsBluetoothEnabled && Globals.IsInitialize) @@ -305,9 +305,9 @@ namespace Tizen.Network.Bluetooth /// /// file for sending. /// http://tizen.org/feature/network.bluetooth.opp - /// Thrown when the required feature is not Supported. - /// Thrown when the BT/BTLE is not Supported. - /// Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors. + /// Thrown when the required feature is not Supported. + /// Thrown when the BT/BTLE is not Supported. + /// Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors. public void AddFile(string FilePath) { if (BluetoothAdapter.IsBluetoothEnabled && Globals.IsInitialize) @@ -329,9 +329,9 @@ namespace Tizen.Network.Bluetooth /// Clears all the File paths. /// /// http://tizen.org/feature/network.bluetooth.opp - /// Thrown when the required feature is not Supported. - /// Thrown when the BT/BTLE is not Supported. - /// Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors. + /// Thrown when the required feature is not Supported. + /// Thrown when the BT/BTLE is not Supported. + /// Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors. public void ClearFiles() { if (BluetoothAdapter.IsBluetoothEnabled && Globals.IsInitialize) @@ -353,9 +353,9 @@ namespace Tizen.Network.Bluetooth /// Cancels the ongoing push session. /// /// http://tizen.org/feature/network.bluetooth.opp - /// Thrown when the required feature is not Supported. - /// Thrown when the BT/BTLE is not Supported. - /// Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors. + /// Thrown when the required feature is not Supported. + /// Thrown when the BT/BTLE is not Supported. + /// Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors. public void CancelPush() { if (BluetoothAdapter.IsBluetoothEnabled && Globals.IsInitialize) @@ -378,9 +378,9 @@ namespace Tizen.Network.Bluetooth /// /// destination device address. /// http://tizen.org/feature/network.bluetooth.opp - /// Thrown when the required feature is not Supported. - /// Thrown when the BT/BTLE is not Supported. - /// Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors. + /// Thrown when the required feature is not Supported. + /// Thrown when the BT/BTLE is not Supported. + /// Thrown when the BT/BTLE is not Enabled or Other Bluetooth Errors. public void PushFile(string Destination) { if (BluetoothAdapter.IsBluetoothEnabled && Globals.IsInitialize) diff --git a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothServerSocket.cs b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothServerSocket.cs index 3d4509b..e84193f 100644 --- a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothServerSocket.cs +++ b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothServerSocket.cs @@ -33,7 +33,7 @@ namespace Tizen.Network.Bluetooth /// /// The AcceptStateChanged event is raised when the socket connection state is changed. /// - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not enabled /// or when the register accpet state changed callback fails. public event EventHandler AcceptStateChanged { @@ -100,7 +100,7 @@ namespace Tizen.Network.Bluetooth /// /// The socket must be created with CreateServerSocket(). This API invokes the ConnectionStateChanged event. /// - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not enabled /// or when the listen on socket procedure fails. public void Listen() { diff --git a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothSocket.cs b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothSocket.cs index 5639cc2..14cc730 100644 --- a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothSocket.cs +++ b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothSocket.cs @@ -53,7 +53,7 @@ namespace Tizen.Network.Bluetooth /// /// This event occurs when the socket server receives data from the client. /// - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not enabled /// or when the register data received callback fails. public event EventHandler DataReceived { @@ -78,7 +78,7 @@ namespace Tizen.Network.Bluetooth /// /// This event occurs when the connection state between two devices is changed. /// - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not enabled /// or when the register connection changed callback fails. public event EventHandler ConnectionStateChanged { @@ -169,9 +169,7 @@ namespace Tizen.Network.Bluetooth /// /// The bluetooth must be enabled, discoverable with StartDiscovery(), and bonded with the remote device using CreateBond(). The ConnectionStateChanged event is raised once this API is called. /// - /// The address of the remote Bluetooth device. - /// The UUID of the service provided by the remote Bluetooth device. - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not enabled /// or when the connect socket attempt to remote device fails, or when the service UUID is not supported by the remote device. void IBluetoothClientSocket.Connect() { @@ -189,8 +187,7 @@ namespace Tizen.Network.Bluetooth /// /// The connection must be established. /// - /// The file descriptor of the socket to close. - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not enabled /// or when the socket disconnect to remote device fails. void IBluetoothClientSocket.Disconnect() { @@ -209,9 +206,8 @@ namespace Tizen.Network.Bluetooth /// /// The connection must be established. /// - /// The file descriptor of the connected socket. /// The data to be sent. - /// Thrown when the Bluetooth is not enabled + /// Thrown when the Bluetooth is not enabled /// or when the remote device is not connected, or the send data procedure fails. public int SendData(string data) { diff --git a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothStructs.cs b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothStructs.cs index dcd53a2..754cba1 100644 --- a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothStructs.cs +++ b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothStructs.cs @@ -135,6 +135,7 @@ namespace Tizen.Network.Bluetooth internal string ManufacturerData; } + [StructLayout(LayoutKind.Sequential)] internal struct BluetoothDeviceSdpStruct { [MarshalAsAttribute(UnmanagedType.LPStr)] @@ -143,6 +144,7 @@ namespace Tizen.Network.Bluetooth internal int ServiceCount; } + [StructLayout(LayoutKind.Sequential)] internal struct BluetoothDeviceConnectionStruct { internal string Address; @@ -150,6 +152,7 @@ namespace Tizen.Network.Bluetooth internal BluetoothDisconnectReason DisconnectReason; } + [StructLayout(LayoutKind.Sequential)] internal struct SocketDataStruct { internal int SocketFd; @@ -157,6 +160,7 @@ namespace Tizen.Network.Bluetooth internal IntPtr Data; } + [StructLayout(LayoutKind.Sequential)] internal struct SocketConnectionStruct { internal int SocketFd; -- 2.7.4