CBTEngPlugin Class Reference
class CBTEngPlugin : public CBase |
BTEng plug-in base class.
This is the base class from which a BT Engine ECom plug-in inherit. BT Engine plug-ins implement Bluetooth profiles. This interface is used to issue commands relating to service-level connection management (i.e. relating to profile connections). Each plugin implementation identifies itself through the SDP Service Class UUIDs defined by the Bluetooth SIG for profiles it supports.
Constructor & Destructor Documentation
~CBTEngPlugin()
~CBTEngPlugin | ( | ) | [inline, virtual] |
Destructor; destroys the plug-in through the ECom framework.
Member Functions Documentation
CancelConnect(const TBTDevAddr &)
void | CancelConnect | ( | const TBTDevAddr & | aAddr | ) | [pure virtual] |
Instructs the plug-in to cancel the creation a service-level connection with the specified Bluetooth address.
In addition, as this is part of an asynchronous operation, the plug-in completes the outstanding asyncronous request status with KErrCancel.
Parameters
const TBTDevAddr & aAddr | The BT device address identifying a remote device. |
Connect(const TBTDevAddr &)
Instructs the plug-in to create a service-level connection with the specified Bluetooth address.
This is an asynchronous operation; on completion, the plug-in informs the observer by calling MBTEngPluginObserver::ConnectComplete with the appropriate error code.
Parameters
const TBTDevAddr & aAddr | The BT device address identifying a remote device. |
Disconnect(const TBTDevAddr &, TBTDisconnectType)
Instructs the plug-in to create a service-level connection with the specified Bluetooth address.
This is an asynchronous operation; on completion, the plug-in informs the observer by calling MBTEngPluginObserver::DisconnectComplete with the appropriate error code.
Parameters
const TBTDevAddr & aAddr | The BT device address identifying a remote device. In case the address is the NULL address, the plug-in is expected to disconnect all its connections. |
TBTDisconnectType aDiscType | The type of disconnection; EGraceful for graceful (normal) disconnection, EImmediate for immediate (forced) disconnection. |
GetConnections(RBTDevAddrArray &, TBTProfile)
Gets the addresses of the connected devices for the specified profile.
Parameters
RBTDevAddrArray & aAddrArray | On return, holds the Bluetooth device addresses of the connected Bluetooth devices for the requested profile. |
TBTProfile aConnectedProfile | The profile for which the existing connections are requested. |
GetSupportedProfiles(RProfileArray &)
Gets the list of profiles implemented by this plug-in. Profiles are identified by the SDP Service Class UUID (short form), as assigned by the Bluetooth SIG.
Parameters
RProfileArray & aProfiles | Array of integers identifying the BT profiles implemented by this plug-in. |
IsConnected(const TBTDevAddr &)
Indicates if this plug-in has a service-level connection with the specified Bluetooth address.
Parameters
const TBTDevAddr & aAddr | The BT device address identifying a remote device. |
IsProfileSupported(const TBTProfile)
Indicates if this plug-in implements the specified profiles. Profiles are identified by the SDP Service Class UUID (short form), as assigned by the Bluetooth SIG.
Parameters
const TBTProfile aProfile | Integer identifying the BT profile. |
NewL(const TUid)
Constructor; loads the plug-in through the ECom framework.
Parameters
const TUid aImplementationUid | The UID of the interface implementation to be loaded. |
SetObserver(MBTEngPluginObserver *)
Sets the observer for receiving connection events through the MBTEngPluginObserver interface. This method MUST be called before any command is given to the plug-in
Member Type Definitions Documentation
Member Data Documentation
TUid
iInstanceUid
TUid
| iInstanceUid | [private] |
UID set by ECOM when the instance is created. Used when the instance is destroyed.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.