#include <btsdp.h>
class CSdpAttrIdMatchList : public CBase |
Public Member Functions | |
---|---|
~CSdpAttrIdMatchList() | |
IMPORT_C void | AddL(TAttrRange) |
IMPORT_C TInt | Count() |
IMPORT_C TUint | EncodeL(TElementEncoder) |
TInt | Find(TSdpAttributeID, TInt &) |
void | FindAttributesL(CSdpServRecord &, MAttributeMatchHandler &) |
IMPORT_C TBool | InMatchList(TSdpAttributeID, TInt &) |
IMPORT_C TBool | InMatchList(TSdpAttributeID) |
IMPORT_C TBool | InMatchListRange(TSdpAttributeID, TInt &) |
IMPORT_C CSdpAttrIdMatchList * | NewL() |
IMPORT_C CSdpAttrIdMatchList * | NewL(const CSdpAttrIdMatchList &) |
IMPORT_C void | RemoveL(TAttrRange) |
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.
IMPORT_C void | AddL | ( | TAttrRange | aRange | ) |
Adds a range of IDs to the list.
Parameter | Description |
---|---|
aRange | Range to add |
IMPORT_C TInt | Count | ( | ) | const |
Gets the number of separate ranges of attribute IDs in the list.
Returns: Number of ranges of attribute IDs in the list
IMPORT_C TUint | EncodeL | ( | TElementEncoder | aEncoder | ) | const |
This method is for internal sub-system use only, it is not to be used otherwise.
Supplies encoder with attribute Ids in the match list
Parameter | Description |
---|---|
aEncoder | The encoder set to encode the attribute Ids in this match list |
Returns: Number of bytes of this CSdpAttrIdMatchList for which there was NO space in the encoder
TInt | Find | ( | TSdpAttributeID | aAttrId, |
TInt & | aPos | |||
) | const |
Tests if the specified attribute ID is in the list, and gets its position.
Parameter | Description |
---|---|
aAttrId | Attribute ID to test |
aPos | Position of ID in the list, or unchanged if attribute not found |
Returns: KErrNone if the attribute is in the list, else KErrNotFound
void | FindAttributesL | ( | CSdpServRecord & | aRec, |
MAttributeMatchHandler & | aHandler | |||
) | const |
IMPORT_C TBool | InMatchList | ( | TSdpAttributeID | aAttrId, |
TInt & | aPos | |||
) | const |
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 InMatchListRange() instead
Parameter | Description |
---|---|
aAttrId | Attribute ID to test |
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 |
Returns: ETrue if the attribute is in the list, else EFalse
IMPORT_C TBool | InMatchList | ( | TSdpAttributeID | aAttrId | ) | const |
Tests if the specified attribute ID is in the list.
Parameter | Description |
---|---|
aAttrId | Attribute ID to test |
Returns: ETrue if the attribute is in the list, else EFalse
IMPORT_C TBool | InMatchListRange | ( | TSdpAttributeID | aAttrId, |
TInt & | aRange | |||
) | const |
Tests if the specified attribute ID is in the list.
Parameter | Description |
---|---|
aAttrId | Attribute ID to test |
aRange | Position of the range of IDs in the list which contains aAttrId, or 0 if not found |
Returns: ETrue if the attribute is in the list, else EFalse
IMPORT_C CSdpAttrIdMatchList * | NewL | ( | ) | [static] |
Allocate and construct a new CSdpAttrIdMatchList object.
Returns: New CSdpAttrIdMatchList object
IMPORT_C CSdpAttrIdMatchList * | NewL | ( | const CSdpAttrIdMatchList & | aAttrMatchList | ) | [static] |
Allocate and construct a new CSdpAttrIdMatchList object as a copy of another CSdpAttrIdMatchList.
Parameter | Description |
---|---|
aAttrMatchList | Object to copy |
Returns: New CSdpAttrIdMatchList object
IMPORT_C void | RemoveL | ( | TAttrRange | aRange | ) |
Removes a range of IDs from the list.
Parameter | Description |
---|---|
aRange | Range to remove |