Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

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

Class CSdpAttrValueList

class CSdpAttrValueList : public CSdpAttrValue, public MSdpElementBuilder;

Description

Base class for classes that specify lists of attribute data elements.

It implements the MSdpElementBuilder interface to build data elements into an attribute value.

Derivation

Members

Defined in CSdpAttrValueList:

Inherited from CBase:

Inherited from CSdpAttrValue:

Inherited from MSdpElementBuilder:

See also:


Construction and destruction


~CSdpAttrValueList()

IMPORT_C virtual ~CSdpAttrValueList();

Description

Destructor.

[Top]


Member functions


AcceptVisitorL(MSdpAttributeValueVisitor &)

IMPORT_C virtual void AcceptVisitorL(MSdpAttributeValueVisitor &aVisitor);

Description

Requests a call back to pass the attribute value.

This provides a simple method of enumerating each element in the list.

Parameters

MSdpAttributeValueVisitor &aVisitor

Abstract interface that can be implemented to receive an enumeration of the values in the attribute list.


DataSize()const

IMPORT_C virtual TUint DataSize() const;

Description

Gets the size of the list.

Return value

TUint

Size of the list (in bytes)


AppendValueL(CSdpAttrValue *)

IMPORT_C void AppendValueL(CSdpAttrValue *aValue);

Description

Add a new value onto the end on this list.

Ownership of the passed value is transferred to this list. It will be deleted when the list is destroyed.

If a leave occurs, aValue will be cleanup up automatically

Parameters

CSdpAttrValue *aValue

Attribute value to be added onto this list.


BuildUnknownL(TUint8,TUint8,const TDesC8 &)

IMPORT_C virtual MSdpElementBuilder* BuildUnknownL(TUint8 aType, TUint8 aSizeDesc, const TDesC8 &aData);

Description

Adds an element of any type.

Parameters

TUint8 aType

Type descriptor

TUint8 aSizeDesc

Size descriptor

const TDesC8 &aData

Data field

Return value

MSdpElementBuilder *

Attribute value with added element


BuildNilL()

IMPORT_C virtual MSdpElementBuilder* BuildNilL();

Description

Adds a null type element.

Return value

MSdpElementBuilder *

This attribute value with added element


BuildUintL(const TDesC8 &)

IMPORT_C virtual MSdpElementBuilder* BuildUintL(const TDesC8 &aUint);

Description

Adds an unsigned integer element.

Parameters

const TDesC8 &aUint

Attribute to add

Return value

MSdpElementBuilder *

This attribute value with added element


BuildIntL(const TDesC8 &)

IMPORT_C virtual MSdpElementBuilder* BuildIntL(const TDesC8 &aInt);

Description

Adds a signed integer element.

Parameters

const TDesC8 &aInt

Attribute to add

Return value

MSdpElementBuilder *

This attribute value with added element


BuildUUIDL(const TUUID &)

IMPORT_C virtual MSdpElementBuilder* BuildUUIDL(const TUUID &aUUID);

Description

Adds a UUID element.

Parameters

const TUUID &aUUID

Attribute to add

Return value

MSdpElementBuilder *

This attribute value with added element


BuildBooleanL(TBool)

IMPORT_C virtual MSdpElementBuilder* BuildBooleanL(TBool aBool);

Description

Adds a Boolean element.

Parameters

TBool aBool

Attribute to add

Return value

MSdpElementBuilder *

This attribute value with added element


BuildStringL(const TDesC8 &)

IMPORT_C virtual MSdpElementBuilder* BuildStringL(const TDesC8 &aString);

Description

Adds a Text String element.

Parameters

const TDesC8 &aString

Attribute to add

Return value

MSdpElementBuilder *

This attribute value with added element


BuildDESL()

IMPORT_C virtual MSdpElementBuilder* BuildDESL();

Description

Adds a Data element sequence (DES).

This should be followed by a call to CSdpAttrValueList::StartListL(), and then calls to add elements to the list.

Return value

MSdpElementBuilder *

This attribute value with added element


BuildDEAL()

IMPORT_C virtual MSdpElementBuilder* BuildDEAL();

Description

Adds a Data element alternative (DEA).

This should be followed by a call to CSdpAttrValueList::StartListL(), and then calls to add elements to the list.

Return value

MSdpElementBuilder *

This attribute value with added element


StartListL()

IMPORT_C 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 *

This attribute value


EndListL()

IMPORT_C virtual MSdpElementBuilder* EndListL();

Description

Indicates the end of a list started by CSdpAttrValueList::StartListL().

Return value

MSdpElementBuilder *

Parent of this attribute value


BuildURLL(const TDesC8 &)

IMPORT_C virtual MSdpElementBuilder* BuildURLL(const TDesC8 &aString);

Description

Adds a URL element.

Parameters

const TDesC8 &aString

URL to add

Return value

MSdpElementBuilder *

This attribute value with added element


BuildEncodedL(const TDesC8 &)

IMPORT_C virtual MSdpElementBuilder* BuildEncodedL(const TDesC8 &aString);

Description

Encode an attribute value.

Parameters

const TDesC8 &aString

The attribute value.

Return value

MSdpElementBuilder *

This attribute value.

[Top]


Member data


iList

protected: CArrayPtr< CSdpAttrValue > * iList;

Description

Array of attribute values contained in this CSdpAttrValueList class