Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <btsdp.h>
Link against: sdpdatabase.lib

Class CSdpAttrIdMatchList

class CSdpAttrIdMatchList : public CBase, public MSdpElementBuilder;

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

Members

Defined in CSdpAttrIdMatchList:

Inherited from CBase:

Inherited from MSdpElementBuilder:


Construction and destruction


NewL()

IMPORT_C static CSdpAttrIdMatchList* NewL();

Description

Allocate and construct a new CSdpAttrIdMatchList object.

Return value

CSdpAttrIdMatchList *

New CSdpAttrIdMatchList object


NewL(const CSdpAttrIdMatchList &)

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

IMPORT_C ~CSdpAttrIdMatchList();

Description

Destructor.

[Top]


Member functions


AddL(TAttrRange)

IMPORT_C void AddL(TAttrRange aRange);

Description

Adds a range of IDs to the list.

Parameters

TAttrRange aRange

Range to add


RemoveL(TAttrRange)

IMPORT_C void RemoveL(TAttrRange aRange);

Description

Removes a range of IDs from the list.

Parameters

TAttrRange aRange

Range to remove


InMatchList(TSdpAttributeID,TInt &)const

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

Description

Tests if the specified attribute ID is in the list, and gets its position. Do not use this - it gives an off-by-one error for aPos unless the attribute is the first one in a contiguous range. Use CSdpAttrIdMatchList::InMatchListRange(TSdpAttributeID,TInt &)const instead

Parameters

TSdpAttributeID aAttrId

Attribute ID to test

TInt &aPos

Position of ID in the list with an off-by-one error for IDs not at the start of a range, or 0 if not found

Return value

TBool

ETrue if the attribute is in the list, else EFalse


InMatchList(TSdpAttributeID)const

IMPORT_C 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

ETrue if the attribute is in the list, else EFalse


Count()const

IMPORT_C TInt Count() const;

Description

Gets the number of separate ranges of attribute IDs in the list.

Return value

TInt

Number of ranges of attribute IDs in the list


InMatchListRange(TSdpAttributeID,TInt &)const

IMPORT_C TBool InMatchListRange(TSdpAttributeID aAttrId, TInt &aRange) const;

Description

Tests if the specified attribute ID is in the list.

Parameters

TSdpAttributeID aAttrId

Attribute ID to test

TInt &aRange

Position of the range of IDs in the list which contains aAttrId, or 0 if not found

Return value

TBool

ETrue if the attribute is in the list, else EFalse


BuildUintL(const TDesC8 &)

private: virtual MSdpElementBuilder* BuildUintL(const TDesC8 &aUint);

Description

This should be one or two 16 bit integers, representing an AttrId of range thereof respectively.

Parameters

const TDesC8 &aUint

Return value

MSdpElementBuilder *


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 CSdpAttrIdMatchList::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

Attribute list now complete. Stop the parser by returning 0.

Return value

MSdpElementBuilder *