Home · All Classes · Main Classes · Deprecated |
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 >.
Public Member Functions | |
MWidgetCreatorBase (const char *widgetClassName, const char *widgetAssemblyName, M::AssemblyType widgetAssemblyType) | |
virtual | ~MWidgetCreatorBase () |
virtual MWidgetController * | create () const =0 |
QString | assemblyName () const |
M::AssemblyType | assemblyType () const |
virtual const QMetaObject * | metaObject () const =0 |
Interface for MWidgetGenerators, you can implement your own creator or use MWidgetCreator template class with M_REGISTER_WIDGET-macro.
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.
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 |