Alf::AlfWidgetAttributeOwnerImpl Class Reference

class Alf::AlfWidgetAttributeOwnerImpl : public Alf::IAlfAttributeOwner

Implementation of the IAlfAttributeOwner interface for AlfWidget .

Inherits from

Constructor & Destructor Documentation

AlfWidgetAttributeOwnerImpl(CAlfWidgetControl *)

AlfWidgetAttributeOwnerImpl ( CAlfWidgetControl * aControl )

Constructor.

Parameters

CAlfWidgetControl * aControl

~AlfWidgetAttributeOwnerImpl()

~AlfWidgetAttributeOwnerImpl ( ) [virtual]

Destructor.

Member Functions Documentation

attributeCount()

int attributeCount ( ) const [virtual]

Get the number of available attributes.

canHandleAttribute(const char *)

bool canHandleAttribute ( const char * aAttributeName ) [private]

Can attribute be handled with this widget.

Parameters

const char * aAttributeName Name of the attribute.

getAttribute(const UString &)

const AlfAttribute * getAttribute ( const UString & aAttribName ) const [virtual]

Gets the attribute with the given name. The returned attribute instance is owned by the widget and should not be deleted. Also the returned attribute instance should not be modified. Use SetAttribute for that.

Parameters

const UString & aAttribName The name of the attribute.

getAttribute(const UString &, const UString &)

const AlfAttribute * getAttribute ( const UString & aTargetId,
const UString & aAttribName
) const [virtual]

Gets the attribute with the given name from specific target. The returned attribute instance is owned by the widget and should not be deleted. Also the returned attribute instance should not be modified. Use SetAttribute for that.

Parameters

const UString & aTargetId The name of the target widget part, e.g. element class
const UString & aAttribName The name of the attribute.

handleAttribute(const AlfAttribute &)

void handleAttribute ( const AlfAttribute & aAttribute ) [private]

Handles the attribute, sets proper values.

Parameters

const AlfAttribute & aAttribute Reference attribute, the data is copied from it. The ownership is not transferred.

handleElementAttribute(const AlfAttribute &)

bool handleElementAttribute ( const AlfAttribute & aAttribute ) [private]

Lets elements to try handle attribute.

Parameters

const AlfAttribute & aAttribute Reference attribute, the data is copied from it. The ownership is not transferred.

makeInterface(const IfId &)

IAlfInterfaceBase * makeInterface ( const IfId & aType ) [virtual]

Getter for interfaces provided by the widget classes. Derived classes should always call the base class method from the overridden MakeInterface.

Since
S60 ?S60_version

Parameters

const IfId & aType A descriptor to identify the type of the queried interface.

setAttribute(const AlfAttribute &)

bool setAttribute ( const AlfAttribute & aAttribute ) [virtual]

Set a value of an attribute.

Parameters

const AlfAttribute & aAttribute Reference attribute, the data is copied from it. The ownership is not transferred.

setAttribute(const UString &, AlfAttributeValueType *)

bool setAttribute ( const UString & aAttribName,
AlfAttributeValueType * aValue
) [virtual]

Set a value of an attribute. This SetAttribute variant is for simple non animated attributes that only have name and value.

Parameters

const UString & aAttribName Name of the attribute.
AlfAttributeValueType * aValue Value of the attribute. Ownership is transferred

setAttribute(const UString &, AlfAttribute &)

bool setAttribute ( const UString & aTargetId,
AlfAttribute & aAttribute
) [virtual]

Sets a value of an attribute to a specific target. The target is identified by using aTargetId parameter.

Parameters

const UString & aTargetId Name of the target widget part, e.g element class tag.
AlfAttribute & aAttribute Reference attribute, the data is copied from it. The ownership is not transferred.

setAttribute(const UString &, const UString &, AlfAttributeValueType *)

bool setAttribute ( const UString & aTargetId,
const UString & aAttribName,
AlfAttributeValueType * aValue
) [virtual]

Sets a value of an static attribute. This SetAttribute variant is for simple non animated attributes that only have name and value.

Parameters

const UString & aTargetId The name of the target widget part, e.g. element class
const UString & aAttribName Name of the attribute.
AlfAttributeValueType * aValue Value of the attribute. Ownership is transferred

setAttributeContainer(const UString &, AlfAttributeContainer &)

bool setAttributeContainer ( const UString & aTargetId,
AlfAttributeContainer & aAttributeContainer
) [virtual]

Sets values of each attribute in given container to a specific target. The target is identified by using aTargetId parameter.

Parameters

const UString & aTargetId Name of the target widget part, e.g element class tag.
AlfAttributeContainer & aAttributeContainer Reference attributeContainer, All attributes in the container are handled. The ownership is not transferred.

setAttributeContainer(AlfAttributeContainer &)

bool setAttributeContainer ( AlfAttributeContainer & aAttributeContainer ) [virtual]

Sets values of each attribute in given container

Parameters

AlfAttributeContainer & aAttributeContainer Reference attributeContainer, All attributes in the container are handled. The ownership is not transferred.

Member Data Documentation

AlfPtrVector< AlfAttribute > mAttributeList

AlfPtrVector < AlfAttribute > mAttributeList [private]

CAlfWidgetControl * mControl

CAlfWidgetControl * mControl [private]

The control. Not own.