Added deviceType to the identity packages
This will tell if we are a phone, tablet, laptop or desktop
This commit is contained in:
parent
47f531c91d
commit
35d2f8472c
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue