#include <bluetoothcommunicator.h>
Public Member Functions | |
| ~CBTCommunicator () | |
| RSocket * | ConnectL (TPeerData *aPeerData) |
| Connects to a remote service. | |
| void | DiscoverPeersL (const RMessage &aMessage, CServerSession &aSession) |
| Discover all matching bluetooth peers. | |
| CConcreteConnection * | StartListeningL (const TInt aServiceClassID, const TInt aApplicationID, const TDesC8 &aServiceName, const TDesC8 &aServiceDesc) |
| Sets up a service described by the parameters and starts listening for incoming connections. | |
| void | StopListeningL () |
| Stops listening for inbound connections. | |
Static Public Member Functions | |
| CBTCommunicator * | NewL (CServerSession *aSession) |
Private Member Functions | |
| CBTCommunicator (CServerSession *aSession) | |
| void | ConstructL () |
| void | StartAdvertisingL (TInt aPort, const TInt aServiceClassID, const TInt aApplicationID, const TDesC8 &aServiceName, const TDesC8 &aServiceDesc) |
| TInt | OpenListeningSocketL () |
| void | SetChannelSecurityL (TInt aChannel) |
| void | SetAvailabilityL (TBool aIsAvailable) |
Private Attributes | |
| CServerSession * | iServerSession |
| CSdpAgent * | iAgent |
| CBTDiscoverer * | iDiscoverer |
| RSocketServ | iSocketServ |
| RSocket | iListeningSocket |
| CConcreteConnection * | iListeningConnection |
| RSdp | iSdpSession |
| RSdpDatabase | iSdpDB |
| TSdpServRecordHandle | iRecord |
| TInt | iRecordVersion |
| TBool | iIsListening |
Definition at line 54 of file bluetoothcommunicator.h.
|
|
Definition at line 43 of file bluetoothcommunicator.cpp. References iDiscoverer, iIsListening, iSdpDB, iSdpSession, iSocketServ, Log::Print(), and StopListeningL(). |
|
|
Definition at line 36 of file bluetoothcommunicator.cpp. References iServerSession. Referenced by NewL(). |
|
|
Connects to a remote service.
Definition at line 129 of file bluetoothcommunicator.cpp. References TPeerData::iDeviceAddress, TPeerData::iPort, and iSocketServ. Referenced by CServerSession::ConnectL(). |
|
|
Definition at line 60 of file bluetoothcommunicator.cpp. References iSocketServ. Referenced by NewL(). |
|
||||||||||||
|
Discover all matching bluetooth peers. Invoking this method will launch an active object that takes care of the actual discovery, and will call aMessage.Complete() upon completion of the discovery.
Definition at line 76 of file bluetoothcommunicator.cpp. References TPeerData::iDeviceAddress, TPeerData::iDeviceName, iDiscoverer, TPeerData::iPort, TPeerData::iServiceID, iSocketServ, CBTDiscoverer::NewL(), CServerSession::SetPeerList(), CBTDiscoverer::StartL(), and TPeerDataList. Referenced by CServerSession::GetNumPeersL(). |
|
|
Definition at line 66 of file bluetoothcommunicator.cpp. References CBTCommunicator(), and ConstructL(). Referenced by CServerSession::ConstructL(). |
|
|
Definition at line 286 of file bluetoothcommunicator.cpp. References iListeningConnection, iListeningSocket, iServerSession, iSocketServ, KListeningQueueSize, CConcreteConnection::NewListeningL(), and Log::Print(). Referenced by StartListeningL(). |
|
|
Definition at line 273 of file bluetoothcommunicator.cpp. References iRecord, iRecordVersion, and iSdpDB. Referenced by StartListeningL(). |
|
|
Definition at line 370 of file bluetoothcommunicator.cpp. Referenced by StartListeningL(). |
|
||||||||||||||||||||||||
|
Definition at line 194 of file bluetoothcommunicator.cpp. References iRecord, iSdpDB, and iSdpSession. Referenced by StartListeningL(). |
|
||||||||||||||||||||
|
Sets up a service described by the parameters and starts listening for incoming connections.
Definition at line 403 of file bluetoothcommunicator.cpp. References iIsListening, iListeningConnection, KErrBTCommAlreadyListening, KerrBTCommFailedToCreateListeningSocket, OpenListeningSocketL(), SetAvailabilityL(), SetChannelSecurityL(), and StartAdvertisingL(). Referenced by CServerSession::StartListen(). |
|
|
Stops listening for inbound connections.
Definition at line 173 of file bluetoothcommunicator.cpp. References iIsListening, iListeningConnection, iRecord, iSdpDB, and Log::Print(). Referenced by CServerSession::AbortListen(), ~CBTCommunicator(), and CServerSession::~CServerSession(). |
|
|
Definition at line 115 of file bluetoothcommunicator.h. |
|
|
Definition at line 118 of file bluetoothcommunicator.h. Referenced by DiscoverPeersL(), and ~CBTCommunicator(). |
|
|
Definition at line 136 of file bluetoothcommunicator.h. Referenced by StartListeningL(), StopListeningL(), and ~CBTCommunicator(). |
|
|
Definition at line 123 of file bluetoothcommunicator.h. Referenced by OpenListeningSocketL(), StartListeningL(), and StopListeningL(). |
|
|
Definition at line 122 of file bluetoothcommunicator.h. Referenced by OpenListeningSocketL(). |
|
|
Definition at line 130 of file bluetoothcommunicator.h. Referenced by SetAvailabilityL(), StartAdvertisingL(), and StopListeningL(). |
|
|
Definition at line 133 of file bluetoothcommunicator.h. Referenced by SetAvailabilityL(). |
|
|
Definition at line 127 of file bluetoothcommunicator.h. Referenced by SetAvailabilityL(), StartAdvertisingL(), StopListeningL(), and ~CBTCommunicator(). |
|
|
Definition at line 126 of file bluetoothcommunicator.h. Referenced by StartAdvertisingL(), and ~CBTCommunicator(). |
|
|
Definition at line 113 of file bluetoothcommunicator.h. Referenced by CBTCommunicator(), and OpenListeningSocketL(). |
|
|
Definition at line 121 of file bluetoothcommunicator.h. Referenced by ConnectL(), ConstructL(), DiscoverPeersL(), OpenListeningSocketL(), and ~CBTCommunicator(). |
1.3.5