Added deviceType to the identity packages

This will tell if we are a phone, tablet, laptop or desktop
This commit is contained in:
Albert Vaca 2013-11-06 18:34:51 +01:00
parent 47f531c91d
commit 35d2f8472c

View file

@ -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();