11-01-2013 01:42 AM - edited 11-01-2013 02:08 AM
11-01-2013 02:10 AM - edited 11-01-2013 02:11 AM
Thanks for your reply
As per the documentation HardwareInfo class is for getting IMEI and model . But I am having problem while creating the object of this class even after adding include file and LIBS in pro file . Giving me error
11-01-2013 02:15 AM
11-01-2013 02:35 AM - edited 11-01-2013 02:36 AM
Are you use namespace?
using namespace bb::device; HardwareInfo info;
Part of the code where the error occurred would help
11-01-2013 02:42 AM
11-01-2013 02:58 AM
Now the issue is in .cpp file . giving this error
request for member 'modelName' in '((DeviceInfo*)this)->DeviceInfo::info', which is of non-class type
at every line where I have used methods to get device info .
11-01-2013 03:04 AM - edited 11-01-2013 03:17 AM
Can you please post the part of code how you use HardwareInfo?
You must doing something wrong
LIBS += -lbbdevice
#include <bb/device/HardwareInfo> using namespace bb::device;
HardwareInfo info; qDebug() << "IMEI: " << info.imei() << endl << \ "DEVICE NAME: " << info.deviceName() << endl;
This must work like a charm