Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: btsdp.h
Link against: sdpdatabase.lib

Class CSdpSearchPattern

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

Members

Defined in CSdpSearchPattern:
AddL(), At(), BuildDESL(), BuildUUIDL(), ConstructL(), Count(), EndListL(), Find(), IsEmpty(), NewL(), Remove(), Reset(), StartListL(), ~CSdpSearchPattern()

Inherited from CBase:
Delete(), Extension_(), operator new()

Inherited from MSdpElementBuilder:
BuildBooleanL(), BuildDEAL(), BuildIntL(), BuildNilL(), BuildStringL(), BuildURLL(), BuildUintL(), BuildUnknownL(), MSEB_ExtensionInterfaceL()

See also:


Construction and destruction


NewL()

static IMPORT_C CSdpSearchPattern *NewL();

Description

Allocates and constructs a new CSdpSearchPattern object.

Return value

CSdpSearchPattern *

New CSdpSearchPattern object


ConstructL()

IMPORT_C void ConstructL();

Description

Allocates a new UUID array.


~CSdpSearchPattern()

IMPORT_C ~CSdpSearchPattern();

Description

Destructor

Destroys the UUID array.

[Top]


Member functions


AddL()

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


Remove()

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()

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


Count()

IMPORT_C TInt Count() const;

Description

Gets the number of UUIDs in the list.

Return value

TInt

Number of UUIDs in the list


At()

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


Reset()

IMPORT_C void Reset();

Description

Removes all UUIDs from the list.


IsEmpty()

IMPORT_C TBool IsEmpty();

Description

Tests if the list is empty.

Return value

TBool

True if the list is empty


BuildUUIDL()

private: virtual MSdpElementBuilder *BuildUUIDL(const TUUID &aUUID);

Description

Adds a UUID element.

Parameters

const TUUID &aUUID

Element to add

Return value

MSdpElementBuilder *

Builder with added element


BuildDESL()

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 StartListL(), and then calls to add elements to the list.

Return value

MSdpElementBuilder *

Attribute value with added element


StartListL()

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

MSdpElementBuilder *

Builder


EndListL()

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

MSdpElementBuilder *

Builder