Alf::AlfWidgetAttributeOwnerImpl Class Reference
|
class Alf::AlfWidgetAttributeOwnerImpl : public Alf::IAlfAttributeOwner
|
Inherits from
-
Alf::AlfWidgetAttributeOwnerImpl
Constructor & Destructor Documentation
AlfWidgetAttributeOwnerImpl(CAlfWidgetControl *)
|
AlfWidgetAttributeOwnerImpl
|
(
|
CAlfWidgetControl
*
|
aControl
|
)
|
|
Parameters
|
CAlfWidgetControl
* aControl
|
|
~AlfWidgetAttributeOwnerImpl()
|
~AlfWidgetAttributeOwnerImpl
|
(
|
)
|
[virtual]
|
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 &)
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 &)
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 &)
Getter for interfaces provided by the widget classes. Derived classes should always call the base class method from the overridden MakeInterface.
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 *)
Set a value of an attribute. This SetAttribute variant is for simple non animated attributes that only have name and value.
setAttribute(const UString &, AlfAttribute &)
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 *)
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 &)
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 &)
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
CAlfWidgetControl * mControl
|
CAlfWidgetControl
*
|
mControl
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.