Results 1 to 7 of 7

Thread: Accessing system info on Maemo Nokia N900 device in Qt application

  1. #1
    Join Date
    Jul 2010
    Posts
    72
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Accessing system info on Maemo Nokia N900 device in Qt application

    Hello,

    Is it possible to get IMEI number of Maemo Nokia N900 device in Qt wrriten application?

    I made search via google, yahoo, bing for get imei data in Maemo N900 in Qt application
    but I did not found any suggestions what to code ( what libraries to use ) to get system info for Maemo N900

    for Symbian devices there is GetIMEI project

    Can somebody help how to get IMEI number running on Maemo N900 in Qt project ( what libraries to use )?

    Thanks a lot,

    Pavel

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Accessing system info on Maemo Nokia N900 device in Qt application

    http://talk.maemo.org/showpost.php?p...6&postcount=45

    In other words it's available using DBus.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jul 2010
    Posts
    72
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Accessing system info on Maemo Nokia N900 device in Qt application

    Should I simply Qt+= dbus in .pro file
    and use next libraries:

    Qt Code:
    1. #include <stdlib.h>
    2. #include <glib.h>
    3. #include <glib/gprintf.h>
    4. #include <dbus/dbus-glib.h>
    To copy to clipboard, switch view to plain text mode 


    should I inculde something in .pro file also or is it enought to include the headers in code ( .h files )?

    thanks
    Last edited by wysota; 2nd April 2011 at 14:45. Reason: missing [code] tags

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Accessing system info on Maemo Nokia N900 device in Qt application

    You just need Qt's dbus functionality.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Jul 2010
    Posts
    72
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Accessing system info on Maemo Nokia N900 device in Qt application

    ups!
    it is not so easy:
    from one side according to http://talk.maemo.org/showpost.php?p...6&postcount=45

    you shouldn't use any Qt wrrapers ( libraries )

    but when using Qt:

    http://wiki.forum.nokia.com/index.ph...h_DBus_support

    http://doc.qt.nokia.com/4.6/qtdbus.html#details

    http://doc.qt.nokia.com/4.6/intro-to-dbus.html

    http://www.freedesktop.org/wiki/Intr...bb30beff4794bd

    you should modify ( for Maemo ) .desctop file ; add service description ; add QtDbus module to CONFIG in .pro file ; #include <QtDBus> ; register the service;
    use QDbusConnection class;

    it is different modules in your link and in Qt !

    look Witold:

    Should be used when in Qt application for Maemo:

    1) QDbusConnection class as DBusGConnection from your example ?

    2) What to use for this in Qt:

    g_type_init();

    connection = dbus_g_bus_get(DBUS_BUS_SYSTEM, &error);
    if (!connection)

    3) What Qt Dbus class to use as proxy ?

    4) There is any code at www getting IMEI using Qt Dbus classes only in C , right?

    Pavel


    Added after 24 minutes:


    one moment...

    I must not use Qt Dbus binding for dbus comunication on Maemo, right?

    I can use only appropriated C libraries function as in the example in my code version for Maemo, right?
    Last edited by freely; 2nd April 2011 at 15:27.

  6. #6
    Join Date
    Jul 2010
    Posts
    72
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Accessing system info on Maemo Nokia N900 device in Qt application

    could it be done using QtMobility QSystemDeviceInfo ?

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Accessing system info on Maemo Nokia N900 device in Qt application

    Why can't you use QtDbus?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Nokia N900 - Java and stuff
    By been_1990 in forum General Discussion
    Replies: 3
    Last Post: 10th November 2010, 13:29
  2. Replies: 4
    Last Post: 5th May 2010, 13:24

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.