Plasma5Support
service.h
124 Q_INVOKABLE ServiceJob *startOperationCall(const QVariantMap &description, QObject *parent = nullptr);
This class provides jobs for use with Plasma5Support::Service.
Definition servicejob.h:39
This class provides a generic API for write access to settings or services.
Definition service.h:78
Q_INVOKABLE void setDestination(const QString &destination)
Sets the destination for this Service to operate on.
Definition service.cpp:39
void setOperationEnabled(const QString &operation, bool enable)
Enables a given service by name.
Definition service.cpp:126
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:114
virtual ServiceJob * createJob(const QString &operation, QVariantMap ¶meters)=0
Called when a job should be created by the Service.
void operationEnabledChanged(const QString &operation, bool enabled)
Emitted when an operation got enabled or disabled.
Q_INVOKABLE bool isOperationEnabled(const QString &operation) const
Query to find if an operation is enabled or not.
Definition service.cpp:141
void setOperationsScheme(QIODevice *xml)
Sets the XML used to define the operation schema for this Service.
Definition service.cpp:146
Q_INVOKABLE QVariantMap operationDescription(const QString &operationName)
Retrieves the parameters for a given operation.
Definition service.cpp:61
virtual void registerOperationsScheme()
By default this is based on the file in plasma5support/services/name.operations, but can be reimpleme...
Definition service.cpp:167
void serviceReady(Plasma5Support::Service *service)
Emitted when this service is ready for use.
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:75
QObject(QObject *parent)
Q_INVOKABLEQ_INVOKABLE
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:07 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:07 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.