CSdpSearchRequester Class Reference

class CSdpSearchRequester : public CSdpRequesterBase

Inherits from

Constructor & Destructor Documentation

CSdpSearchRequester(RSdpSession &, CSdpAgentEng &)

CSdpSearchRequester(RSdpSession &aSdpSession,
CSdpAgentEng &aParent
)[private]

Constructor: Adds this CSdpAttributeRequester to Active Scheduler. Sets parent, and passes client side object for session with SDP server (currently ESock). Sets up cont state member to default 0 length descriptor.

Parameters

RSdpSession & aSdpSession
CSdpAgentEng & aParent

~CSdpSearchRequester()

~CSdpSearchRequester()

Destructor

Member Functions Documentation

ConstructL()

voidConstructL()[private]

Currently does nothing.

DoCancel()

voidDoCancel()[private, virtual]

Cancels current asynchronous requests. This could be with the Sdp server (currently ESOCK) or if this CSdpRequesterBase is in idle state it cancels the time out timer (set-up to perform a disconnection after a defined length of time).

HandleSearchResponseL()

voidHandleSearchResponseL()[private]

IssueRequestL()

voidIssueRequestL()[private, virtual]

Requester is now connected. Called down from requester base class. Time to actually issue the request

NewL(RSdpSession &, CSdpAgentEng &)

CSdpSearchRequester *NewL(RSdpSession &aSdpSession,
CSdpAgentEng &aParent
)[static]

Standard NewL method. Note: need to pass the client side object of the SDP service session, and the CSdpA.gentEng parent which is managing this CSdpAttributeRequester active object.

Parameters

RSdpSession & aSdpSession
CSdpAgentEng & aParent

RequestCompleteL()

voidRequestCompleteL()[private, virtual]
Response parameter format is
		Total service record count		TUint16
		Current service record count	TUint16
		Service Record Handles			unadorned list of TUint32's
		Continuation State				1 + 0-16 bytes
 

Reset()

voidReset()[private, virtual]

Called when base requester idle timer expires, and when an error is reported Cleans up and makes sure we really are disconnected.

RunError(TInt)

TInt RunError(TIntaError)[private, virtual]

Called automatically when a RunL leaves. Calls appropriate error handling function in the CSdpAgentEng parent.

Parameters

TInt aError

SearchRequestL(const TBTDevAddr &, CSdpSearchPattern &, TUint16, const TDesC8 &)

voidSearchRequestL(const TBTDevAddr &aRemoteDev,
CSdpSearchPattern &aUUIDFilter,
TUint16aMaxCount,
const TDesC8 &aContState
)

Sets up appropriate member variables, then attempts to connect to remote device. (If connection is made the state machine takes over to make the actual search request.)

Parameters

const TBTDevAddr & aRemoteDev
CSdpSearchPattern & aUUIDFilter
TUint16 aMaxCount
const TDesC8 & aContState

SendSearchRequest()

voidSendSearchRequest()[private]

Member Data Documentation

TPtrC8 iContState

TPtrC8 iContState[private]

TUint16 iMaxRecCount

TUint16 iMaxRecCount[private]

CSdpSearchPattern * iUUIDFilter

CSdpSearchPattern *iUUIDFilter[private]