Home · All Classes · Main Classes · Deprecated
Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes

MExtensionArea Class Reference

Inherits MWidgetController.

Inherited by MApplicationExtensionArea.

List of all members.

Public Member Functions

 MExtensionArea (QGraphicsItem *parent=NULL)
virtual ~MExtensionArea ()

Protected Slots

virtual void addWidget (QGraphicsWidget *widget, MDataStore &store)
virtual void removeWidget (QGraphicsWidget *widget)

Protected Member Functions

 MExtensionArea (MExtensionAreaPrivate *dd, MWidgetModel *model, QGraphicsItem *parent)

Protected Attributes

MExtensionAreaPrivate *const d_ptr

Detailed Description

MExtensionArea is a baseclass for widgets that can load application extensions


Constructor & Destructor Documentation

MExtensionArea::MExtensionArea ( QGraphicsItem parent = NULL  )  [explicit]

Default constructor

Parameters:
parent Optional Object's parent
MExtensionArea::~MExtensionArea (  )  [virtual]

Default destructor

MExtensionArea::MExtensionArea ( MExtensionAreaPrivate *  dd,
MWidgetModel model,
QGraphicsItem parent 
) [protected]

Protected constructor to be called by derived classes to set up the private implementation hierarchy.


Member Function Documentation

void MExtensionArea::addWidget ( QGraphicsWidget widget,
MDataStore store 
) [protected, virtual, slot]

addWidget performs setup of an extension widget and its datastore when the widget is being added to the extension area. The ownership of the widget remains on the caller of this slot. This slot can be overridden in specialized extension areas to provide additional setup.

Parameters:
widget Widget to be added onto the MExtensionArea.
store This MDataStore object can be used to store permanent extension area data related to this particular application extension instance. When the same application extension instance is reinstantiated, this API will be called with the data that was stored to the permanent storage the last time around. This can be used to store for instance layout data of an application extension instance or any other extension area specific data.
void MExtensionArea::removeWidget ( QGraphicsWidget widget  )  [protected, virtual, slot]

removeWidget performs cleanup related to a widget that is being removed. The widget itself should not be deleted in this method, it will be deleted by the caller.

Parameters:
widget The widget to be removed from the system.

Member Data Documentation

MExtensionAreaPrivate* const MExtensionArea::d_ptr [protected]

Reimplemented from MWidget.


Copyright © 2010 Nokia Corporation
MeeGo Touch