IMEI Number In bb 10 Cascades

若如初见. 提交于 2020-01-05 07:37:21

问题


I want to get the imei number In bb 10 cascades.In that path, I need to to add

  using namespace bb::data;   
  #include <bb/device/HardwareInfo> 

I have Also Included

     LIBS += -lbbpim
     LIBS += -lbbsystem
     LIBS += -lbbdevice
     LIBS += -lbbdata

files to my project.pro file !!! but I am getting Error message like...

- expected namespace-name before ';' token

- 'data' is not a namespace-name

I want to know why i am getting this error ,how to resolve that Error and I would be hapy if post any code snippet how to get device Unique Id or IEMI Number in BB 10 Cascades !!!


回答1:


Try remove your

using namespace bb::data;

and then try

QString deviceImei = bb::device::HardwareInfo().imei();


来源:https://stackoverflow.com/questions/18693155/imei-number-in-bb-10-cascades

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!