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 ( int aIndex ) const [pure virtual]

Get the connected control at given index.

Parameters

int aIndex Index of connected control.

getConnectionCount()

int getConnectionCount ( ) const [pure virtual]

gets the number of connections

Since
S60 ?S60_version

getConnectionIndex(CAlfWidgetControl &)

int getConnectionIndex ( CAlfWidgetControl & aControl ) const [pure virtual]

gets the connection index of aControl

Since
S60 ?S60_version

Parameters

CAlfWidgetControl & aControl control, which index to return.

removeConnection(CAlfWidgetControl &)

void removeConnection ( 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 & aControl Control with which connection is to be removed.

setBaseLayout(IAlfLayoutManager &)

void setBaseLayout ( IAlfLayoutManager & aLayout ) [pure virtual]

Sets the base layout of control.

Parameters

IAlfLayoutManager & aLayout Base layout.

setConnection(CAlfWidgetControl &, AlfRole)

void setConnection ( CAlfWidgetControl & aControl,
AlfRole aRole
) [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 & aControl Control to be connected.
AlfRole aRole Relationship with connected control.

type()

const IfId & type ( ) [static, inline]