Home · All Classes · Main Classes · Deprecated |
MAppletInterface is the base class for desktop applet entry-point classes. More...
Public Member Functions | |
virtual | ~MAppletInterface () |
virtual QGraphicsWidget * | constructWidget (const MAppletMetaData &metadata, MDataStore &instanceData, MDataAccess &settings)=0 |
MAppletInterface is the base class for desktop applet entry-point classes.
Applet developers need to implement this interface in their applet binary and export their implementation from the binary. The host application will maintain an inventory of available applets and instantiate them using this interface when needed.
virtual MAppletInterface::~MAppletInterface | ( | ) | [inline, virtual] |
Destructor.
virtual QGraphicsWidget* MAppletInterface::constructWidget | ( | const MAppletMetaData & | metadata, | |
MDataStore & | instanceData, | |||
MDataAccess & | settings | |||
) | [pure virtual] |
This method is called to construct a new applet widget instance.
Caller will maintain the ownership of the constructed widget and will destroy it when it is no longer needed.
metadata | Is const reference to metadata of the applet. | |
instanceData | A data store object that should be used to store permanent data of the constructed applet instance. | |
settings | A data store object that bundles applet settings to the applet. Contains both the instance settings and the global settings. |
Copyright © 2010 Nokia Corporation | MeeGo Touch |