#include <btsdp.h>
class RSdpDatabase : public RSdpSubSession |
Public Member Functions | |
---|---|
RSdpDatabase() | |
virtual IMPORT_C void | Close() |
IMPORT_C void | CreateServiceRecordL(const TUUID &, TSdpServRecordHandle &) |
IMPORT_C void | CreateServiceRecordL(CSdpAttrValueDES &, TSdpServRecordHandle &) |
IMPORT_C void | DeleteAttribute(TSdpServRecordHandle, TSdpAttributeID) |
IMPORT_C void | DeleteAttributeL(TSdpServRecordHandle, TSdpAttributeID) |
IMPORT_C void | DeleteRecord(TSdpServRecordHandle) |
IMPORT_C void | DeleteRecordL(TSdpServRecordHandle) |
virtual IMPORT_C TInt | Open(RSdp &) |
IMPORT_C void | UpdateAttributeL(TSdpServRecordHandle, TSdpAttributeID, CSdpAttrValue &) |
IMPORT_C void | UpdateAttributeL(TSdpServRecordHandle, TSdpAttributeID, TUint) |
IMPORT_C void | UpdateAttributeL(TSdpServRecordHandle, TSdpAttributeID, const TDesC16 &) |
IMPORT_C void | UpdateAttributeL(TSdpServRecordHandle, TSdpAttributeID, const TDesC8 &) |
Subsession to the SDP through which service records and their attributes can be added, deleted, and updated.
IMPORT_C void | Close | ( | ) | [virtual] |
Reimplemented from RSdpSubSession::Close()
Closes the SDP database subsession.
IMPORT_C void | CreateServiceRecordL | ( | const TUUID & | aUUID, |
TSdpServRecordHandle & | aHandle | |||
) |
Creates a new service record, with a single service class, in the SDP database.
Parameter | Description |
---|---|
aUUID | The service class UUID for the service record |
aHandle | On return, the service record handle of the new record |
IMPORT_C void | CreateServiceRecordL | ( | CSdpAttrValueDES & | aUUIDList, |
TSdpServRecordHandle & | aHandle | |||
) |
Creates a new service record, with multiple service classes, in the SDP database.
Parameter | Description |
---|---|
aUUIDList | The 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. |
aHandle | On return, the service record handle of the new record |
IMPORT_C void | DeleteAttribute | ( | TSdpServRecordHandle | aHandle, |
TSdpAttributeID | aAttrID | |||
) |
Delete an attribute from a service record.
Parameter | Description |
---|---|
aHandle | The service record from which to delete the attribute |
aAttrID | The ID of the attribute |
IMPORT_C void | DeleteAttributeL | ( | TSdpServRecordHandle | aHandle, |
TSdpAttributeID | aAttrID | |||
) |
Delete an attribute from a service record.
See also: RSdpDatabase::DeleteAttribute
Parameter | Description |
---|---|
aHandle | The service record from which to delete the attribute |
aAttrID | The ID of the attribute |
IMPORT_C void | DeleteRecord | ( | TSdpServRecordHandle | aHandle | ) |
Deletes a service record.
Parameter | Description |
---|---|
aHandle | Handle of the service record to delete |
IMPORT_C void | DeleteRecordL | ( | TSdpServRecordHandle | aHandle | ) |
Deletes a service record.
See also: RSdpDatabase::DeleteRecord
Parameter | Description |
---|---|
aHandle | Handle of the service record to delete |
Reimplemented from RSdpSubSession::Open(RSdp &)
Opens a SDP database subsession.
Parameter | Description |
---|---|
aSession | SDP database session |
Returns: System-wide error code
IMPORT_C void | UpdateAttributeL | ( | TSdpServRecordHandle | aHandle, |
TSdpAttributeID | aAttrID, | |||
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.
Parameter | Description |
---|---|
aHandle | The service record handle to update |
aAttrID | The attribute ID to update |
aAttrValue | The attribute value |
IMPORT_C void | UpdateAttributeL | ( | TSdpServRecordHandle | aHandle, |
TSdpAttributeID | aAttrID, | |||
TUint | aUintValue | |||
) |
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.
Parameter | Description |
---|---|
aHandle | The service record handle to update |
aAttrID | The attribute ID to update |
aUintValue | The attribute value |
IMPORT_C void | UpdateAttributeL | ( | TSdpServRecordHandle | aHandle, |
TSdpAttributeID | aAttrID, | |||
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.
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.
Parameter | Description |
---|---|
aHandle | The service record handle to update |
aAttrID | The attribute ID to update |
aDesCValue | The attribute value |
IMPORT_C void | UpdateAttributeL | ( | TSdpServRecordHandle | aHandle, |
TSdpAttributeID | aAttrID, | |||
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.
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.
Parameter | Description |
---|---|
aHandle | The service record handle to update |
aAttrID | The attribute ID to update |
aDesCValue | The attribute value |