namespace Tizen.Network.Bluetooth
{
/// <summary>
- /// This class is used to handle the connection with other devices and set authorization of other devices.<br>
+ /// This class is used to handle the connection with other devices and set authorization of other devices.<br/>
/// The BluetoothDevice class is used to search for services available on remote devices.
/// </summary>
/// <privilege> http://tizen.org/privilege/bluetooth </privilege>
/// 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.
/// </remarks>
- /// <exception cref="System.InvalidOperationException">Thrown when the BT/BTLE is not enabled
+ /// <exception cref="InvalidOperationException">Thrown when the BT/BTLE is not enabled
/// or when the create bonding process to the remote device fails.</exception>
public void CreateBond()
{
/// <remarks>
/// Bonding must be in progress by CreateBond().
/// </remarks>
- /// <exception cref="System.InvalidOperationException">Thrown when the BT/BTLE is not enabled
+ /// <exception cref="InvalidOperationException">Thrown when the BT/BTLE is not enabled
/// or when the cancel bonding procedure to remote device fails.</exception>
public void CancelBonding()
{
/// The Bluetooth must be enabled and the bond must be created by CreateBond().
/// If this succeeds, the BondDestroyed event will be invoked.
/// </remarks>
- /// <exception cref="System.InvalidOperationException">Thrown when the BT/BTLE is not enabled
+ /// <exception cref="InvalidOperationException">Thrown when the BT/BTLE is not enabled
/// or when the destroy bonding procedure fails.</exception>
public void DestroyBond()
{
/// The Bluetooth must be enabled and the bond must be created by CreateBond().
/// </remarks>
/// <param name="aliasName">The alias name of the remote device.</param>
- /// <exception cref="System.InvalidOperationException">Thrown when the BT/BTLE is not enabled
+ /// <exception cref="InvalidOperationException">Thrown when the BT/BTLE is not enabled
/// or when the set alias name to remote device fails.</exception>
public void SetAlias(string aliasName)
{
/// If this succeeds, the AuthorizationChanged event will be invoked.
/// </remarks>
/// <param name="authorizationState">The authorization state.</param>
- /// <exception cref="System.InvalidOperationException">Thrown when the BT/BTLE is not enabled
+ /// <exception cref="InvalidOperationException">Thrown when the BT/BTLE is not enabled
/// or when the set authorization to remote device fails.</exception>
public void SetAuthorization(BluetoothAuthorizationType authorizationState)
{
/// </summary>
/// <returns>The service mask list converted from the given UUID list.</returns>
/// <param name="uuids">The UUID list of the device.</param>
- /// <exception cref="System.InvalidOperationException">Thrown when the BT/BTLE is not enabled
+ /// <exception cref="InvalidOperationException">Thrown when the BT/BTLE is not enabled
/// or when the get Mask from UUID fails.</exception>
public BluetoothServiceClassType GetMaskFromUuid(string[] uuids)
{
/// 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.
/// </remarks>
- /// <exception cref="System.InvalidOperationException">Thrown when the BT/BTLE is not enabled
+ /// <exception cref="InvalidOperationException">Thrown when the BT/BTLE is not enabled
/// or when the remote device service search fails.</exception>
public void StartServiceSearch()
{
/// The Bluetooth must be enabled.
/// </remarks>
/// <returns>The connected Bluetooth profiles.</returns>
- /// <exception cref="System.InvalidOperationException">Thrown when the BT/BTLE is not enabled
+ /// <exception cref="InvalidOperationException">Thrown when the BT/BTLE is not enabled
/// or when there is no BT connection.</exception>
public IEnumerable<BluetoothProfileType> GetConnectedProfiles()
{
/// </remarks>
/// <returns><c>true</c> if profile is connected, otherwise <c>false</c>.</returns>
/// <param name="profileType">The Bluetooth profile type.</param>
- /// <exception cref="System.InvalidOperationException">Thrown when the BT/BTLE is not enabled
+ /// <exception cref="InvalidOperationException">Thrown when the BT/BTLE is not enabled
/// or when there is no BT connection.</exception>
public bool IsProfileConnected(BluetoothProfileType profileType)
{
profile = (hid as T);
}
+ else if (type.Equals("Tizen.Network.Bluetooth.BluetoothOppClient"))
+ {
+ BluetoothOppClient oppClient = new BluetoothOppClient();
+ profile = (oppClient as T);
+ }
+
if (profile != null)
{
profile.RemoteAddress = RemoteDeviceAddress;