Inherits CBluetoothConnectionBase, MBluetoothServiceSearcherObserver, MSocketConnectorObserver, and MSocketWriterReaderObserver.
Public Types | |
| enum | TConnectorState { EIdle, ESearchingService, EConnecting, EWaitingForData, ESendingData } |
Public Member Functions | |
| ~CBluetoothConnector () | |
| void | SendData (const TDesC8 &aData) |
| void | StartL () |
Static Public Member Functions | |
| static CBluetoothConnector * | NewL (MBluetoothObserver &aConnObs, RSocketServ &aSocketServer, const TBTDevAddr &aDevAddr) |
CBluetoothConnector Manages the connection between a Master and a Slave
Definition at line 64 of file BluetoothConnector.h.
TConnectorState State Machine
Definition at line 74 of file BluetoothConnector.h.
| CBluetoothConnector::~CBluetoothConnector | ( | ) |
Destructor
Definition at line 83 of file BluetoothConnector.cpp.
| CBluetoothConnector * CBluetoothConnector::NewL | ( | MBluetoothObserver & | aConnObs, | |
| RSocketServ & | aSocketServer, | |||
| const TBTDevAddr & | aDevAddr | |||
| ) | [static] |
Two phase constructor
| aConnObs | Interface to report to the caller the status of the connection and incoming/sending data completion | |
| aSocketServer | A handle to an existing session on the socket server (ESock) | |
| aDevAddr | The remote BT device address |
Definition at line 45 of file BluetoothConnector.cpp.
| void CBluetoothConnector::SendData | ( | const TDesC8 & | aData | ) | [virtual] |
Sends the data to the remote BT device. On completion calls MBluetoothObserver::SendDataComplete
| aData | A descriptor for the data being sent to the remote BT device |
Implements CBluetoothConnectionBase.
Definition at line 212 of file BluetoothConnector.cpp.
| void CBluetoothConnector::StartL | ( | ) | [virtual] |
Kicks off the state machine
Implements CBluetoothConnectionBase.
Definition at line 110 of file BluetoothConnector.cpp.
1.6.2