| class RSdpDatabase : public RSdpSubSession |
Subsession to the SDP through which service records and their attributes can be added, deleted, and updated.
| Public Member Functions | |
|---|---|
| RSdpDatabase () | |
| 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 ) |
| 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 &) |
| Private Attributes | |
|---|---|
| HBufC8 * | iBuffer |
| TUint32 | iPadding1 |
| TUint32 | iPadding2 |
| IMPORT_C void | Close | ( | ) | [virtual] |
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.
| const TUUID & aUUID | The service class UUID for the service record |
| TSdpServRecordHandle & 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.
| CSdpAttrValueDES & 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. |
| TSdpServRecordHandle & 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.
| TSdpServRecordHandle aHandle | The service record from which to delete the attribute |
| TSdpAttributeID aAttrID | The ID of the attribute |
| IMPORT_C void | DeleteAttributeL | ( | TSdpServRecordHandle | aHandle, |
| TSdpAttributeID | aAttrID | |||
| ) | ||||
Delete an attribute from a service record.
| TSdpServRecordHandle aHandle | The service record from which to delete the attribute |
| TSdpAttributeID aAttrID | The ID of the attribute |
| IMPORT_C void | DeleteRecord | ( | TSdpServRecordHandle | aHandle | ) |
Deletes a service record.
| TSdpServRecordHandle aHandle | Handle of the service record to delete |
| IMPORT_C void | DeleteRecordL | ( | TSdpServRecordHandle | aHandle | ) |
Deletes a service record.
| TSdpServRecordHandle aHandle | Handle of the service record to delete |
| IMPORT_C TInt | Open | ( | RSdp & | aSession | ) | [virtual] |
Opens a SDP database subsession.
| RSdp & aSession | SDP database session |
| 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.
| TSdpServRecordHandle aHandle | The service record handle to update |
| TSdpAttributeID aAttrID | The attribute ID to update |
| CSdpAttrValue & 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.
| TSdpServRecordHandle aHandle | The service record handle to update |
| TSdpAttributeID aAttrID | The attribute ID to update |
| TUint 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.
| TSdpServRecordHandle aHandle | The service record handle to update |
| TSdpAttributeID aAttrID | The attribute ID to update |
| const TDesC16 & 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.
| TSdpServRecordHandle aHandle | The service record handle to update |
| TSdpAttributeID aAttrID | The attribute ID to update |
| const TDesC8 & aDesCValue | The attribute value |
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.