Expose nameChanged through dbus
This commit is contained in:
parent
f765e9c0a8
commit
6ece5665cd
2 changed files with 3 additions and 0 deletions
|
@ -45,6 +45,7 @@ DeviceDbusInterface::DeviceDbusInterface(const QString& id, QObject* parent)
|
|||
, m_id(id)
|
||||
{
|
||||
connect(this, &OrgKdeKdeconnectDeviceInterface::trustedChanged, this, &DeviceDbusInterface::trustedChangedProxy);
|
||||
connect(this, &OrgKdeKdeconnectDeviceInterface::nameChanged, this, &DeviceDbusInterface::nameChangedProxy);
|
||||
}
|
||||
|
||||
DeviceDbusInterface::~DeviceDbusInterface()
|
||||
|
|
|
@ -60,6 +60,7 @@ class KDECONNECTINTERFACES_EXPORT DeviceDbusInterface
|
|||
// TODO: Workaround because OrgKdeKdeconnectDeviceInterface is not generating
|
||||
// the signals for the properties
|
||||
Q_PROPERTY(bool isTrusted READ isTrusted NOTIFY trustedChangedProxy)
|
||||
Q_PROPERTY(QString name READ name NOTIFY nameChangedProxy)
|
||||
|
||||
public:
|
||||
explicit DeviceDbusInterface(const QString& deviceId, QObject* parent = nullptr);
|
||||
|
@ -69,6 +70,7 @@ public:
|
|||
Q_SCRIPTABLE void pluginCall(const QString &plugin, const QString &method);
|
||||
|
||||
Q_SIGNALS:
|
||||
void nameChangedProxy(const QString &name);
|
||||
void trustedChangedProxy(bool paired);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in a new issue