RSdpDatabase Class Reference

class RSdpDatabase : public RSdpSubSession

Subsession to the SDP through which service records and their attributes can be added, deleted, and updated.

Inherits from

Public Member Functions
RSdpDatabase()
IMPORT_C voidClose()
IMPORT_C voidCreateServiceRecordL(const TUUID &, TSdpServRecordHandle &)
IMPORT_C voidCreateServiceRecordL(CSdpAttrValueDES &, TSdpServRecordHandle &)
IMPORT_C voidDeleteAttribute(TSdpServRecordHandle, TSdpAttributeID)
IMPORT_C voidDeleteAttributeL(TSdpServRecordHandle, TSdpAttributeID)
IMPORT_C voidDeleteRecord(TSdpServRecordHandle)
IMPORT_C voidDeleteRecordL(TSdpServRecordHandle)
IMPORT_C TIntOpen(RSdp &)
IMPORT_C voidUpdateAttributeL(TSdpServRecordHandle, TSdpAttributeID, CSdpAttrValue &)
IMPORT_C voidUpdateAttributeL(TSdpServRecordHandle, TSdpAttributeID, TUint)
IMPORT_C voidUpdateAttributeL(TSdpServRecordHandle, TSdpAttributeID, const TDesC16 &)
IMPORT_C voidUpdateAttributeL(TSdpServRecordHandle, TSdpAttributeID, const TDesC8 &)
Inherited Functions
RSubSessionBase::CloseSubSession(TInt)
RSubSessionBase::CreateAutoCloseSubSession(RSessionBase &,TInt,const TIpcArgs &)
RSubSessionBase::CreateSubSession(const RSessionBase &,TInt)
RSubSessionBase::CreateSubSession(const RSessionBase &,TInt,const TIpcArgs &)
RSubSessionBase::RSubSessionBase()
RSubSessionBase::Send(TInt)const
RSubSessionBase::Send(TInt,const TIpcArgs &)const
RSubSessionBase::SendReceive(TInt)const
RSubSessionBase::SendReceive(TInt,TRequestStatus &)const
RSubSessionBase::SendReceive(TInt,const TIpcArgs &)const
RSubSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const
RSubSessionBase::Session()const
RSubSessionBase::SubSessionHandle()const
Private Attributes
HBufC8 *iBuffer
TUint32 iPadding1
TUint32 iPadding2

Constructor & Destructor Documentation

RSdpDatabase()

IMPORT_CRSdpDatabase()

Default constructor.

capability
LocalServices

Member Functions Documentation

Close()

IMPORT_C voidClose()[virtual]

Closes the SDP database subsession.

Any records that have been added during this session will be removed when the session is closed.
capability
LocalServices

CreateServiceRecordL(const TUUID &, TSdpServRecordHandle &)

IMPORT_C voidCreateServiceRecordL(const TUUID &aUUID,
TSdpServRecordHandle &aHandle
)

Creates a new service record, with a single service class, in the SDP database.

capability
LocalServices

Parameters

const TUUID & aUUIDThe service class UUID for the service record
TSdpServRecordHandle & aHandleOn return, the service record handle of the new record

CreateServiceRecordL(CSdpAttrValueDES &, TSdpServRecordHandle &)

IMPORT_C voidCreateServiceRecordL(CSdpAttrValueDES &aUUIDList,
TSdpServRecordHandle &aHandle
)

Creates a new service record, with multiple service classes, in the SDP database.

capability
LocalServices

Parameters

CSdpAttrValueDES & aUUIDListThe service class attribute of the new record. This should consist of a list of UUIDs of the service classes to which the record belongs. The UUIDs should be ordered from the most derived service class to the base one.
TSdpServRecordHandle & aHandleOn return, the service record handle of the new record

DeleteAttribute(TSdpServRecordHandle, TSdpAttributeID)

IMPORT_C voidDeleteAttribute(TSdpServRecordHandleaHandle,
TSdpAttributeIDaAttrID
)

Delete an attribute from a service record.

capability
LocalServices

Parameters

TSdpServRecordHandle aHandleThe service record from which to delete the attribute
TSdpAttributeID aAttrIDThe ID of the attribute

DeleteAttributeL(TSdpServRecordHandle, TSdpAttributeID)

IMPORT_C voidDeleteAttributeL(TSdpServRecordHandleaHandle,
TSdpAttributeIDaAttrID
)

Delete an attribute from a service record.

capability
LocalServices
Use non-leaving version instead RSdpDatabase::DeleteAttribute

Parameters

TSdpServRecordHandle aHandleThe service record from which to delete the attribute
TSdpAttributeID aAttrIDThe ID of the attribute

DeleteRecord(TSdpServRecordHandle)

