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
bool isEmpty() const
KService::List query(const QString &mimeType, const QString &genericServiceType=QString::fromLatin1("Application"), const QString &constraint=QString()) const
bool isEmpty() const
const char * constData() const
static KMimeTypeTrader * self()
iterator end()
QString library() const
static KLibLoader * self()
bool unload()
iterator begin()
QByteArray encodeName(const QString &fileName)
QString decodeName(const QByteArray &localFileName)
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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.