Alf::IAlfHostAPI Class Reference

class Alf::IAlfHostAPI : public Alf::IAlfInterfaceBase

The interface for host appis used by widget controls.

alfwidgetmodel.lib
Since
S60 ?S60_version Draft

Inherits from

Constructor & Destructor Documentation

~IAlfHostAPI()

~IAlfHostAPI()[inline, virtual]

Member Functions Documentation

getBaseLayout()

IAlfLayoutManager *getBaseLayout()const [pure virtual]

Returns the base layout of control.

getConnection(int)

CAlfWidgetControl *getConnection(intaIndex)const [pure virtual]

Get the connected control at given index.

Parameters

int aIndexIndex of connected control.

getConnectionCount()

intgetConnectionCount()const [pure virtual]

gets the number of connections

Since
S60 ?S60_version

getConnectionIndex(CAlfWidgetControl &)

intgetConnectionIndex(CAlfWidgetControl &aControl)const [pure virtual]

gets the connection index of aControl

Since
S60 ?S60_version

Parameters

CAlfWidgetControl & aControlcontrol, which index to return.

removeConnection(CAlfWidgetControl &)

voidremoveConnection(CAlfWidgetControl &aControl)[pure virtual]

Removes connection with the given control.

If the connected control is in the same control group with host control, it will be removed from the host control's control group.

If the connected control is in a separate control group or if the host control is not in a control group, the connected control's control group relation will not be affected.

setConnection()

Parameters

CAlfWidgetControl & aControlControl with which connection is to be removed.

setBaseLayout(IAlfLayoutManager &)

voidsetBaseLayout(IAlfLayoutManager &aLayout)[pure virtual]

Sets the base layout of control.

Parameters

IAlfLayoutManager & aLayoutBase layout.

setConnection(CAlfWidgetControl &, AlfRole)

voidsetConnection(CAlfWidgetControl &aControl,
AlfRoleaRole
)[pure virtual]

Sets a connection from this host to a given control.

A control can never have more than one host control. If the connected control has a host control the connection from old host control to connected control will be removed.

Parameters

CAlfWidgetControl & aControlControl to be connected.
AlfRole aRoleRelationship with connected control.

type()

const IfId &type()[static, inline]