Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: btsdp.h
Link against: bluetooth.lib

Class CSdpAttrIdMatchList

CSdpAttrIdMatchList

Support

Supported from 6.1

Description

SDP Attribute ID Match list.

Holds a list of Attribute IDs to be retrieved from a remote device in an Service Attribute Request. Set in terms of ranges of attributes, each one specified through a TAttrRange.

Derivation

CBaseBase class for all classes to be instantiated on the heap
CSdpAttrIdMatchListSDP Attribute ID Match list

Defined in CSdpAttrIdMatchList:
AddL(), Count(), InMatchList(), NewL(), RemoveL(), ~CSdpAttrIdMatchList()

Inherited from CBase:
operator new()


Construction and destruction


NewL()

static CSdpAttrIdMatchList* NewL();

Description

Allocate and construct a new CSdpAttrIdMatchList object.

Return value

CSdpAttrIdMatchList*

New CSdpAttrIdMatchList object


NewL()

static CSdpAttrIdMatchList* NewL(const CSdpAttrIdMatchList& aAttrMatchList);

Description

Allocate and construct a new CSdpAttrIdMatchList object as a copy of another CSdpAttrIdMatchList.

Parameters

const CSdpAttrIdMatchList& aAttrMatchList

Object to copy

Return value

CSdpAttrIdMatchList*

New CSdpAttrIdMatchList object


~CSdpAttrIdMatchList()

~CSdpAttrIdMatchList();

Description

Destructor.

[Top]


List manipulation


AddL()

void AddL(TAttrRange aRange);

Description

Adds a range of IDs to the list.

Parameters

TAttrRange aRange

Range to add


RemoveL()

void RemoveL(TAttrRange aRange);

Description

Removes a range of IDs from the list.

Parameters

TAttrRange aRange

Range to remove

[Top]


List properties


Count()

TInt Count() const;

Description

Gets the number of attributes IDs in the list.

Return value

TInt

Number of attributes IDs in the list


InMatchList()

TBool InMatchList(TSdpAttributeID aAttrId) const;

Description

Tests if the specified attribute ID is in the list.

Parameters

TSdpAttributeID aAttrId

Attribute ID to test

Return value

TBool

True if the attribute is in the list, else false


InMatchList()

TBool InMatchList(TSdpAttributeID aAttrId, TInt &aPos) const;

Description

Tests if the specified attribute ID is in the list, and gets its position.

Parameters

TSdpAttributeID aAttrId

Attribute ID to test

TInt &aPos

Position of ID in the list, or 0 if not found

Return value

TBool

True if the attribute is in the list, else false