some Q_INVOKABLEs to be used in scripts
svn path=/trunk/KDE/kdelibs/; revision=906199
This commit is contained in:
parent
8dd6e79e56
commit
f3cdd2086b
@ -91,7 +91,7 @@ class PLASMA_EXPORT DataEngine : public QObject
|
|||||||
* the default implementation provides) or not is up to the
|
* the default implementation provides) or not is up to the
|
||||||
* DataEngine to decide.
|
* DataEngine to decide.
|
||||||
**/
|
**/
|
||||||
virtual QStringList sources() const;
|
Q_INVOKABLE virtual QStringList sources() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param source the source to target the Service at
|
* @param source the source to target the Service at
|
||||||
@ -99,12 +99,12 @@ class PLASMA_EXPORT DataEngine : public QObject
|
|||||||
* is parented to the DataEngine, but may be deleted by the
|
* is parented to the DataEngine, but may be deleted by the
|
||||||
* caller when finished with it
|
* caller when finished with it
|
||||||
*/
|
*/
|
||||||
virtual Service *serviceForSource(const QString &source);
|
Q_INVOKABLE virtual Service *serviceForSource(const QString &source);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the engine name for the DataEngine
|
* Returns the engine name for the DataEngine
|
||||||
*/
|
*/
|
||||||
QString name() const;
|
Q_INVOKABLE QString name() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Connects a source to an object for data updates. The object must
|
* Connects a source to an object for data updates. The object must
|
||||||
|
22
service.h
22
service.h
@ -97,17 +97,17 @@ public:
|
|||||||
* @arg destination specific to each Service, this sets which
|
* @arg destination specific to each Service, this sets which
|
||||||
* target or address for ServiceJobs to operate on
|
* target or address for ServiceJobs to operate on
|
||||||
*/
|
*/
|
||||||
void setDestination(const QString &destination);
|
Q_INVOKABLE void setDestination(const QString &destination);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the target destination, if any, that this service is associated with
|
* @return the target destination, if any, that this service is associated with
|
||||||
*/
|
*/
|
||||||
QString destination() const;
|
Q_INVOKABLE QString destination() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the possible operations for this profile
|
* @return the possible operations for this profile
|
||||||
*/
|
*/
|
||||||
QStringList operationNames() const;
|
Q_INVOKABLE QStringList operationNames() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the parameters for a given operation
|
* Retrieves the parameters for a given operation
|
||||||
@ -115,7 +115,7 @@ public:
|
|||||||
* @param operation the operation to retrieve parameters for
|
* @param operation the operation to retrieve parameters for
|
||||||
* @return KConfigGroup containing the parameters
|
* @return KConfigGroup containing the parameters
|
||||||
*/
|
*/
|
||||||
KConfigGroup operationDescription(const QString &operationName);
|
Q_INVOKABLE KConfigGroup operationDescription(const QString &operationName);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called to create a ServiceJob which is associated with a given
|
* Called to create a ServiceJob which is associated with a given
|
||||||
@ -124,7 +124,7 @@ public:
|
|||||||
* @return a started ServiceJob; the consumer may connect to relevant
|
* @return a started ServiceJob; the consumer may connect to relevant
|
||||||
* signals before returning to the event loop
|
* signals before returning to the event loop
|
||||||
*/
|
*/
|
||||||
ServiceJob *startOperationCall(const KConfigGroup &description, QObject *parent = 0);
|
Q_INVOKABLE ServiceJob *startOperationCall(const KConfigGroup &description, QObject *parent = 0);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Query to find if an operation is enabled or not.
|
* Query to find if an operation is enabled or not.
|
||||||
@ -132,12 +132,12 @@ public:
|
|||||||
* @param operation the name of the operation to check
|
* @param operation the name of the operation to check
|
||||||
* @return true if the operation is enabled, false otherwise
|
* @return true if the operation is enabled, false otherwise
|
||||||
*/
|
*/
|
||||||
bool isOperationEnabled(const QString &operation) const;
|
Q_INVOKABLE bool isOperationEnabled(const QString &operation) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The name of this service
|
* The name of this service
|
||||||
*/
|
*/
|
||||||
QString name() const;
|
Q_INVOKABLE QString name() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assoicates a widget with an operation, which allows the service to
|
* Assoicates a widget with an operation, which allows the service to
|
||||||
@ -149,7 +149,7 @@ public:
|
|||||||
* @param widget the QWidget to associate with the service
|
* @param widget the QWidget to associate with the service
|
||||||
* @param operation the operation to associate the widget with
|
* @param operation the operation to associate the widget with
|
||||||
*/
|
*/
|
||||||
void associateWidget(QWidget *widget, const QString &operation);
|
Q_INVOKABLE void associateWidget(QWidget *widget, const QString &operation);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Disassociates a widget if it has been associated with an operation
|
* Disassociates a widget if it has been associated with an operation
|
||||||
@ -159,7 +159,7 @@ public:
|
|||||||
*
|
*
|
||||||
* @param widget the QWidget to disassociate.
|
* @param widget the QWidget to disassociate.
|
||||||
*/
|
*/
|
||||||
void disassociateWidget(QWidget *widget);
|
Q_INVOKABLE void disassociateWidget(QWidget *widget);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assoicates a widget with an operation, which allows the service to
|
* Assoicates a widget with an operation, which allows the service to
|
||||||
@ -171,7 +171,7 @@ public:
|
|||||||
* @param widget the QGraphicsItem to associate with the service
|
* @param widget the QGraphicsItem to associate with the service
|
||||||
* @param operation the operation to associate the widget with
|
* @param operation the operation to associate the widget with
|
||||||
*/
|
*/
|
||||||
void associateWidget(QGraphicsWidget *widget, const QString &operation);
|
Q_INVOKABLE void associateWidget(QGraphicsWidget *widget, const QString &operation);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Disassociates a widget if it has been associated with an operation
|
* Disassociates a widget if it has been associated with an operation
|
||||||
@ -181,7 +181,7 @@ public:
|
|||||||
*
|
*
|
||||||
* @param widget the QGraphicsWidget to disassociate.
|
* @param widget the QGraphicsWidget to disassociate.
|
||||||
*/
|
*/
|
||||||
void disassociateWidget(QGraphicsWidget *widget);
|
Q_INVOKABLE void disassociateWidget(QGraphicsWidget *widget);
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user