Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

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

Struct TAttrRange

struct TAttrRange;

Description

A range of attribute ID values.

This class is used in an attribute list, CSdpAttrIdMatchList, so that all attributes with IDs in the specified range are considered.

Members

Defined in TAttrRange:

See also:


Construction and destruction


TAttrRange()

IMPORT_C TAttrRange();

Description

Default constructor.


TAttrRange(TSdpAttributeID)

IMPORT_C TAttrRange(TSdpAttributeID aAttrId);

Description

Constructor with single ID.

Parameters

TSdpAttributeID aAttrId

The start and the end of the range are both set to aAttrId


TAttrRange(TSdpAttributeID,TSdpAttributeID)

IMPORT_C TAttrRange(TSdpAttributeID aStart, TSdpAttributeID aEnd);

Description

Constructor with start and end IDs.

Parameters

TSdpAttributeID aStart

ID for the start of the range

TSdpAttributeID aEnd

ID for the end of the range

[Top]


Member functions


IsInRange(TSdpAttributeID)const

IMPORT_C TBool IsInRange(TSdpAttributeID aAttrId) const;

Description

Tests if the specified ID is either within the range.

Parameters

TSdpAttributeID aAttrId

ID to test

Return value

TBool

True if in range, else false


IsContiguousWith(TSdpAttributeID)const

IMPORT_C TBool IsContiguousWith(TSdpAttributeID aAttrId) const;

Description

Tests if the specified ID is either within the range, is one less than the lower bound, or one more than the upper bound.

Parameters

TSdpAttributeID aAttrId

ID to test

Return value

TBool

True if contiguous, else false


IsContiguousWith(TAttrRange)const

IMPORT_C TBool IsContiguousWith(TAttrRange aRange) const;

Description

Tests if the specified range is contiguous with the range.

Parameters

TAttrRange aRange

Range to test

Return value

TBool

True if contiguous, else false

[Top]


Member data


iStart

TSdpAttributeID iStart;

Description

ID of the start of the range


iEnd

TSdpAttributeID iEnd;

Description

ID of the end of the range