[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:29:44 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=fd19426
The following commit has been merged in the master branch:
commit fd19426756d7b170e35c18527430104cb896caa2
Author: Aleix Pol <aleixpol at kde.org>
Date: Fri Jun 3 15:50:46 2016 +0200
Make it possible to put NetworkPackage right into qDebug
---
core/networkpackage.cpp | 10 ++++++++++
core/networkpackage.h | 2 ++
2 files changed, 12 insertions(+)
diff --git a/core/networkpackage.cpp b/core/networkpackage.cpp
index 59bd21b..e572a89 100644
--- a/core/networkpackage.cpp
+++ b/core/networkpackage.cpp
@@ -35,6 +35,16 @@
#include "pluginloader.h"
#include "kdeconnectconfig.h"
+QDebug operator<<(QDebug s, const NetworkPackage& pkg)
+{
+ s.nospace() << "NetworkPackage(" << pkg.type() << ':' << pkg.body();
+ if (pkg.hasPayload()) {
+ s.nospace() << ":withpayload";
+ }
+ s.nospace() << ')';
+ return s.space();
+}
+
//const QCA::EncryptionAlgorithm NetworkPackage::EncryptionAlgorithm = QCA::EME_PKCS1v15;
const int NetworkPackage::ProtocolVersion = 6;
diff --git a/core/networkpackage.h b/core/networkpackage.h
index 60a5f79..e848163 100644
--- a/core/networkpackage.h
+++ b/core/networkpackage.h
@@ -101,4 +101,6 @@ private:
};
+KDECONNECTCORE_EXPORT QDebug operator<<(QDebug s, const NetworkPackage& pkg);
+
#endif // NETWORKPACKAGE_H
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list