#include <btsdp.h>
Link against:
sdpdatabase.lib
class CSdpSearchPattern : public CBase, public MSdpElementBuilder;
Description
A list of Bluetooth service classes, represented as Universal Unique Identifiers (UUIDs), to be matched in SDP Service Search
Requests.
Derivation
MSdpElementBuilder
- Constructs an attribute value, or a set of attributes, from multiple data elemen...
CBase
-
Base class for all classes to be instantiated on the heap.
CSdpSearchPattern
- A list of Bluetooth service classes, represented as Universal Unique Identifiers...
Members
Defined in CSdpSearchPattern
:
Inherited from CBase
:
Inherited from MSdpElementBuilder
:
See also:
Construction and destruction
IMPORT_C static CSdpSearchPattern* NewL();
Description
Allocates and constructs a new CSdpSearchPattern object.
Return value
IMPORT_C void ConstructL();
Description
Allocates a new UUID array.
IMPORT_C ~CSdpSearchPattern();
Description
Destructor
Destroys the UUID array.
IMPORT_C TInt AddL(const TUUID &aUUID);
Description
Adds a UID to the list.
Parameters
const TUUID &aUUID |
UUID to add
|
|
Return value
TInt
|
Position in the list that the UUID is inserted at, or KErrAlreadyExists if it's already in the list
|
|
IMPORT_C TInt Remove(const TUUID &aUUID);
Description
Removes a UUID from the list.
Parameters
const TUUID &aUUID |
UUID to remove
|
|
Return value
TInt
|
Position in the list of the UUID, or KErrNotFound if it's not in the list
|
|
Find(const TUUID &,TInt &)const
IMPORT_C TInt Find(const TUUID &aUUID, TInt &aPos) const;
Description
Gets the position of the specified UUID in the list.
Parameters
const TUUID &aUUID |
UUID to find
|
TInt &aPos |
Position of the UUID if it is in the list, otherwise the position where it would be inserted
|
|
Return value
TInt
|
0 if aUUID is found, otherwise non-zero
|
|
IMPORT_C TInt Count() const;
Description
Gets the number of UUIDs in the list.
Return value
TInt
|
Number of UUIDs in the list
|
|
IMPORT_C const TUUID At(TInt anIndex) const;
Description
Gets the UUID at the specified position in the list.
Parameters
TInt anIndex |
Position of the UUID to get
|
|
Return value
const TUUID
|
UUID at specified position
|
|
IMPORT_C void Reset();
Description
Removes all UUIDs from the list.
IMPORT_C TBool IsEmpty();
Description
Tests if the list is empty.
Return value
TBool
|
True if the list is empty
|
|
BuildUUIDL(const TUUID &)
private: virtual MSdpElementBuilder* BuildUUIDL(const TUUID &aUUID);
Description
Adds a UUID element.
Parameters
const TUUID &aUUID |
Element to add
|
|
Return value
private: virtual MSdpElementBuilder* BuildDESL();
Description
Adds a (header for a) Data element sequence (DES), a data element whose data field is a sequence of data elements.
This should be followed by a call to CSdpSearchPattern::StartListL()
, and then calls to add elements to the list.
Return value
private: virtual MSdpElementBuilder* StartListL();
Description
Indicates that subsequent elements added belong to a DES or DEA.
The end of the list should be indicated by a call to EndList().
Return value
private: virtual MSdpElementBuilder* EndListL();
Description
Indicates that subsequent elements no longer belong to current DES or DEA
Building of current DES or DEA is terminated.
Return value