Main Page | Class Hierarchy | Data Structures | File List | Data Fields | Globals

CBTDiscoverer Class Reference

Bluetooth device/service discovery engine. More...

#include <btdiscoverer.h>


Public Member Functions

 ~CBTDiscoverer ()
void StartL (RSocketServ &aSocketServ)
void RunL ()
TInt RunError (TInt aError)
void DoCancel ()
void AttributeRequestComplete (TSdpServRecordHandle aHandle, TInt aError)
void AttributeRequestResult (TSdpServRecordHandle aHandle, TSdpAttributeID aAttrID, CSdpAttrValue *aAttrValue)
void NextRecordRequestComplete (TInt aError, TSdpServRecordHandle aHandle, TInt aTotalRecordsCount)
void VisitAttributeValueL (CSdpAttrValue &aValue, TSdpElementType aType)
void StartListL (CSdpAttrValueList &aList)
void EndListL ()

Static Public Member Functions

CBTDiscovererNewL (RMessage &aMessage, CServerSession &aSession)

Private Member Functions

 CBTDiscoverer (RMessage &aMessage, CServerSession &aSession)
void ConstructL ()
void DeviceDiscovered ()
void DiscoverServices (TNameRecord &aNameRecord)
void FinishDiscovery ()
void ParseUuid (TDes &aBuf, const TUUID &aUuid, TUint32 &aUuid32)

Private Attributes

RMessage & iMessage
CServerSessioniSession
RHostResolver iHr
TNameEntry iNameEntry
CSdpSearchPattern * iSdpPattern
CSdpAgent * iAgent
CSdpAttrIdMatchList * iAttrMatchList
TUint32 iLastUuid32
TInt iRfcommPort
TInt iL2capPort
TServiceName iServiceName
RDeviceAddressList iDeviceAddresses
TInt iCurrentDeviceIndex
TInt iNumPeers
TPeerDataListiPeerList


Detailed Description

Bluetooth device/service discovery engine.

Author:
Matti Dahlbom
Version:
beta0_9_1_2004-01-13, 1.10

Definition at line 47 of file btdiscoverer.h.


Constructor & Destructor Documentation

CBTDiscoverer::~CBTDiscoverer  ) 
 

Definition at line 42 of file btdiscoverer.cpp.

References iAgent, iAttrMatchList, iDeviceAddresses, and iSdpPattern.

CBTDiscoverer::CBTDiscoverer RMessage &  aMessage,
CServerSession aSession
[private]
 

Definition at line 34 of file btdiscoverer.cpp.

Referenced by NewL().


Member Function Documentation

void CBTDiscoverer::AttributeRequestComplete TSdpServRecordHandle  aHandle,
TInt  aError
 

Definition at line 230 of file btdiscoverer.cpp.

References iAgent, iCurrentDeviceIndex, TPeerData::iDeviceAddress, iDeviceAddresses, TPeerData::iDeviceName, iL2capPort, iNumPeers, iPeerList, iRfcommPort, iServiceName, TPeerData::iServiceName, TPeerData::p, and Log::Print().

void CBTDiscoverer::AttributeRequestResult TSdpServRecordHandle  aHandle,
TSdpAttributeID  aAttrID,
CSdpAttrValue *  aAttrValue
 

Definition at line 263 of file btdiscoverer.cpp.

void CBTDiscoverer::ConstructL  )  [private]
 

Definition at line 60 of file btdiscoverer.cpp.

References iAttrMatchList, iMessage, iSdpPattern, and Log::Print().

Referenced by NewL().

void CBTDiscoverer::DeviceDiscovered  )  [private]
 

Definition at line 171 of file btdiscoverer.cpp.

References DiscoverServices(), FinishDiscovery(), iCurrentDeviceIndex, iDeviceAddresses, iHr, iNameEntry, KErrBtdiscovererAllocFailed, and Log::Print().

Referenced by RunL().

void CBTDiscoverer::DiscoverServices TNameRecord &  aNameRecord  )  [private]
 

Definition at line 130 of file btdiscoverer.cpp.

References iAgent, iSdpPattern, KErrBtdiscovererAllocFailed, and Log::Print().

Referenced by DeviceDiscovered(), and NextRecordRequestComplete().

void CBTDiscoverer::DoCancel  ) 
 

Definition at line 89 of file btdiscoverer.cpp.

References iHr, and iPeerList.

void CBTDiscoverer::EndListL  ) 
 

Definition at line 383 of file btdiscoverer.cpp.

void CBTDiscoverer::FinishDiscovery  )  [private]
 

Definition at line 150 of file btdiscoverer.cpp.

References iCurrentDeviceIndex, iDeviceAddresses, iMessage, iNumPeers, iPeerList, iSession, Log::Print(), and CServerSession::SetPeerList().

Referenced by DeviceDiscovered(), and NextRecordRequestComplete().

CBTDiscoverer * CBTDiscoverer::NewL RMessage &  aMessage,
CServerSession aSession
[static]
 

Definition at line 50 of file btdiscoverer.cpp.

References CBTDiscoverer(), and ConstructL().

Referenced by CBTCommunicator::DiscoverPeersL().

