KService
kplugintrader.h
53 * Please note that when including property names containing arithmetic operators like - or +, then you have
54 * to put brackets around the property name, in order to correctly separate arithmetic operations from
66 * Instead of the other meaning, make sure that the numeric value of "X-KMyApp-InterfaceVersion" is
143 * @see http://techbase.kde.org/Development/Tutorials/Services/Traders#The_KTrader_Query_Language
163 * KMyAppPlugin* plugin = KPluginTrader::createInstanceFromQuery<KMyAppPlugin>(subDirectory, serviceType, QString(), parentObject );
186 return createInstanceFromQuery<T>(subDirectory, serviceType, constraint, parent, nullptr, args, error);
A trader interface which provides a way to query specific subdirectories in the Qt plugin paths for p...
Definition: kplugintrader.h:78
T * create(QObject *parent=nullptr, const QVariantList &args=QVariantList())
QVariantMap toVariantMap() const const
QString translate(const char *context, const char *sourceText, const char *disambiguation, int n)
static T * createInstanceFromQuery(const QString &subDirectory, const QString &serviceType, const QString &constraint, QObject *parent, QWidget *parentWidget, const QVariantList &args=QVariantList(), QString *error=nullptr)
Get a plugin from a trader query.
Definition: kplugintrader.h:208
QJsonObject metaData() const
static T * createInstanceFromQuery(const QString &subDirectory, const QString &serviceType=QString(), const QString &constraint=QString(), QObject *parent=nullptr, const QVariantList &args=QVariantList(), QString *error=nullptr)
Get a plugin from a trader query.
Definition: kplugintrader.h:179
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Mar 2 2021 23:45:00 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Mar 2 2021 23:45:00 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.