Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Get IMEI code from N9 [Solved]

    Mobile and Embedded
    3
    6
    3292
    Loading More Posts
    • 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
      luca last edited by

      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 Reply Quote 0
      • L
        luca last edited by

        It seems QSystemDeviceInfo is not available...

        1 Reply Last reply Reply Quote 0
        • A
          alwences last edited by

          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 Reply Quote 0
          • L
            luca last edited by

            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 Reply Quote 0
            • M
              mlong last edited by

              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 Reply Quote 0
              • L
                luca last edited by

                Thanks, now it compiles without errors.

                I didn't read about that macro.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post