From 35d2f8472c857dd54c57d0c4c278fc05c9d7b03f Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Wed, 6 Nov 2013 18:34:51 +0100 Subject: [PATCH] Added deviceType to the identity packages This will tell if we are a phone, tablet, laptop or desktop --- kded/networkpackage.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/kded/networkpackage.cpp b/kded/networkpackage.cpp index ea63d062e..89815d822 100644 --- a/kded/networkpackage.cpp +++ b/kded/networkpackage.cpp @@ -56,6 +56,7 @@ void NetworkPackage::createIdentityPackage(NetworkPackage* np) np->mPayloadSize = 0; np->set("deviceId", id); np->set("deviceName", QHostInfo::localHostName()); + np->set("protocolType", "desktop"); //TODO: Detect laptop, tablet, phone... np->set("protocolVersion", NetworkPackage::ProtocolVersion); //qDebug() << "createIdentityPackage" << np->serialize();