CSdpAttrValueList Class Reference

#include <btsdp.h>

Link against: sdpdatabase.lib

class CSdpAttrValueList : public CSdpAttrValue

Inherits from

Protected Attributes
CArrayPtr< CSdpAttrValue > *iList
Public Member Functions
virtual ~CSdpAttrValueList()
virtual voidAcceptVisitorL(MSdpAttributeValueVisitor &)
IMPORT_C voidAppendValueL(CSdpAttrValue *)
virtual MSdpElementBuilder *BuildBooleanL(TBool)
virtual MSdpElementBuilder *BuildDEAL()
virtual MSdpElementBuilder *BuildDESL()
virtual MSdpElementBuilder *BuildEncodedL(const TDesC8 &)
virtual MSdpElementBuilder *BuildIntL(const TDesC8 &)
virtual MSdpElementBuilder *BuildNilL()
virtual MSdpElementBuilder *BuildStringL(const TDesC8 &)
virtual MSdpElementBuilder *BuildURLL(const TDesC8 &)
virtual MSdpElementBuilder *BuildUUIDL(const TUUID &)
virtual MSdpElementBuilder *BuildUintL(const TDesC8 &)
virtual MSdpElementBuilder *BuildUnknownL(TUint8, TUint8, const TDesC8 &)
virtual TUint DataSize()
virtual MSdpElementBuilder *EndListL()
virtual MSdpElementBuilder *StartListL()
Protected Member Functions
CSdpAttrValueList(MSdpElementBuilder *)
voidConstructL()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CSdpAttrValue::Bool()const
CSdpAttrValue::CSdpAttrValue()
CSdpAttrValue::Des()const
CSdpAttrValue::DoesIntFit()const
CSdpAttrValue::Extension_(TUint,TAny *&,TAny *)
CSdpAttrValue::Int()const
CSdpAttrValue::Type()const
CSdpAttrValue::UUID()const
CSdpAttrValue::Uint()const
CSdpAttrValue::Uint128(TUint64 &,TUint64 &)const
CSdpAttrValue::Uint64(TUint64 &)const
CSdpAttrValue::~CSdpAttrValue()

Detailed 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.

See also: CSdpAttrValueDEA CSdpAttrValueDES

Member Attribute Documentation

iList

CArrayPtr< CSdpAttrValue > *iList[protected]

Array of attribute values contained in this CSdpAttrValueList class

Constructor & Destructor Documentation

CSdpAttrValueList ( MSdpElementBuilder * )

CSdpAttrValueList(MSdpElementBuilder *aBuilder)[protected]

~CSdpAttrValueList ( )

~CSdpAttrValueList()[virtual]

Destructor.

Member Function Documentation

AcceptVisitorL ( MSdpAttributeValueVisitor & )

voidAcceptVisitorL(MSdpAttributeValueVisitor &aVisitor)[virtual]

Requests a call back to pass the attribute value.

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

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

AppendValueL ( CSdpAttrValue * )

IMPORT_C voidAppendValueL(CSdpAttrValue *aValue)

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

ParameterDescription
aValueAttribute value to be added onto this list.

BuildBooleanL ( TBool )

MSdpElementBuilder *BuildBooleanL(TBoolaBool)[virtual]

Adds a Boolean element.

ParameterDescription
aBoolAttribute to add

Returns: This attribute value with added element

BuildDEAL ( )

MSdpElementBuilder *BuildDEAL()[virtual]

Adds a Data element alternative (DEA).

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

Returns: This attribute value with added element

BuildDESL ( )

MSdpElementBuilder *BuildDESL()[virtual]

Adds a Data element sequence (DES).

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

Returns: This attribute value with added element

BuildEncodedL ( const TDesC8 & )

MSdpElementBuilder *BuildEncodedL(const TDesC8 &aString)[virtual]

Encode an attribute value.

ParameterDescription
aStringThe attribute value.

Returns: This attribute value.

BuildIntL ( const TDesC8 & )

MSdpElementBuilder *BuildIntL(const TDesC8 &aInt)[virtual]

Adds a signed integer element.

ParameterDescription
aIntAttribute to add

Returns: This attribute value with added element

BuildNilL ( )

MSdpElementBuilder *BuildNilL()[virtual]

Adds a null type element.

Returns: This attribute value with added element

BuildStringL ( const TDesC8 & )

MSdpElementBuilder *BuildStringL(const TDesC8 &aString)[virtual]

Adds a Text String element.

ParameterDescription
aStringAttribute to add

Returns: This attribute value with added element

BuildURLL ( const TDesC8 & )

MSdpElementBuilder *BuildURLL(const TDesC8 &aString)[virtual]

Adds a URL element.

ParameterDescription
aStringURL to add

Returns: This attribute value with added element

BuildUUIDL ( const TUUID & )

MSdpElementBuilder *BuildUUIDL(const TUUID &aUUID)[virtual]

Adds a UUID element.

ParameterDescription
aUUIDAttribute to add

Returns: This attribute value with added element

BuildUintL ( const TDesC8 & )

MSdpElementBuilder *BuildUintL(const TDesC8 &aUint)[virtual]

Adds an unsigned integer element.

ParameterDescription
aUintAttribute to add

Returns: This attribute value with added element

BuildUnknownL ( TUint8, TUint8, const TDesC8 & )

MSdpElementBuilder *BuildUnknownL(TUint8aType,
TUint8aSizeDesc,
const TDesC8 &aData
)[virtual]

Adds an element of any type.

Does nothing.

ParameterDescription
aTypeType descriptor
aSizeDescSize descriptor
aDataData field

Returns: Attribute value with added elementThis attribute value

ConstructL ( )

voidConstructL()[protected]

DataSize ( )

TUint DataSize()const [virtual]

Gets the size of the list.

Returns: Size of the list (in bytes)

EndListL ( )

MSdpElementBuilder *EndListL()[virtual]

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

Returns: Parent of this attribute value

StartListL ( )

MSdpElementBuilder *StartListL()[virtual]

Indicates that subsequent elements added belong to a DES or DEA.

The end of the list should be indicated by a call to EndList().

Returns: This attribute value