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 ()
void AcceptVisitorL ( MSdpAttributeValueVisitor &)
IMPORT_C void AppendValueL ( 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 *)
void ConstructL ()
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 &)

void AcceptVisitorL ( 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 & aVisitor Abstract interface that can be implemented to receive an enumeration of the values in the attribute list.

AppendValueL(CSdpAttrValue *)

IMPORT_C void AppendValueL ( 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 * aValue Attribute value to be added onto this list.

BuildBooleanL(TBool)

MSdpElementBuilder * BuildBooleanL ( TBool aBool ) [virtual]

Adds a Boolean element.

Parameters

TBool aBool Attribute 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 & aString The attribute value.

BuildIntL(const TDesC8 &)

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

Adds a signed integer element.

Parameters

const TDesC8 & aInt Attribute 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 & aString Attribute to add

BuildURLL(const TDesC8 &)

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

Adds a URL element.

Parameters

const TDesC8 & aString URL to add

BuildUUIDL(const TUUID &)

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

Adds a UUID element.

Parameters

const TUUID & aUUID Attribute to add

BuildUintL(const TDesC8 &)

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

Adds an unsigned integer element.

Parameters

const TDesC8 & aUint Attribute to add

BuildUnknownL(TUint8, TUint8, const TDesC8 &)

MSdpElementBuilder * BuildUnknownL ( TUint8 aType,
TUint8 aSizeDesc,
const TDesC8 & aData
) [virtual]

Adds an element of any type.

Does nothing.

Parameters

TUint8 aType Type descriptor
TUint8 aSizeDesc Size descriptor
const TDesC8 & aData Data field

ConstructL()

void ConstructL ( ) [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]