Plasma
service.cpp
87 const QString op = !description.isEmpty() ? description.value(QStringLiteral("_name")).toString() : QString();
104 // qCDebug(LOG_PLASMA) << op << "is not a valid group; valid groups are:" << d->operationsMap.keys();
162 KSharedConfigPtr config = KSharedConfig::openConfig(QStringLiteral("/dev/null"), KConfig::SimpleConfig);
void operationEnabledChanged(const QString &operation, bool enabled)
Emitted when an operation got enabled or disabled.
void setOperationsScheme(QIODevice *xml)
Sets the XML used to define the operation schema for this Service.
Definition: service.cpp:154
KConfigSkeletonItem::List items() const
Q_EMITQ_EMIT
singleShot
void setName(const QString &name)
Sets the name of the Service; useful for Services not loaded from plugins, which use the plugin name ...
Definition: service.cpp:122
void setOperationEnabled(const QString &operation, bool enable)
Enables a given service by name.
Definition: service.cpp:134
QString locate(QStandardPaths::StandardLocation type, const QString &fileName, QStandardPaths::LocateOptions options)
Q_INVOKABLE void setDestination(const QString &destination)
Sets the destination for this Service to operate on.
Definition: service.cpp:47
Q_INVOKABLE ServiceJob * startOperationCall(const QVariantMap &description, QObject *parent=nullptr)
Called to create a ServiceJob which is associated with a given operation and parameter set.
Definition: service.cpp:83
bool isEmpty() const const
virtual ServiceJob * createJob(const QString &operation, QVariantMap ¶meters)=0
Called when a job should be created by the Service.
Q_INVOKABLE QVariantMap operationDescription(const QString &operationName)
Retrieves the parameters for a given operation.
Definition: service.cpp:69
QStringList groupList() const
Q_INVOKABLE bool isOperationEnabled(const QString &operation) const
Query to find if an operation is enabled or not.
Definition: service.cpp:149
GenericDataLocation
void setParent(QObject *parent)
virtual void registerOperationsScheme()
By default this is based on the file in plasma/services/name.operations, but can be reimplemented to ...
Definition: service.cpp:175
SimpleConfig
QObject * parent() const const
void serviceReady(Plasma::Service *service)
Emitted when this service is ready for use.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:15:02 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:15:02 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.