QDBusConnectionInterface: Add activatableServiceNames
This allows to query all names that can be activated on the bus. Change-Id: I8f894bf858eb18b67a074ca666ad3200ed99c373 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
3a1f9dec7c
commit
777c98ad9f
|
|
@ -198,6 +198,18 @@ QDBusReply<QStringList> QDBusConnectionInterface::registeredServiceNames() const
|
|||
return internalConstCall(QDBus::AutoDetect, QLatin1String("ListNames"));
|
||||
}
|
||||
|
||||
/*!
|
||||
\property QDBusConnectionInterface::activatableServiceNames
|
||||
\brief holds the activatable service names
|
||||
\since 5.14
|
||||
|
||||
Lists all names that can be activated on the bus.
|
||||
*/
|
||||
QDBusReply<QStringList> QDBusConnectionInterface::activatableServiceNames() const
|
||||
{
|
||||
return internalConstCall(QDBus::AutoDetect, QLatin1String("ListActivatableNames"));
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns \c true if the service name \a serviceName has is currently
|
||||
registered.
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ class Q_DBUS_EXPORT QDBusConnectionInterface: public QDBusAbstractInterface
|
|||
~QDBusConnectionInterface();
|
||||
|
||||
Q_PROPERTY(QDBusReply<QStringList> registeredServiceNames READ registeredServiceNames)
|
||||
Q_PROPERTY(QDBusReply<QStringList> activatableServiceNames READ activatableServiceNames)
|
||||
|
||||
public:
|
||||
enum ServiceQueueOptions {
|
||||
|
|
@ -90,6 +91,7 @@ public:
|
|||
|
||||
public Q_SLOTS:
|
||||
QDBusReply<QStringList> registeredServiceNames() const;
|
||||
QDBusReply<QStringList> activatableServiceNames() const;
|
||||
QDBusReply<bool> isServiceRegistered(const QString &serviceName) const;
|
||||
QDBusReply<QString> serviceOwner(const QString &name) const;
|
||||
QDBusReply<bool> unregisterService(const QString &serviceName);
|
||||
|
|
|
|||
Loading…
Reference in New Issue