CSdpAttrValueList Class Reference

class CSdpAttrValueList : public CSdpAttrValue

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

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

CSdpAttrValueDEA CSdpAttrValueDES

Inherits from

Public Member Functions
~CSdpAttrValueList()
voidAcceptVisitorL(MSdpAttributeValueVisitor &)
IMPORT_C voidAppendValueL(CSdpAttrValue *)
MSdpElementBuilder *BuildBooleanL(TBool)
MSdpElementBuilder *BuildDEAL()
MSdpElementBuilder *BuildDESL()
MSdpElementBuilder *BuildEncodedL(const TDesC8 &)
MSdpElementBuilder *BuildIntL(const TDesC8 &)
MSdpElementBuilder *BuildNilL()
MSdpElementBuilder *BuildStringL(const TDesC8 &)
MSdpElementBuilder *BuildURLL(const TDesC8 &)
MSdpElementBuilder *BuildUUIDL(const TUUID &)
MSdpElementBuilder *BuildUintL(const TDesC8 &)
MSdpElementBuilder *BuildUnknownL(TUint8, TUint8, const TDesC8 &)
TUint DataSize()
MSdpElementBuilder *EndListL()
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()
Protected Attributes
CArrayPtr< CSdpAttrValue > *iList
Private Attributes
MSdpElementBuilder *iParent

Constructor & Destructor Documentation

CSdpAttrValueList(MSdpElementBuilder *)

CSdpAttrValueList(MSdpElementBuilder *aBuilder)[protected]

Parameters

MSdpElementBuilder * aBuilder

~CSdpAttrValueList()

~CSdpAttrValueList()[virtual]

Destructor.

Member Functions 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.

Parameters

MSdpAttributeValueVisitor & 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

Parameters

CSdpAttrValue * aValueAttribute value to be added onto this list.

BuildBooleanL(TBool)

MSdpElementBuilder *BuildBooleanL(TBoolaBool)[virtual]

Adds a Boolean element.

Parameters

TBool aBoolAttribute to add

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.

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.

BuildEncodedL(const TDesC8 &)

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

Encode an attribute value.

Parameters

const TDesC8 & aStringThe attribute value.

BuildIntL(const TDesC8 &)

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

Adds a signed integer element.

Parameters

const TDesC8 & aIntAttribute to add

BuildNilL()

MSdpElementBuilder *BuildNilL()[virtual]

Adds a null type element.

BuildStringL(const TDesC8 &)

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

Adds a Text String element.

Parameters

const TDesC8 & aStringAttribute to add

BuildURLL(const TDesC8 &)

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

Adds a URL element.

Parameters

const TDesC8 & aStringURL to add

BuildUUIDL(const TUUID &)

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

Adds a UUID element.

Parameters

const TUUID & aUUIDAttribute to add

BuildUintL(const TDesC8 &)

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

Adds an unsigned integer element.

Parameters

const TDesC8 & aUintAttribute to add

BuildUnknownL(TUint8, TUint8, const TDesC8 &)

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

Adds an element of any type.

Does nothing.

Parameters

TUint8 aTypeType descriptor
TUint8 aSizeDescSize descriptor
const TDesC8 & aDataData field

ConstructL()

voidConstructL()[protected]

DataSize()

TUint DataSize()const [virtual]

Gets the size of the list.

EndListL()

MSdpElementBuilder *EndListL()[virtual]

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

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

Member Data Documentation

CArrayPtr< CSdpAttrValue > * iList

CArrayPtr< CSdpAttrValue > *iList[protected]

Array of attribute values contained in this CSdpAttrValueList class

MSdpElementBuilder * iParent

MSdpElementBuilder *iParent[private]