KParts
Go to the documentation of this file.
19 #ifndef KPARTS_GENERICFACTORY_H
20 #define KPARTS_GENERICFACTORY_H
42 kWarning() <<
"KParts::GenericFactory instantiated more than once!";
49 delete s_componentData;
117 const char *className,
120 T *part = KDEPrivate::ConcreteFactory<T>::create( parentWidget,
125 if ( part && !qstrcmp( className,
"KParts::ReadOnlyPart" ) )
135 template <
class T1,
class T2>
143 const char *className,
146 QObject *
object = KDEPrivate::MultiFactory< KTypeList<T1, T2> >::create( parentWidget,
154 if ( part && !qstrcmp( className,
"KParts::ReadOnlyPart" ) )
168 GenericFactoryBase<T> *GenericFactoryBase<T>::s_self = 0;
180 KAboutData *GenericFactoryBase<T>::s_aboutData = 0;
188 if ( !s_componentData )
191 s_componentData = s_self->createComponentData();
195 return *s_componentData;
205 s_aboutData = T::createAboutData();
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Apr 16 2013 19:15:42 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.