Location:
btsdp.h
Link against: bluetooth.lib
CSdpSearchPattern
Support
Supported from 6.1
Description
A list of Bluetooth service classes, represented as Universal Unique Identifiers (UUIDs), to be matched in SDP Service Search Requests.
Derivation
CBase | Base class for all classes to be instantiated on the heap |
CSdpSearchPattern | A list of Bluetooth service classes, represented as Universal Unique Identifiers (UUIDs), to be matched in SDP Service Search Requests |
|
Defined in CSdpSearchPattern
:
AddL()
, At()
, CSdpSearchPattern
, Count()
, Find()
, IsEmpty()
, NewL()
, Remove()
, Reset()
Inherited from CBase
:
operator new()
See also:
static CSdpSearchPattern* NewL();
Description
Allocates and constructs a new CSdpSearchPattern
object.
Return value
CSdpSearchPattern* |
New CSdpSearchPattern object |
|
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 |
|
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 |
|
void Reset();
Description
Removes all UUIDs from the list.
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
TUUID |
UUID at specified position |
|
TInt Count() const;
Description
Gets the number of UUIDs in the list.
Return value
TInt |
Number of UUIDs in the list |
|
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 |
|
TBool IsEmpty();
Description
Tests if the list is empty.
Return value
TBool |
True if the list is empty |
|