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

MWidgetCreatorBase Class Reference

Interface for MWidgetGenerators, you can implement your own creator or use MWidgetCreator template class with M_REGISTER_WIDGET-macro. More...

Inherited by MWidgetCreator< WIDGET >, and MWidgetNullCreator< WIDGET >.

List of all members.

Public Member Functions

 MWidgetCreatorBase (const char *widgetClassName, const char *widgetAssemblyName, M::AssemblyType widgetAssemblyType)
virtual ~MWidgetCreatorBase ()
virtual MWidgetControllercreate () const =0
QString assemblyName () const
M::AssemblyType assemblyType () const
virtual const QMetaObjectmetaObject () const =0

Detailed Description

Interface for MWidgetGenerators, you can implement your own creator or use MWidgetCreator template class with M_REGISTER_WIDGET-macro.


Constructor & Destructor Documentation

MWidgetCreatorBase::MWidgetCreatorBase ( const char *  widgetClassName,
const char *  widgetAssemblyName,
M::AssemblyType  widgetAssemblyType 
)

Constructor will register this creator to MClassFactory.

MWidgetCreatorBase::~MWidgetCreatorBase (  )  [virtual]

Destructor will unregister this creator from MClassFactory.


Member Function Documentation

QString MWidgetCreatorBase::assemblyName (  )  const

Returns the assembly name in which the widget was introduced.

M::AssemblyType MWidgetCreatorBase::assemblyType (  )  const

Returns the type of the assembly in which the widget was introduced.

virtual MWidgetController* MWidgetCreatorBase::create (  )  const [pure virtual]

Returns new widget instance. Ownership is transferred to caller.

Implemented in MWidgetCreator< WIDGET >, and MWidgetNullCreator< WIDGET >.

virtual const QMetaObject* MWidgetCreatorBase::metaObject (  )  const [pure virtual]

Returns meta object of the widget.

Implemented in MWidgetCreator< WIDGET >, and MWidgetNullCreator< WIDGET >.


Copyright © 2010 Nokia Corporation
MeeGo Touch