RSdpAgent Class Reference
Interface, internal to SDP agent DLL, used for direct prodding of a remote database.
Public Member Functions
|
|
RSdpAgent
()
|
void
|
Cancel
()
|
void
|
Close
()
|
void
|
Connect
(
TBTDevAddr
,
TRequestStatus
&)
|
TBool
|
IsOpen
()
|
TInt
|
Open
(
RSdpSession
&)
|
TInt
|
RetrieveResult
(
TDes8
&)
|
void
|
SdpAttributeRequestL
(
TInt
&,
TSdpServRecordHandle
,
TUint16
,
CSdpAttrIdMatchList
&, const
TDesC8
&,
TRequestStatus
&)
|
void
|
SdpSearchRequestL
(
TInt
&,
CSdpAttrValueDES
&,
TUint16
, const
TDesC8
&,
TRequestStatus
&)
|
void
|
SdpSearchRequestL
(
TInt
&,
CSdpSearchPattern
&,
TUint16
, const
TDesC8
&,
TRequestStatus
&)
|
Constructor & Destructor Documentation
RSdpAgent()
Constructer: Set the HBufC pointer iRequestBuf to NULL (This is an 'R' class). Set the
TPckg
iResultSize to package nothing.
Member Functions Documentation
Connect(TBTDevAddr, TRequestStatus &)
Ask to connect to remote device.
Open(RSdpSession &)
Open a NetDatabase session on ESock using SDP over Bluetooth.
RetrieveResult(TDes8 &)
On completion of a service search or attribute request
RSdpAgent
is sent the size of the response by the server. To obtain the actual result (buffered in the server) a user needs to call this function. NB. This is a synchronous request.
SdpAttributeRequestL(TInt &, TSdpServRecordHandle, TUint16, CSdpAttrIdMatchList &, const TDesC8 &, TRequestStatus &)
Ask for an attribute request using an ID match list (
CSdpAttrIdMatchList
). The reply to this function is to send the SIZE of the response back in the aResultSize parameter. Once this is done the user of this class can set up a buffer big enough to collect the response from server side.
SdpSearchRequestL(TInt &, CSdpAttrValueDES &, TUint16, const TDesC8 &, TRequestStatus &)
Ask for a service search using a list attribute value (
CSdpAttrValueDES
). THIS FUNCTION SHOULD NEVER BE EXPORTED AS IS...a general list attribute value is open to misuse. The reply to this function is to send the SIZE of the response back in the aResultSize parameter. Once this is done the user of this class can set up a buffer big enough to collect the response from server side.
SdpSearchRequestL(TInt &, CSdpSearchPattern &, TUint16, const TDesC8 &, TRequestStatus &)
Ask for a service search using a UUID search pattern (
CSdpSearchPattern
). THIS FUNCTION SHOULD MAY BE EXPORTED (UNLIKE THE OTHER "SdpSearchRequestL") AT SOME FUTURE DATE. The reply to this function is to send the SIZE of the response back in the aResultSize parameter. Once this is done the user of this class can set up a buffer big enough to collect the response from server side.
Member Data Documentation
TSDPConnectBuf
iConnectBuf
HBufC8 * iRequestBuf
HBufC8
*
|
iRequestBuf
|
[private]
|
TPckg< TInt > iResultSize
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.