TAknDesCArrayDecorator Class Reference

#include <mw/AknDesCArrayDecorator.h>

class TAknDesCArrayDecorator
Public Member Functions
TAknDesCArrayDecorator()
IMPORT_C TBoolDecoratedIndex(TInt &)
virtual IMPORT_C TIntMdcaCount()
virtual IMPORT_C TPtrCMdcaPoint(TInt)
IMPORT_C voidSetActive(const TBool)
IMPORT_C voidSetArray(const MDesCArray *)
IMPORT_C voidSetDecorationText(const TDesC &)

Constructor & Destructor Documentation

TAknDesCArrayDecorator ( )

IMPORT_CTAknDesCArrayDecorator()

Constructor

Member Function Documentation

DecoratedIndex ( TInt & )

IMPORT_C TBoolDecoratedIndex(TInt &aIndex)const

Reports whether the supplied index position corresponds to the decoration entry in the array.

Note that the client must call this method on each instance of TAknDesCArrayDecorator in the recursive containment (if it is not part of the MDesCArray interface).

ParameterDescription
aIndexoutput parameter, contains index in array of the decorated position, only valid if return value is ETrue

Returns: ETrue if there is a decorated position, EFalse otherwise

MdcaCount ( )

IMPORT_C TIntMdcaCount()const [virtual]

Reports count of decorated array

Returns: count of decorated array

MdcaPoint ( TInt )

IMPORT_C TPtrCMdcaPoint(TIntaIndex)const [virtual]

Returns array element. Returns decoration text if the index is one off the end of the decorated array

Returns: descriptor representing array element

SetActive ( const TBool )

IMPORT_C voidSetActive(const TBoolaActive)

Set the decorator's activation state. If active, the decorator adds the decoration to the array, otherwise it does not.

ParameterDescription
aActiveETrue = active; EFalse = inactive

SetArray ( const MDesCArray * )

IMPORT_C voidSetArray(const MDesCArray *aArray)

Set pointer to descriptor array that will be decorated.

ParameterDescription
aArraypointer to descriptor array, ownership is not passed

SetDecorationText ( const TDesC & )

IMPORT_C voidSetDecorationText(const TDesC &aText)

Set descriptor containing text that will be used as the extra entry in the descriptor array. The client retains ownership of the descriptor containing the decoration text, and therefore can use the same descriptor text for multiple decorator instances. The client must maintain the descriptor for the lifetime of the decorator.

ParameterDescription
aTextdescriptor, ownership is not passed