| Home · All Classes · Main Classes · Deprecated |


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 |
MExtensionArea is a baseclass for widgets that can load application extensions
Definition at line 32 of file extensions/applicationextension/mextensionarea.h.
| MExtensionArea::MExtensionArea | ( | QGraphicsItem * | parent = NULL |
) | [explicit] |
Default constructor
| parent | Optional Object's parent |
Definition at line 101 of file mextensionarea.cpp.
:
MWidgetController(new MExtensionAreaModel, parent),
d_ptr(new MExtensionAreaPrivate())
{
// Initialize the private implementation
Q_D(MExtensionArea);
d->q_ptr = this;
d->init();
}
| MExtensionArea::~MExtensionArea | ( | ) | [virtual] |
Default destructor
Definition at line 111 of file mextensionarea.cpp.
{
Q_D(MExtensionArea);
delete d;
}
| MExtensionArea::MExtensionArea | ( | MExtensionAreaPrivate * | dd, | |
| MWidgetModel * | model, | |||
| QGraphicsItem * | parent | |||
| ) | [protected] |
Protected constructor to be called by derived classes to set up the private implementation hierarchy.
Definition at line 89 of file mextensionarea.cpp.
: MWidgetController(model, parent), d_ptr(dd) { // Initialize the private implementation Q_D(MExtensionArea); if (d) { d->q_ptr = this; d->init(); } }
| void MExtensionArea::addWidget | ( | QGraphicsWidget * | widget, | |
| MDataStore & | store | |||
| ) | [protected, virtual, slot] |
addWidget performs setup of an extension widget and it's 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.
| 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. |
Definition at line 117 of file mextensionarea.cpp.
{
Q_D(MExtensionArea);
d->addWidget(widget, store);
}
| 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.
| widget | The widget to be removed from the system. |
Definition at line 124 of file mextensionarea.cpp.
{
Q_D(MExtensionArea);
d->removeWidget(widget);
}
MExtensionAreaPrivate* const MExtensionArea::d_ptr [protected] |
Reimplemented from MWidget.
Definition at line 55 of file extensions/applicationextension/mextensionarea.h.
| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:14:25 (PDT) Doxygen 1.7.1 |
MeeGo Touch |