void CBTDiscoverer::NextRecordRequestComplete TInt  aError,
TSdpServRecordHandle  aHandle,
TInt  aTotalRecordsCount
 

Definition at line 275 of file btdiscoverer.cpp.

References DiscoverServices(), FinishDiscovery(), iAgent, iAttrMatchList, iCurrentDeviceIndex, iDeviceAddresses, iL2capPort, iLastUuid32, iRfcommPort, iServiceName, and Log::Print().

void CBTDiscoverer::ParseUuid TDes &  aBuf,
const TUUID &  aUuid,
TUint32 &  aUuid32
[private]
 

Definition at line 389 of file btdiscoverer.cpp.

Referenced by VisitAttributeValueL().

TInt CBTDiscoverer::RunError TInt  aError  ) 
 

Definition at line 219 of file btdiscoverer.cpp.

void CBTDiscoverer::RunL  ) 
 

Definition at line 212 of file btdiscoverer.cpp.

References DeviceDiscovered().

void CBTDiscoverer::StartL RSocketServ &  aSocketServ  ) 
 

Definition at line 98 of file btdiscoverer.cpp.

References iHr, iNameEntry, iPeerList, Log::Print(), and TPeerDataList.

Referenced by CBTCommunicator::DiscoverPeersL().

void CBTDiscoverer::StartListL CSdpAttrValueList &  aList  ) 
 

Definition at line 378 of file btdiscoverer.cpp.

void CBTDiscoverer::VisitAttributeValueL CSdpAttrValue &  aValue,
TSdpElementType  aType
 

Definition at line 311 of file btdiscoverer.cpp.

References iL2capPort, iLastUuid32, iRfcommPort, iServiceName, ParseUuid(), and Log::Print().


Field Documentation

CSdpAgent* CBTDiscoverer::iAgent [private]
 

Definition at line 94 of file btdiscoverer.h.

Referenced by AttributeRequestComplete(), DiscoverServices(), NextRecordRequestComplete(), and ~CBTDiscoverer().

CSdpAttrIdMatchList* CBTDiscoverer::iAttrMatchList [private]
 

Definition at line 95 of file btdiscoverer.h.

Referenced by ConstructL(), NextRecordRequestComplete(), and ~CBTDiscoverer().

TInt CBTDiscoverer::iCurrentDeviceIndex [private]
 

Definition at line 113 of file btdiscoverer.h.

Referenced by AttributeRequestComplete(), DeviceDiscovered(), FinishDiscovery(), and NextRecordRequestComplete().

RDeviceAddressList CBTDiscoverer::iDeviceAddresses [private]
 

Definition at line 110 of file btdiscoverer.h.

Referenced by AttributeRequestComplete(), DeviceDiscovered(), FinishDiscovery(), NextRecordRequestComplete(), and ~CBTDiscoverer().

RHostResolver CBTDiscoverer::iHr [private]
 

Definition at line 89 of file btdiscoverer.h.

Referenced by DeviceDiscovered(), DoCancel(), and StartL().

TInt CBTDiscoverer::iL2capPort [private]
 

Definition at line 104 of file btdiscoverer.h.

Referenced by AttributeRequestComplete(), NextRecordRequestComplete(), and VisitAttributeValueL().

TUint32 CBTDiscoverer::iLastUuid32 [private]
 

Definition at line 98 of file btdiscoverer.h.

Referenced by NextRecordRequestComplete(), and VisitAttributeValueL().

RMessage& CBTDiscoverer::iMessage [private]
 

Definition at line 85 of file btdiscoverer.h.

Referenced by ConstructL(), and FinishDiscovery().

TNameEntry CBTDiscoverer::iNameEntry [private]
 

Definition at line 90 of file btdiscoverer.h.

Referenced by DeviceDiscovered(), and StartL().

TInt CBTDiscoverer::iNumPeers [private]
 

Definition at line 116 of file btdiscoverer.h.

Referenced by AttributeRequestComplete(), and FinishDiscovery().

TPeerDataList* CBTDiscoverer::iPeerList [private]
 

Definition at line 119 of file btdiscoverer.h.

Referenced by AttributeRequestComplete(), DoCancel(), FinishDiscovery(), and StartL().

TInt CBTDiscoverer::iRfcommPort [private]
 

Definition at line 101 of file btdiscoverer.h.

Referenced by AttributeRequestComplete(), NextRecordRequestComplete(), and VisitAttributeValueL().

CSdpSearchPattern* CBTDiscoverer::iSdpPattern [private]
 

Definition at line 93 of file btdiscoverer.h.

Referenced by ConstructL(), DiscoverServices(), and ~CBTDiscoverer().

TServiceName CBTDiscoverer::iServiceName [private]
 

Definition at line 107 of file btdiscoverer.h.

Referenced by AttributeRequestComplete(), NextRecordRequestComplete(), and VisitAttributeValueL().

CServerSession& CBTDiscoverer::iSession [private]
 

Definition at line 86 of file btdiscoverer.h.

Referenced by FinishDiscovery().


The documentation for this class was generated from the following files:
Generated on Tue Jan 13 15:47:08 2004 for CobainAPIImplementation by doxygen 1.3.5