Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

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

Class MSdpAttributeValueVisitor

class MSdpAttributeValueVisitor;

Description

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

The class member functions are called by an CSdpAttrValue (or one of its sub-classes) object when CSdpAttrValue::AcceptVisitorL(MSdpAttributeValueVisitor &) is called.

Note that:

When AcceptVisitorL() is called on attributes that are not lists (not DEA or DES), only MSdpAttributeValueVisitor::VisitAttributeValueL(CSdpAttrValue &,TSdpElementType) is called, passing the attribute value object itself (i.e. *this), and the value attribute type.

When AcceptVisitorL() is called on attributes that are lists (DEA or DES), MSdpAttributeValueVisitor::VisitAttributeValueL(CSdpAttrValue &,TSdpElementType) is called for each member of the list

This implements the standard Visitor pattern.

Members

Defined in MSdpAttributeValueVisitor:

See also:


Member functions


VisitAttributeValueL(CSdpAttrValue &,TSdpElementType)

virtual void VisitAttributeValueL(CSdpAttrValue &aValue, TSdpElementType aType)=0;

Description

Called to pass an attribute value.

Parameters

CSdpAttrValue &aValue

Attribute value

TSdpElementType aType

Value type


StartListL(CSdpAttrValueList &)

virtual void StartListL(CSdpAttrValueList &aList)=0;

Description

Called to indicate the start of a list of attribute values.

This call is followed by a call to MSdpAttributeValueVisitor::VisitAttributeValueL(CSdpAttrValue &,TSdpElementType) for each attribute value in the list, and concluded by a call to EndList().

Parameters

CSdpAttrValueList &aList

Attribute value list


EndListL()

virtual void EndListL()=0;

Description

Called to indicate the end of a list of attribute values.


MSAVV_ExtensionInterfaceL(TUid,void *&)

IMPORT_C virtual void MSAVV_ExtensionInterfaceL(TUid aInterface, void *&aObject);

Description

Returns a null aObject if the extension is not implemented, or a pointer to another interface if it is.

Parameters

TUid aInterface

UID of the interface to return

void *&aObject

the container for another interface as specified by aInterface