Home · All Classes · Main Classes · Deprecated
Public Member Functions

MAppletInterface Class Reference

MAppletInterface is the base class for desktop applet entry-point classes. More...

List of all members.

Public Member Functions

virtual ~MAppletInterface ()
virtual QGraphicsWidgetconstructWidget (const MAppletMetaData &metadata, MDataStore &instanceData, MDataAccess &settings)=0

Detailed Description

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.

See also:
Developing applets

Constructor & Destructor Documentation

virtual MAppletInterface::~MAppletInterface (  )  [inline, virtual]

Destructor.


Member Function Documentation

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.

Parameters:
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.
Returns:
New widget instance that visualizes this applet.

Copyright © 2010 Nokia Corporation
MeeGo Touch