KParts
componentfactory.h
Go to the documentation of this file.
86 KLibrary *library = KLibLoader::self()->library( QFile::decodeName( libraryName ) ); // compatibility hack
140 return createPartInstanceFromLibrary<T>( QFile::encodeName( library ).constData(), parentWidget,
212 const KService::List offers = KMimeTypeTrader::self()->query( mimeType, QLatin1String("KParts/ReadOnlyPart"), constraint );
T * createPartInstanceFromLibrary(const char *libraryName, QWidget *parentWidget=0, QObject *parent=0, const QStringList &args=QStringList(), int *error=0)
Definition: componentfactory.h:80
KLibrary * library(const QString &libname, QLibrary::LoadHints loadHint=0)
#define T
T * createPartInstanceFromService(const KService::Ptr &service, QWidget *parentWidget=0, QObject *parent=0, const QStringList &args=QStringList(), int *error=0)
Definition: componentfactory.h:126
T * createPartInstanceFromServices(ServiceIterator begin, ServiceIterator end, QWidget *parentWidget=0, QObject *parent=0, const QStringList &args=QStringList(), int *error=0)
Definition: componentfactory.h:147
KPluginFactory * factory(const char *factoryname=0)
T * createPartInstanceFromFactory(KParts::Factory *factory, QWidget *parentWidget=0, QObject *parent=0, const QStringList &args=QStringList())
This template function allows to ask the given kparts factory to create an instance of the given temp...
Definition: componentfactory.h:58
KService::List query(const QString &mimeType, const QString &genericServiceType=QString::fromLatin1("Application"), const QString &constraint=QString()) const
static KMimeTypeTrader * self()
QString library() const
static KLibLoader * self()
bool unload()
Part * createPart(QWidget *parentWidget=0, QObject *parent=0, const char *classname="KParts::Part", const QStringList &args=QStringList())
Creates a part.
Definition: factory.cpp:44
T * createPartInstanceFromQuery(const QString &mimeType, const QString &constraint, QWidget *parentWidget=0, QObject *parent=0, const QStringList &args=QStringList(), int *error=0)
This method creates and returns a KParts part from a serviceType (e.g.
Definition: componentfactory.h:205
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.