Inherits MListenerObserver, MConnectorObserver, MDeviceDiscoObserver, and MServiceDiscoObserver.
CBluetoothPMPExampleEngine application engine class.
Definition at line 122 of file BluetoothPMPExampleEngine.h.
| CBluetoothPMPExampleEngine::~CBluetoothPMPExampleEngine | ( | ) |
~CBluetoothPMPExampleContainer()
discussion Destroy the object and release all memory objects
Definition at line 128 of file BluetoothPMPExampleEngine.cpp.
| CBluetoothPMPExampleEngine * CBluetoothPMPExampleEngine::NewL | ( | CBluetoothPMPExampleAppUi & | aAppUi | ) | [static] |
discussion Create new CBluetoothPMPExampleEngine object return a pointer to the created instance of CBluetoothPMPExampleEngine
Definition at line 42 of file BluetoothPMPExampleEngine.cpp.
| CBluetoothPMPExampleEngine * CBluetoothPMPExampleEngine::NewLC | ( | CBluetoothPMPExampleAppUi & | aAppUi | ) | [static] |
Definition at line 52 of file BluetoothPMPExampleEngine.cpp.
| void CBluetoothPMPExampleEngine::DiscoverDevicesL | ( | ) |
discussion Discovers bluetooth devices within range. the discovered devices will be displayed to user.
Definition at line 186 of file BluetoothPMPExampleEngine.cpp.
| void CBluetoothPMPExampleEngine::DiscoverServicesL | ( | ) |
StartServiceDiscovery()
discussion Starts service discovery for services on remote devices.
Definition at line 204 of file BluetoothPMPExampleEngine.cpp.
| void CBluetoothPMPExampleEngine::StartSlaveL | ( | ) |
discussion Starts the application in slave more. the application will open listening socket to listen to incoming connection request, and advertise its services.
Definition at line 218 of file BluetoothPMPExampleEngine.cpp.
| void CBluetoothPMPExampleEngine::SendMessageL | ( | ) |
discussion Send a message to all connected slaves. the user will be prompted to enter the message text he/she wishes to send.
Definition at line 355 of file BluetoothPMPExampleEngine.cpp.
| void CBluetoothPMPExampleEngine::ConnectDevicesL | ( | ) |
discussion Connects to the remote devices that were discovered to offer the service we require.
Definition at line 280 of file BluetoothPMPExampleEngine.cpp.
| void CBluetoothPMPExampleEngine::DisconnectDevices | ( | ) |
discussion Disconnects from connected remote devices.
Definition at line 260 of file BluetoothPMPExampleEngine.cpp.
| void CBluetoothPMPExampleEngine::ShowConnectedDevicesL | ( | ) |
discussion Displays the connected remote devices.
Definition at line 324 of file BluetoothPMPExampleEngine.cpp.
| void CBluetoothPMPExampleEngine::HandleListenerDataReceivedL | ( | const TDesC & | aData | ) | [virtual] |
discussion Handles the data slave received from a master.
param aData the data received.
Implements MListenerObserver.
Definition at line 400 of file BluetoothPMPExampleEngine.cpp.
| void CBluetoothPMPExampleEngine::HandleConnectorDataReceivedL | ( | THostName | aName, | |
| const TDesC & | aData | |||
| ) | [virtual] |
HandleConnectedDataReceivedL()
discussion Handles the data a master received from a slave.
param aName the name of the slave that sent the data. param aData the data received.
Implements MConnectorObserver.
Definition at line 445 of file BluetoothPMPExampleEngine.cpp.
| void CBluetoothPMPExampleEngine::HandleListenerConnectedL | ( | ) | [virtual] |
discussion Handles the event of slave connection (slave was connected to by master). user will be notified of connection.
Implements MListenerObserver.
Definition at line 414 of file BluetoothPMPExampleEngine.cpp.
| void CBluetoothPMPExampleEngine::HandleListenerDisconnectedL | ( | ) | [virtual] |
discussion Handles the event of slave disconnection, the master connection to slave was terminated. user will be notitied of disconnection.
Implements MListenerObserver.
Definition at line 425 of file BluetoothPMPExampleEngine.cpp.
| void CBluetoothPMPExampleEngine::HandleDeviceDiscoveryComplete | ( | TInt | aError | ) | [virtual] |
HandleDeviceDiscoveryComplete()
discussion Handles the event of device discovery completion. the discovered devices will be displayed to user.
Implements MDeviceDiscoObserver.
Definition at line 532 of file BluetoothPMPExampleEngine.cpp.
| void CBluetoothPMPExampleEngine::DeviceDiscovered | ( | const TDeviceData & | aDevice | ) | [virtual] |
discussion nofify observer that a new device was found.
Implements MDeviceDiscoObserver.
Definition at line 638 of file BluetoothPMPExampleEngine.cpp.
| void CBluetoothPMPExampleEngine::HandleServiceDiscoveryCompleteL | ( | ) | [virtual] |
HandleServiceDiscoveryCompleteL()
discussion Handles the event of service discovery completion. the discovered services will be displayed to user.
Implements MServiceDiscoObserver.
Definition at line 575 of file BluetoothPMPExampleEngine.cpp.
| void CBluetoothPMPExampleEngine::ReportServiceDiscoveryErrorL | ( | TInt | aError | ) | [virtual] |
ReportServiceDiscoveryErrorL()
discussion An error has occured during service discovery
Implements MServiceDiscoObserver.
Definition at line 652 of file BluetoothPMPExampleEngine.cpp.
| TBool CBluetoothPMPExampleEngine::HasConnections | ( | ) |
HasConnection()
discussion Returns true if master has any slave connections.
Definition at line 617 of file BluetoothPMPExampleEngine.cpp.
| TBool CBluetoothPMPExampleEngine::IsDiscoveryActive | ( | ) |
discussion It returns ETrue if there is an ongoing device discovery
Definition at line 734 of file BluetoothPMPExampleEngine.cpp.
| void CBluetoothPMPExampleEngine::StopDiscovery | ( | ) |
discussion It stops device discovery if there is any ongoing
Definition at line 742 of file BluetoothPMPExampleEngine.cpp.
1.6.2