Plasma5Support
service.cpp
79 const QString op = !description.isEmpty() ? description.value(QStringLiteral("_name")).toString() : QString();
154 KSharedConfigPtr config = KSharedConfig::openConfig(QStringLiteral("/dev/null"), KConfig::SimpleConfig);
183 QStringLiteral(PLASMA5SUPPORT_RELATIVE_DATA_INSTALL_DIR "/services/") + d->name + QStringLiteral(".operations"));
QStringList groupList() const
SimpleConfig
KConfigSkeletonItem::List items() const
This class provides jobs for use with Plasma5Support::Service.
Definition servicejob.h:39
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
Q_EMITQ_EMIT
QObject * parent() const const
void setParent(QObject *parent)
GenericDataLocation
QString locate(StandardLocation type, const QString &fileName, LocateOptions options)
bool isEmpty() const const
singleShot
<Plasma5Support/Version>
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.