Alf::IMulModelAccessor Class Reference

class Alf::IMulModelAccessor : public Alf::IAlfModel

An interface for accessing data model. Widgets use this interface to interact with Model. Data model implements this interface.

Inherits from

Member Functions Documentation

AbsoluteIndex(int)

intAbsoluteIndex(intaRelativeIndex)[pure virtual]

Returns Absolute index from relative index

Parameters

int aRelativeIndexRelative index

AddModelObserver(IMulModelObserver *)

voidAddModelObserver(IMulModelObserver *aObserver)[pure virtual]

Add model state change observer.

Parameters

IMulModelObserver * aObserverObserver- ownserhip is not transferred

BottomOffset()

intBottomOffset()const [pure virtual]

Return visible window bottom offset

BottomWindowOffset()

intBottomWindowOffset()const [pure virtual]

Return visible window bottom offset

CurrentItemCount()

intCurrentItemCount()[pure virtual]

Function to get the count of items currently present in the model. This includes hidden items.

Highlight()

intHighlight()[pure virtual]

Function to get the highlighted item index.

IsItemMarked(int)

boolIsItemMarked(intaIndex)[pure virtual]

Check weather item at specified index is marked or not.

Parameters

int aIndexAbsolute index of item

IsLoopingOn()

boolIsLoopingOn()[pure virtual]

Return whather currently looping is on or not

Item(int)

const MulVisualItem &Item(intaAbsoluteIndex)[pure virtual]

Returns the visual item at the specified absolute index

Parameters

int aAbsoluteIndex

RearBottomOffset()

intRearBottomOffset()const [pure virtual]

Return rear buffer bottom offset

RearTopOffset()

intRearTopOffset()const [pure virtual]

Return rear buffer top offset

RelativeIndex(int)

intRelativeIndex(intaAbsoluteIndex)const [pure virtual]

Returns relative index from absolute index.

Parameters

int aAbsoluteIndexAbosulte index

RemoveModelObserver(IMulModelObserver *)

voidRemoveModelObserver(IMulModelObserver *aObserver)[pure virtual]

Eemove model state change observer.

Parameters

IMulModelObserver * aObserverObserver- ownserhip is not transferred

ScrollWindow(int)

voidScrollWindow(intaItemIndex)[pure virtual]

Scroll Window to mention item index it will check that data window needs to be updated or not and if required it update data window

item index
Exceptions
invaid_argument

exception

Parameters

int aItemIndex

SetHighlight(int)

voidSetHighlight(intaItemIndex)[pure virtual]

The function to set a particular item as highlighted.

Exceptions
Invalid_argument

Throws this exception if index is not a valid index.

Parameters

int aItemIndex

SetMarkedIndex(MulWidgetDef::TMulWidgetMarkingType, int)

voidSetMarkedIndex(MulWidgetDef::TMulWidgetMarkingTypeaType,
intaIndex
)[pure virtual]

Function for setting the item Marked or Unmarked. For mark and unmark operations, index of item should be provided.

Exceptions
Invalid

Argument, if type is specified as mark-all and unmark-all.

Parameters

MulWidgetDef::TMulWidgetMarkingType aTypeType of marking operation to be performed.
int aIndex

SetVisibleWindow(int, int)

voidSetVisibleWindow(intaWindowSize,
intaPageTopIndex = -1
)[pure virtual]

Set visible data window for model.

Parameters

int aWindowSize
int aPageTopIndex = -1

Template()

mulwidget::TLogicalTemplate Template()[pure virtual]

Return default template

TopOffset()

intTopOffset()const [pure virtual]

Return visible window top offset

TopWindowOffset()

intTopWindowOffset()const [pure virtual]

Return visible window top offset