Alf::AlfAttributeContainer Class Reference

class Alf::AlfAttributeContainer
AlfAttributeContainer is a collection of attributes. It is used to bunch up a set of attributes. Attribute setters and implementations of the IAlfAttributeOwner interface can work with attribute containers. IAlfAttributeSetter IAlfAttributeOwner AlfAttributealfwidgetmodel.lib
Since
S60 ?S60_version Draft
Public Member Functions
AlfAttributeContainer(Type)
~AlfAttributeContainer()
OSN_IMPORT voidaddAttribute(AlfAttribute *)
OSN_IMPORT unsigned intattributeCount()
OSN_IMPORT AlfAttribute &getAttribute(unsigned int)
OSN_IMPORT AlfAttribute &getAttributeByName(const char *)
OSN_IMPORT unsigned intgetTime()
OSN_IMPORT voidremoveAttribute(unsigned int)
OSN_IMPORT voidsetTime(unsigned int)
OSN_IMPORT Typetype()
Private Member Functions
AlfAttributeContainer(const AlfAttributeContainer &)
AlfAttributeContainer &operator=(const AlfAttributeContainer &)
Public Member Enumerations
enumType {
EAlfCommonAttributeContainer = 0, EAlfSetFlagAttributeContainer, EAlfClearFlagAttributeContainer, EAlfOpacityAttributeContainer, EAlfXPosAttributeContainer, EAlfYPosAttributeContainer, EAlfWidthAttributeContainer, EAlfHeightAttributeContainer, EAlfDepthOffsetAttributeContainer, EAlfScrollAttributeContainer, EAlfExpandAttributeContainer, EAlfRowsAttributeContainer, EAlfColumnsAttributeContainer, EAlfAnchorPointAttributeContainer, EAlfScalingAttributeContainer, EAlfImageSecondaryAlphaAttributeContainer, EAlfPositionAttributeContainer, EAlfSizeAttributeContainer, EAlfScrollOffsetAttributeContainer, EAlfTranslationAttributeContainer, EAlfRotationXYZAAttributeContainer, EAlfPrimaryImageAttributeContainer, EAlfSecondaryImageAttributeContainer, EAlfTextAttributeContainer, EAlfViewportSizeAttributeContainer, EAlfViewportVirtualSizeAttributeContainer, EAlfViewportPosAttributeContainer, EAlfSkinImageIDAttributeContainer, EAlfSkinTextColorAttributeContainer
}
Private Attributes
std::auto_ptr< AlfAttributeContainerImpl >mData

Constructor & Destructor Documentation

AlfAttributeContainer(Type)

OSN_IMPORTAlfAttributeContainer(TypeaType = EAlfCommonAttributeContainer)
Constructor.
Exceptions
std::bad_alloc

Parameters

Type aType = EAlfCommonAttributeContainera type of container.

AlfAttributeContainer(const AlfAttributeContainer &)

AlfAttributeContainer(const AlfAttributeContainer &)[private]

Copy construction, not implemented.

Parameters

const AlfAttributeContainer &

~AlfAttributeContainer()

OSN_IMPORT~AlfAttributeContainer()

Destructor.

Member Functions Documentation

addAttribute(AlfAttribute *)

OSN_IMPORT voidaddAttribute(AlfAttribute *aAttribute)
Adds a new attribute to the container.
Exceptions
std::bad_alloc

Parameters

AlfAttribute * aAttributeThe new attribute, takes ownership.

attributeCount()

OSN_IMPORT unsigned intattributeCount()const

Returns the attribute count.

getAttribute(unsigned int)

OSN_IMPORT AlfAttribute &getAttribute(unsigned intaIndex)const
Returns reference to the attribute.
Exceptions
osncore::AlfDataException

Thrown with error code osncore::EInvalidAttribute if aIndex is invalid.

Parameters

unsigned int aIndexindex of the attribute.

getAttributeByName(const char *)

OSN_IMPORT AlfAttribute &getAttributeByName(const char *aName)const
Returns the attribute.
Exceptions
osncore::AlfDataException

Thrown with error code osncore::EInvalidAttribute if aName is not found among attributes contained in the container.

Parameters

const char * aNamename of the attribute.

getTime()

OSN_IMPORT unsigned intgetTime()const

Returns the animation time of the attribute container.

operator=(const AlfAttributeContainer &)

AlfAttributeContainer &operator=(const AlfAttributeContainer &)[private]

Assigment operation, not implemented.

Parameters

const AlfAttributeContainer &

removeAttribute(unsigned int)

OSN_IMPORT voidremoveAttribute(unsigned intaIndex)
Removes the attribute. Throws CAlfDataException if index is invalid.
Exceptions
osncore::AlfDataException

Thrown with error code osncore::EInvalidAttribute if aIndex is invalid.

Parameters

unsigned int aIndexindex of the attribute.

setTime(unsigned int)

OSN_IMPORT voidsetTime(unsigned intaTime)

Sets the animation time of the attribute container.

Parameters

unsigned int aTime

type()

OSN_IMPORT Typetype()const

Gets the type of the container.

Member Enumerations Documentation

Enum Type

Type enumeration.

Enumerators

EAlfCommonAttributeContainer = 0
EAlfSetFlagAttributeContainer
EAlfClearFlagAttributeContainer
EAlfOpacityAttributeContainer
EAlfXPosAttributeContainer
EAlfYPosAttributeContainer
EAlfWidthAttributeContainer
EAlfHeightAttributeContainer
EAlfDepthOffsetAttributeContainer
EAlfScrollAttributeContainer
EAlfExpandAttributeContainer
EAlfRowsAttributeContainer
EAlfColumnsAttributeContainer
EAlfAnchorPointAttributeContainer
EAlfScalingAttributeContainer
EAlfImageSecondaryAlphaAttributeContainer
EAlfPositionAttributeContainer
EAlfSizeAttributeContainer
EAlfScrollOffsetAttributeContainer
EAlfTranslationAttributeContainer
EAlfRotationXYZAAttributeContainer
EAlfPrimaryImageAttributeContainer
EAlfSecondaryImageAttributeContainer
EAlfTextAttributeContainer
EAlfViewportSizeAttributeContainer
EAlfViewportVirtualSizeAttributeContainer
EAlfViewportPosAttributeContainer
EAlfSkinImageIDAttributeContainer
EAlfSkinTextColorAttributeContainer

Member Data Documentation

std::auto_ptr< AlfAttributeContainerImpl > mData

std::auto_ptr< AlfAttributeContainerImpl >mData[private]