Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: btsdp.h
Link against: bluetooth.lib

Struct TAttrRange

TAttrRange

Support

Supported from 6.1

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.

Defined in TAttrRange:
IsContiguousWith(), IsInRange(), TAttrRange(), iEnd, iStart

See also:


Constructors


TAttrRange()

TAttrRange();

Description

Default constructor.


TAttrRange()

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

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]


Information


IsContiguousWith()

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

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


IsInRange()

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

[Top]


Start and end IDs


iStart

TSdpAttributeID iStart;

Description

ID of the start of the range


iEnd

TSdpAttributeID iEnd;

Description

ID of the end of the range