CBluetoothManager Class Reference

Inherits MBluetoothDeviceDiscovererObserver, and MBluetoothObserver.

List of all members.

Public Member Functions

void StartBtMaster ()
void StartBtSlave ()
void SendData (TRoshambo::TElement aElement)
void QuitMultiplayerGame ()
void StartGame ()
void ReplayGame ()
TBool Connected ()
void OnDeviceDiscoveryErr (const TInt aError)
void OnDeviceDiscoveryComplete (const TBTDeviceResponseParamsPckg &aResponse)
void ConnectionErr (const TInt aConnHandle, const TInt aError)
void DataReceived (const TInt aConnHandle, const TDesC8 &aData)
void SendDataComplete (const TInt aConnHandle)

Static Public Member Functions

static CBluetoothManagerNewL (CGameScreenManager &aGameScreenMgr)

Detailed Description

Definition at line 51 of file BluetoothManager.h.


Member Function Documentation

void CBluetoothManager::StartBtMaster (  ) 

Called if the player has decided to control the game (Master role)

Definition at line 88 of file BluetoothManager.cpp.

void CBluetoothManager::StartBtSlave (  ) 

Called if the player has decided to wait for incoming connection (Slave role)

Definition at line 110 of file BluetoothManager.cpp.

void CBluetoothManager::SendData ( TRoshambo::TElement  aElement  ) 

Send the player choice to the remote BT device aElement RPS's element

Definition at line 205 of file BluetoothManager.cpp.

void CBluetoothManager::QuitMultiplayerGame (  ) 

Quit the game aError KErrNone if the player decided to quit the game otherwise one of the system error

Definition at line 139 of file BluetoothManager.cpp.

void CBluetoothManager::StartGame (  ) 

Called when the player that controls the game (Master role) decide to start the game

Definition at line 157 of file BluetoothManager.cpp.

void CBluetoothManager::ReplayGame (  ) 

Called when the player that controls the game (Master role) decide to start play again

Definition at line 181 of file BluetoothManager.cpp.

TBool CBluetoothManager::Connected (  ) 

Query to see if the Connector/Responder are connected to the remote BT device

Returns:
ETrue if connected

Definition at line 229 of file BluetoothManager.cpp.

void CBluetoothManager::OnDeviceDiscoveryErr ( const TInt  aError  )  [virtual]

Callback from CBluetoothDeviceDiscoverer if an error occur during device discovering

Parameters:
aError An error

Implements MBluetoothDeviceDiscovererObserver.

Definition at line 277 of file BluetoothManager.cpp.

void CBluetoothManager::OnDeviceDiscoveryComplete ( const TBTDeviceResponseParamsPckg &  aResponse  )  [virtual]

RNotifier's callback aResponse Pckgbuf to retrieve the response from the device selection dialog via the Notifier framework

Implements MBluetoothDeviceDiscovererObserver.

Definition at line 239 of file BluetoothManager.cpp.

void CBluetoothManager::ConnectionErr ( const TInt  aConnHandle,
const TInt  aError 
) [virtual]

Callback either from the Connector or Responder to report a connection error

Parameters:
aConnHandle The handle of the Connector/Responder
aError An error

Implements MBluetoothObserver.

Definition at line 287 of file BluetoothManager.cpp.

void CBluetoothManager::DataReceived ( const TInt  aConnHandle,
const TDesC8 &  aData 
) [virtual]

Callback either from the Connector or Responder to report incoming data from the remote BT device

Parameters:
aConnHandle The handle of the Connector/Responder
aData Description containing the data arrived from the remote BT device

Implements MBluetoothObserver.

Definition at line 317 of file BluetoothManager.cpp.

void CBluetoothManager::SendDataComplete ( const TInt  aConnHandle  )  [virtual]

Callback either from the Connector or Responder to report the sending data completion

Parameters:
aConnHandle The handle of the Connector/Responder

Implements MBluetoothObserver.

Definition at line 353 of file BluetoothManager.cpp.


Generated by  doxygen 1.6.2