02-13-2013 10:33 AM
Hello,
Is there a way to retrieve the name of the device in use? I would like to be able know if the user is using a Z10, Q10 etc..
Thanks,
Scott
Solved! Go to Solution.
02-13-2013 11:04 AM
Have you tried with HardwareInfo?
https://developer.blackberry.com/cascades/referenc
02-13-2013 02:17 PM
That's what I needed. Thanks.
Scott
02-21-2013 10:27 AM
I just found another solution for this requirement. By this solution, it can also retrieve other system information as well such as os version (deviceinfo_details_get_device_os_version).
QString deviceModel;
if (bps_initialize() == BPS_SUCCESS) {
qDebug() << "bps initialized";
deviceinfo_details_t *deviceDetails = 0;
if (deviceinfo_get_details(&deviceDetails) == BPS_SUCCESS) {
deviceModel = deviceinfo_details_get_hardware_id(deviceDetails);
deviceinfo_free_details(&deviceDetails);
} else {
qDebug() << "error retrieving device details";
}
bps_shutdown();
} else {
qDebug() << "error initializing bps";
}