IMPORT_C voidDeleteRecord(TSdpServRecordHandleaHandle)

Deletes a service record.

capability
LocalServices

Parameters

TSdpServRecordHandle aHandleHandle of the service record to delete

DeleteRecordL(TSdpServRecordHandle)

IMPORT_C voidDeleteRecordL(TSdpServRecordHandleaHandle)

Deletes a service record.

capability
LocalServices
Use non-leaving version instead RSdpDatabase::DeleteRecord

Parameters

TSdpServRecordHandle aHandleHandle of the service record to delete

Open(RSdp &)

IMPORT_C TIntOpen(RSdp &aSession)[virtual]

Opens a SDP database subsession.

capability
LocalServices

Parameters

RSdp & aSessionSDP database session

UpdateAttributeL(TSdpServRecordHandle, TSdpAttributeID, CSdpAttrValue &)

IMPORT_C voidUpdateAttributeL(TSdpServRecordHandleaHandle,
TSdpAttributeIDaAttrID,
CSdpAttrValue &aAttrValue
)

Updates a service record attribute (value encapsulated in a CSdpAttrValue).

If the attribute does not exist, it is created. If it already exists, the current definition is removed and the new value inserted.

No check is made that the attribute value is suitable for the service class to which the record belongs. It is up to the user to ensure that the semantics of the attribute defined by the service class are respected.

capability
LocalServices

Parameters

TSdpServRecordHandle aHandleThe service record handle to update
TSdpAttributeID aAttrIDThe attribute ID to update
CSdpAttrValue & aAttrValueThe attribute value

UpdateAttributeL(TSdpServRecordHandle, TSdpAttributeID, TUint)

IMPORT_C voidUpdateAttributeL(TSdpServRecordHandleaHandle,
TSdpAttributeIDaAttrID,
TUintaUintValue
)

Updates a service record attribute (integer value).

If the attribute does not exist, it is created. If it already exists, the current definition is removed and the new value inserted.

No check is made that the attribute value is suitable for the service class to which the record belongs. It is up to the user to ensure that the semantics of the attribute defined by the service class are respected.

capability
LocalServices

Parameters

TSdpServRecordHandle aHandleThe service record handle to update
TSdpAttributeID aAttrIDThe attribute ID to update
TUint aUintValueThe attribute value

UpdateAttributeL(TSdpServRecordHandle, TSdpAttributeID, const TDesC16 &)

IMPORT_C voidUpdateAttributeL(TSdpServRecordHandleaHandle,
TSdpAttributeIDaAttrID,
const TDesC16 &aDesCValue
)

Updates a service record attribute (wide descriptor value).

If the attribute does not exist, it is created. If it already exists, the current definition is removed and the new value inserted.

No check is made that the attribute value is suitable for the service class to which the record belongs. It is up to the user to ensure that the semantics of the attribute defined by the service class are respected.

capability
LocalServices Updates a service record attribute (narrow descriptor value).
If the attribute does not exist, it is created. If it already exists, the current value is removed and the new value inserted.

No check is made that the attribute value is suitable for the service class to which the record belongs. It is up to the user to ensure that the semantics of the attribute defined by the service class are respected.

capability
LocalServices

Parameters

TSdpServRecordHandle aHandleThe service record handle to update
TSdpAttributeID aAttrIDThe attribute ID to update
const TDesC16 & aDesCValueThe attribute value

UpdateAttributeL(TSdpServRecordHandle, TSdpAttributeID, const TDesC8 &)

IMPORT_C voidUpdateAttributeL(TSdpServRecordHandleaHandle,
TSdpAttributeIDaAttrID,
const TDesC8 &aDesCValue
)

Updates a service record attribute (wide descriptor value).

If the attribute does not exist, it is created. If it already exists, the current value is removed and the new value inserted.

No check is made that the attribute value is suitable for the service class to which the record belongs. It is up to the user to ensure that the semantics of the attribute defined by the service class are respected.

capability
LocalServices Updates a service record attribute (narrow descriptor value).
If the attribute does not exist, it is created. If it already exists, the current definition is removed and the new value inserted.

No check is made that the attribute value is suitable for the service class to which the record belongs. It is up to the user to ensure that the semantics of the attribute defined by the service class are respected.

capability
LocalServices

Parameters

TSdpServRecordHandle aHandleThe service record handle to update
TSdpAttributeID aAttrIDThe attribute ID to update
const TDesC8 & aDesCValueThe attribute value

Member Data Documentation

HBufC8 * iBuffer

HBufC8 *iBuffer[private]

TUint32 iPadding1

TUint32 iPadding1[private]

TUint32 iPadding2

TUint32 iPadding2[private]