CBluetoothPhysicalLinks Class Reference

#include <bt_sock.h>

class CBluetoothPhysicalLinks : public CBase

Inherits from

  • CBluetoothPhysicalLinks

    Detailed Description

    This is used to enumerate members of piconet, and attach and remove members thereof

    It may also be used for non-service dependent reads and writes.

    Constructor & Destructor Documentation

    ~CBluetoothPhysicalLinks ( )

    IMPORT_C~CBluetoothPhysicalLinks()

    Destructor

    Member Function Documentation

    BTBaseband ( )

    RBTBaseband &BTBaseband()

    This method is for internal sub-system use only and should be not be used otherwise.

    Broadcast ( const TDesC8 & )

    IMPORT_C TIntBroadcast(const TDesC8 &aData)

    Write (raw) broadcast data

    Raw broadcast data is data that is not directed to any specified service. Test
    capability
    NetworkControl
    ParameterDescription
    aDataContains data to be broadcast.

    Returns: Error code

    CancelCreateConnection ( )

    IMPORT_C voidCancelCreateConnection()

    Cancel bringing in a new member to the piconet

    CreateConnection ( const TBTDevAddr & )

    IMPORT_C TIntCreateConnection(const TBTDevAddr &aDevAddr)

    Bring in a new member to the piconet

    This can be useful for preparing for a logical link (service socket). Firstly if the local device has not bonded with the specified remote device, then this function can be used to allow the bonding procedure can take place in advance. Secondly if a CBluetoothSocket call is made to create a logical link within an internally specified time of this CreateConnection function being called, then that link will come up much faster since the physical link will already be in place. Unless this connection is taken up by a logical link (or a synchronous link) within that internally specified time then it will be closed.

    This function can also be used to create a physical link ready for the setting up of a synchronous link (e.g. voice link).

    ParameterDescription
    aDevAddrBluetooth address specifying remote device (new member of piconet)

    Returns: Error code

    Disconnect ( const TBTDevAddr & )

    IMPORT_C TIntDisconnect(const TBTDevAddr &aDevAddr)

    Disconnect a single member of piconet

    capability
    NetworkControl
    ParameterDescription
    aDevAddrBluetooth address specifying remote device (member of piconet)

    Returns: Error code

    DisconnectAll ( )

    IMPORT_C TIntDisconnectAll()
    Disconnect all members of piconet with the reason code "Remote User Terminated Connection"
    capability
    NetworkControl

    Returns: Error code

    DisconnectAllForPowerOff ( )

    IMPORT_C TIntDisconnectAllForPowerOff()
    Disconnect all members of piconet with the reason code "Remote Device Terminated Connection due to Power Off"
    capability
    NetworkControl

    Returns: Error code

    Enumerate ( RBTDevAddrArray &, TUint )

    IMPORT_C TIntEnumerate(RBTDevAddrArray &aBTDevAddrArray,
    TUintaMaxNumber
    )

    Enumerate connected members of the piconet

    ParameterDescription
    aBTDevAddrArrayBluetooth device address array to be filled with bluetooth addresses of connected members of the piconet.
    aMaxNumberUpper limit on number of members to be returned.

    Returns: Error code

    HandleCreateConnectionCompleteL ( TInt )

    voidHandleCreateConnectionCompleteL(TIntaErr)

    This method is for internal sub-system use only and should be not be used otherwise.

    HandleDisconnectAllCompleteL ( TInt )

    voidHandleDisconnectAllCompleteL(TIntaErr)

    This method is for internal sub-system use only and should be not be used otherwise.

    HandleDisconnectCompleteL ( TInt )

    voidHandleDisconnectCompleteL(TIntaErr)

    This method is for internal sub-system use only and should be not be used otherwise.

    NewL ( MBluetoothPhysicalLinksNotifier &, RSocketServ & )

    IMPORT_C CBluetoothPhysicalLinks *NewL(MBluetoothPhysicalLinksNotifier &aNotifier,
    RSocketServ &aServer
    )[static]

    Constructor

    Opens a Bluetooth socket.
    Pre-condition
    A session on the socket server has been started.
    leave
    No memory, or error on opening socket
    ParameterDescription
    aNotifierThe object which will receive asynchronous events.
    aServerThe socket server.

    Returns: An object of type CBluetoothPhysicalLinks

    NewLC ( MBluetoothPhysicalLinksNotifier &, RSocketServ & )

    IMPORT_C CBluetoothPhysicalLinks *NewLC(MBluetoothPhysicalLinksNotifier &aNotifier,
    RSocketServ &aServer
    )[static]

    Constructor

    Opens a Bluetooth socket.
    Pre-condition
    A session on the socket server has been started.
    leave
    No memory, or error on opening socket
    ParameterDescription
    aNotifierThe object which will receive asynchronous events.
    aServerThe socket server.

    Returns: An object of type CBluetoothPhysicalLinks

    Notifier ( )

    This method is for internal sub-system use only and should be not be used otherwise.

    ReadRaw ( TDes8 & )

    IMPORT_C TIntReadRaw(TDes8 &aData)

    Receive (raw) broadcast data

    Raw broadcast data is data that is not directed to any specified service. Test
    capability
    NetworkControl
    ParameterDescription
    aDataContains data received.

    Returns: Error code

    SockServer ( )

    RSocketServ &SockServer()

    This method is for internal sub-system use only and should be not be used otherwise.