[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:28:36 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=ef788e0
The following commit has been merged in the master branch:
commit ef788e065804383206137377ce740e967866f156
Author: Aleix Pol <aleixpol at kde.org>
Date: Fri Jun 12 17:54:47 2015 +0200
Restore removed API, deprecate
REVIEW: 124084
---
core/device.cpp | 8 ++++++++
core/device.h | 3 +++
2 files changed, 11 insertions(+)
diff --git a/core/device.cpp b/core/device.cpp
index d2ceb84..a7f64cf 100644
--- a/core/device.cpp
+++ b/core/device.cpp
@@ -81,6 +81,14 @@ Device::Device(QObject* parent, const NetworkPackage& identityPackage, DeviceLin
//Register in bus
QDBusConnection::sessionBus().registerObject(dbusPath(), this, QDBusConnection::ExportScriptableContents | QDBusConnection::ExportAdaptors);
+
+ //Implement deprecated signals
+ connect(this, &Device::pairingChanged, this, [this](bool newPairing) {
+ if (newPairing)
+ Q_EMIT pairingSuccesful();
+ else
+ Q_EMIT unpaired();
+ });
}
Device::~Device()
diff --git a/core/device.h b/core/device.h
index 1512721..8db350a 100644
--- a/core/device.h
+++ b/core/device.h
@@ -127,6 +127,9 @@ Q_SIGNALS:
Q_SCRIPTABLE void pairingFailed(const QString& error);
Q_SCRIPTABLE void nameChanged(const QString& name);
+ QT_DEPRECATED Q_SCRIPTABLE void pairingSuccesful();
+ QT_DEPRECATED Q_SCRIPTABLE void unpaired();
+
private: //Methods
void setName(const QString &name);
QString iconForStatus(bool reachable, bool paired) const;
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list