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 AlfAttribute alfwidgetmodel.lib
Since
S60 ?S60_version Draft
Public Member Functions
AlfAttributeContainer ( Type )
~AlfAttributeContainer ()
OSN_IMPORT void addAttribute ( AlfAttribute *)
OSN_IMPORT unsigned int attributeCount ()
OSN_IMPORT AlfAttribute & getAttribute (unsigned int)
OSN_IMPORT AlfAttribute & getAttributeByName (const char *)
OSN_IMPORT unsigned int getTime ()
OSN_IMPORT void removeAttribute (unsigned int)
OSN_IMPORT void setTime (unsigned int)
OSN_IMPORT Type type ()
Private Member Functions
AlfAttributeContainer (const AlfAttributeContainer &)
AlfAttributeContainer & operator= (const AlfAttributeContainer &)
Public Member Enumerations
enum Type {
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_IMPORT AlfAttributeContainer ( Type aType = EAlfCommonAttributeContainer )
Constructor.
Exceptions
std::bad_alloc

Parameters

Type aType = EAlfCommonAttributeContainer a 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 void addAttribute ( AlfAttribute * aAttribute )
Adds a new attribute to the container.
Exceptions
std::bad_alloc

Parameters

AlfAttribute * aAttribute The new attribute, takes ownership.

attributeCount()

OSN_IMPORT unsigned int attributeCount ( ) const

Returns the attribute count.

getAttribute(unsigned int)

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

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

Parameters

unsigned int aIndex index 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 * aName name of the attribute.

getTime()

OSN_IMPORT unsigned int getTime ( ) 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 void removeAttribute ( unsigned int aIndex )
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 aIndex index of the attribute.

setTime(unsigned int)

OSN_IMPORT void setTime ( unsigned int aTime )

Sets the animation time of the attribute container.

Parameters

unsigned int aTime

type()

OSN_IMPORT Type type ( ) 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]