#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
MSdpElementBuilder
- Constructs an attribute value, or a set of attributes, from multiple data elemen...
CBase
-
Base class for all classes to be instantiated on the heap.
CSdpAttrIdMatchList
- SDP Attribute ID Match list.
Members
Defined in CSdpAttrIdMatchList
:
Inherited from CBase
:
Inherited from MSdpElementBuilder
:
Construction and destruction
IMPORT_C static CSdpAttrIdMatchList* NewL();
Description
Allocate and construct a new CSdpAttrIdMatchList object.
Return value
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
Return value
IMPORT_C ~CSdpAttrIdMatchList();
Description
Destructor.
IMPORT_C void AddL(TAttrRange aRange);
Description
Adds a range of IDs to the list.
Parameters
IMPORT_C void RemoveL(TAttrRange aRange);
Description
Removes a range of IDs from the list.
Parameters
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
Return value
TBool
|
ETrue if the attribute is in the list, else EFalse
|
|
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
Return value
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
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
private: virtual MSdpElementBuilder* EndListL();
Description
Attribute list now complete. Stop the parser by returning 0.
Return value