RSdpDatabase Class Reference

#include <btsdp.h>

class RSdpDatabase : public RSdpSubSession

Inherits from

Public Member Functions
RSdpDatabase()
virtual 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)
virtual 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

Detailed Description

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

Constructor & Destructor Documentation

RSdpDatabase ( )

IMPORT_CRSdpDatabase()

Default constructor.

capability
LocalServices

Member Function Documentation

Close ( )

IMPORT_C voidClose()[virtual]

Reimplemented from RSdpSubSession::Close()

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
ParameterDescription
aUUIDThe service class UUID for the service record
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
ParameterDescription
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.
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
ParameterDescription
aHandleThe service record from which to delete the attribute
aAttrIDThe ID of the attribute

DeleteAttributeL ( TSdpServRecordHandle, TSdpAttributeID )

IMPORT_C voidDeleteAttributeL(TSdpServRecordHandleaHandle,
TSdpAttributeIDaAttrID
)

Delete an attribute from a service record.

capability
LocalServices
DeprecatedUse non-leaving version instead

See also: RSdpDatabase::DeleteAttribute

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

DeleteRecord ( TSdpServRecordHandle )

IMPORT_C voidDeleteRecord(TSdpServRecordHandleaHandle)

Deletes a service record.

capability
LocalServices
ParameterDescription
aHandleHandle of the service record to delete

DeleteRecordL ( TSdpServRecordHandle )

IMPORT_C voidDeleteRecordL(TSdpServRecordHandleaHandle)

Deletes a service record.

capability
LocalServices
DeprecatedUse non-leaving version instead

See also: RSdpDatabase::DeleteRecord

ParameterDescription
aHandleHandle of the service record to delete

Open ( RSdp & )

IMPORT_C TIntOpen(RSdp &aSession)[virtual]

Reimplemented from RSdpSubSession::Open(RSdp &)

Opens a SDP database subsession.

capability
LocalServices
ParameterDescription
aSessionSDP database session

Returns: System-wide error code

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
ParameterDescription
aHandleThe service record handle to update
aAttrIDThe attribute ID to update
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
ParameterDescription
aHandleThe service record handle to update
aAttrIDThe attribute ID to update
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
ParameterDescription
aHandleThe service record handle to update
aAttrIDThe attribute ID to update
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
ParameterDescription
aHandleThe service record handle to update
aAttrIDThe attribute ID to update
aDesCValueThe attribute value