Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: btsdp.h
Link against: bluetooth.lib

Class CSdpSearchPattern

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

CBaseBase class for all classes to be instantiated on the heap
CSdpSearchPatternA 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:


Construction and destruction


NewL()

static CSdpSearchPattern* NewL();

Description

Allocates and constructs a new CSdpSearchPattern object.

Return value

CSdpSearchPattern*

New CSdpSearchPattern object


CSdpSearchPattern

~CSdpSearchPattern();

Description

Destructor

[Top]


List manipulation


AddL()

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


Remove()

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


Reset()

void Reset();

Description

Removes all UUIDs from the list.

[Top]


List access and properties


At()

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


Count()

TInt Count() const;

Description

Gets the number of UUIDs in the list.

Return value

TInt

Number of UUIDs in the list


Find()

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


IsEmpty()

TBool IsEmpty();

Description

Tests if the list is empty.

Return value

TBool

True if the list is empty