RSdpDatabase Class Reference
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 &) |
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 |
Constructor & Destructor Documentation
Member Functions Documentation
Close()
IMPORT_C void | Close | ( | ) | [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 &)
Creates a new service record, with a single service class, in the SDP database.
Parameters
const TUUID & aUUID | The service class UUID for the service record |
TSdpServRecordHandle & aHandle | On return, the service record handle of the new record |
CreateServiceRecordL(CSdpAttrValueDES &, TSdpServRecordHandle &)
Creates a new service record, with multiple service classes, in the SDP database.
Parameters
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 |
DeleteAttribute(TSdpServRecordHandle, TSdpAttributeID)
Delete an attribute from a service record.
DeleteAttributeL(TSdpServRecordHandle, TSdpAttributeID)
Delete an attribute from a service record.
DeleteRecord(TSdpServRecordHandle)
Deletes a service record.
DeleteRecordL(TSdpServRecordHandle)
Deletes a service record.
Open(RSdp &)
IMPORT_C TInt | Open | ( | RSdp & | aSession | ) | [virtual] |
Opens a SDP database subsession.
Parameters
RSdp & aSession | SDP database session |
UpdateAttributeL(TSdpServRecordHandle, TSdpAttributeID, CSdpAttrValue &)
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.
UpdateAttributeL(TSdpServRecordHandle, TSdpAttributeID, TUint)
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.
UpdateAttributeL(TSdpServRecordHandle, TSdpAttributeID, const TDesC16 &)
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.
UpdateAttributeL(TSdpServRecordHandle, TSdpAttributeID, const TDesC8 &)
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.
Member Data Documentation
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.