componentfactory.h
static T * createInstanceFromLibrary(const char *libraryName, TQObject *parent=0, const char *name=0, const TQStringList &args=TQStringList(), int *error=0)
This template allows to load the specified library and ask the factory to create an instance of the g...
Definition: componentfactory.h:127
static T * createPartInstanceFromQuery(const TQString &serviceType, const TQString &constraint, TQWidget *parentWidget=0, const char *widgetName=0, TQObject *parent=0, const char *name=0, const TQStringList &args=TQStringList(), int *error=0)
This method creates and returns a KParts part from a serviceType (e.g.
Definition: componentfactory.h:370
static T * createInstanceFromQuery(const TQString &serviceType, const TQString &constraint=TQString::null, TQObject *parent=0, const char *name=0, const TQStringList &args=TQStringList(), int *error=0)
This method creates and returns a plugin, from the trader query for a given serviceType.
Definition: componentfactory.h:321
TQObject * create(TQObject *parent=0, const char *name=0, const char *classname="TQObject", const TQStringList &args=TQStringList())
const TDEShortcut & end()
void unload() const
static T * createPartInstanceFromFactory(KParts::Factory *factory, TQWidget *parentWidget=0, const char *widgetName=0, TQObject *parent=0, const char *name=0, const TQStringList &args=TQStringList())
This template function allows to ask the given tdeparts factory to create an instance of the given te...
Definition: componentfactory.h:95
Part * createPart(TQWidget *parentWidget=0, const char *widgetName=0, TQObject *parent=0, const char *name=0, const char *classname="KParts::Part", const TQStringList &args=TQStringList())
Creates a part.
Definition: factory.cpp:42
static KLibLoader * self()
KLibFactory * factory()
static T * createInstanceFromFactory(KLibFactory *factory, TQObject *parent=0, const char *name=0, const TQStringList &args=TQStringList())
This template function allows to ask the given factory to create an instance of the given template ty...
Definition: componentfactory.h:61
ComponentLoadingError
This enum type defines the possible error cases that can happen when loading a component.
Definition: componentfactory.h:37
virtual KLibrary * library(const char *libname)