Purpose
configuration.cpp
42 qWarning() << "missing output values for" << job->metaObject()->className() << ". Expected: " << outputArgs.join(QStringLiteral(", "))
61 auto pluginResult = KPluginFactory::instantiatePlugin<QObject>(m_pluginData, parent, QVariantList());
74Configuration::Configuration(const QJsonObject &inputData, const QString &pluginTypeName, const KPluginMetaData &pluginInformation, QObject *parent)
85 , d_ptr(new ConfigurationPrivate{inputData, pluginTypeName, pluginType, pluginInformation, !qEnvironmentVariableIsSet("KDE_PURPOSE_LOCAL_JOBS")})
129 const QJsonArray arr = d->m_pluginData.rawData().value(QLatin1String("X-Purpose-Configuration")).toArray();
150 job->setProperty("outputArgs", d->m_pluginType.value(QLatin1String("X-Purpose-OutboundArguments")));
166 QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("kf6/purpose/%1_config.qml").arg(d->m_pluginData.pluginId()));
int error() const
void finished(KJob *job)
QString fileName() const
This class will be in charge of figuring out the job configuration.
Definition configuration.h:33
bool useSeparateProcess() const
Definition configuration.cpp:175
QJsonArray neededArguments
Specifies the arguments the config file and the job will be sharing.
Definition configuration.h:52
QUrl configSourceCode
Specifies the qml source code to be used, to configure the current job.
Definition configuration.h:59
QJsonObject data
Represents the data the job will have available to perform its task.
Definition configuration.h:47
bool isReady
Tells whether there's still information to be provided, to be able to run the job.
Definition configuration.h:42
void setUseSeparateProcess(bool separate)
separate will specify whether the process will be forced to execute in-process or in a separate proce...
Definition configuration.cpp:181
Q_SCRIPTABLE Purpose::Job * createJob()
Definition configuration.cpp:136
virtual Job * createJob() const =0
Definition processjob.h:26
KGuiItem ok()
bool cdUp()
QString filePath(const QString &fileName) const const
QStringList keys() const const
const_iterator cbegin() const const
const_iterator cend() const const
const char * className() const const
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
virtual const QMetaObject * metaObject() const const
QVariant property(const char *name) const const
bool setProperty(const char *name, QVariant &&value)
GenericDataLocation
QString locate(StandardLocation type, const QString &fileName, LocateOptions options)
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
bool isEmpty() const const
QString join(QChar separator) const const
QUrl fromLocalFile(const QString &localFile)
QJsonObject toJsonObject() const const
QStringList toStringList() const const
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:06 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:06 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.