Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Get IMEI code from N9 [Solved]

Get IMEI code from N9 [Solved]

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 3 Posters 3.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    luca
    wrote on last edited by
    #1

    Hi all,
    I need to get imei code from my N9 to use it as authentication in Qt.

    Unfortunately I can't find documentation or example to get it.

    Can you help me?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      luca
      wrote on last edited by
      #2

      It seems QSystemDeviceInfo is not available...

      1 Reply Last reply
      0
      • A Offline
        A Offline
        alwences
        wrote on last edited by
        #3

        Hi Luca

        What do you mean by QSystemDeviceInfo not being available?

        Have you tried this?

        http://www.developer.nokia.com/Community/Wiki/Get_Device_information_using_Qt_for_Symbian

        1 Reply Last reply
        0
        • L Offline
          L Offline
          luca
          wrote on last edited by
          #4

          Yes, I tried that but it seems it's not valid for N9.

          Adding this to my .pro:
          @
          CONFIG += mobility
          MOBILITY = systeminfo
          @

          I can include the header ad compile without error:
          @
          #include <QSystemDeviceInfo>
          #include <QtSystemInfo/QSystemInfo>
          #include <qsysteminfo.h>
          ...
          ...
          @

          but if I use the QSystemDeviceInfo object:
          @
          ...
          ...
          QSystemDeviceInfo info;
          ...
          @

          I get the error:
          @
          error: 'QSystemDeviceInfo' was not declared in this scope
          @

          It seems the library is not available.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mlong
            wrote on last edited by
            #5

            Are you using the @QTM_USE_NAMESPACE@ macro in your code? (See "here":http://doc.qt.digia.com/qtmobility/quickstart.html for details.)

            Software Engineer
            My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              luca
              wrote on last edited by
              #6

              Thanks, now it compiles without errors.

              I didn't read about that macro.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved