×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    5

    Cannot get a pointer to QContactManager

    Quote Originally Posted by divanov View Post
    Qt Mobility contacts consists of two parts: contacts library, which provides API and to be used by applications and implementation of API, which is platform specific and is called a backend. I'm Maemo expert so I don't know what is a name of contact backend for Symbian, but AFAIK Symbian contacts backend was almost finalized, so it should not be missing.
    Hi, dear divanov! Can I get the pointer of Contact Manager with the sentence "QContactManger *manager=new QContactManager("maemo5");"? It works in Qt Simulator, but not in my N900. Thanks a lot!

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: How to access phonebook contacts in Qt application

    You have a typo in QContactManager type. Could you explain what does it mean "doesn't work" in a descriptive way.

  3. #3
    Registered User
    Join Date
    Sep 2010
    Posts
    5

    Re: How to access phonebook contacts in Qt application

    Quote Originally Posted by divanov View Post
    You have a typo in QContactManager type. Could you explain what does it mean "doesn't work" in a descriptive way.
    Oh, Sorry. I use below sentences to get the count of Contacts,
    QList<QContact> contacts = manager->contacts();
    qDebug() << contacts.count();
    but the number is always 0 on my N900. Thanks!

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Cannot get a pointer to QContactManager

    Please, provide a log file after running following commands in XTerm on your N900:
    Code:
    dpkg -l "libqtm*" >> n900.log
    dpkg -l "libqt4*" >> n900.log
    ldd ./your_binary | grep libQt >> n900.log

  5. #5
    Registered User
    Join Date
    Sep 2010
    Posts
    5

    Re: Cannot get a pointer to QContactManager

    Quote Originally Posted by divanov View Post
    Please, provide a log file after running following commands in XTerm on your N900:
    Code:
    dpkg -l "libqtm*" >> n900.log
    dpkg -l "libqt4*" >> n900.log
    ldd ./your_binary | grep libQt >> n900.log
    Hi, dear divanov,
    below is the output of n900.log, but can you tell my what is the "your_binary"? Thanks!

    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
    ||/ Name Version Description
    +++-===================================================-================================-============================================
    ii libqtm-bearer 1:1.0.2-maemo1 Qt Mobility Bearer module
    ii libqtm-contacts 1:1.0.2-maemo1 Qt Mobility contacts module
    un libqtm-examples <none> (no description available)
    ii libqtm-location 1:1.0.2-maemo1 Qt Mobility location module
    ii libqtm-messaging 1:1.0.2-maemo1 Qt Mobility messaging module
    ii libqtm-multimedia 1:1.0.2-maemo1 Qt Mobility multimedia module
    ii libqtm-publishsubscribe 1:1.0.2-maemo1 Qt Mobility publish and subscribe module
    ii libqtm-sensors 1:1.0.2-maemo1 Qt Mobility service framework module
    ii libqtm-serviceframework 1:1.0.2-maemo1 Qt Mobility service framework module
    ii libqtm-systeminfo 1:1.0.2-maemo1 Qt Mobility system information module
    ii libqtm-versit 1:1.0.2-maemo1 Qt Mobility versit module
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
    ||/ Name Version Description
    +++-===================================================-================================-============================================
    ii libqt4-core 4.6.2~git20100401-0maemo1+0m5 Qt 4 core module
    ii libqt4-dbus 4.6.2~git20100401-0maemo1+0m5 Qt 4 D-Bus module
    un libqt4-dev <none> (no description available)
    ii libqt4-gui 4.6.2~git20100401-0maemo1+0m5 Qt 4 GUI module
    ii libqt4-maemo5 4.6.2~git20100401-0maemo1+0m5 Qt 4 Maemo5 module
    ii libqt4-multimedia 4.6.2~git20100401-0maemo1+0m5 Qt 4 Multimedia Libraries
    ii libqt4-network 4.6.2~git20100401-0maemo1+0m5 Qt 4 network module
    ii libqt4-opengl 4.6.2~git20100401-0maemo1+0m5 Qt 4 OpenGL module
    ii libqt4-phonon 4.6.2~git20100401-0maemo1+0m5 Qt 4 Phonon Libraries
    ii libqt4-sql 4.6.2~git20100401-0maemo1+0m5 Qt 4 SQL module
    ii libqt4-sql-sqlite 4.6.2~git20100401-0maemo1+0m5 Qt 4 SQLite plugin
    ii libqt4-svg 4.6.2~git20100401-0maemo1+0m5 Qt 4 SVG module
    ii libqt4-webkit 4.6.2~git20100401-0maemo1+0m5 Qt 4 WebKit module
    ii libqt4-xml 4.6.2~git20100401-0maemo1+0m5 Qt 4 XML module
    ii libqt4-xmlpatterns 4.6.2~git20100401-0maemo1+0m5 Qt 4 XML Patterns module

  6. #6
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Cannot get a pointer to QContactManager

    your_binary should be replaced with name of your binary. Normally it's the same as value of TARGET variable in Qt project file.

  7. #7
    Registered User
    Join Date
    Sep 2010
    Posts
    5

    Re: Cannot get a pointer to QContactManager

    Quote Originally Posted by divanov View Post
    your_binary should be replaced with name of your binary. Normally it's the same as value of TARGET variable in Qt project file.
    Sorry, it always said "no such file or directory." : (

  8. #8
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Cannot get a pointer to QContactManager

    Are you using Nokia Qt SDK as a build environment, which version exactly?

  9. #9
    Registered User
    Join Date
    Sep 2010
    Posts
    5

    Re: Cannot get a pointer to QContactManager

    yes, I am. It should be Nokia Qt SDK 1.0, and Qt Creator 2.0. Thanks!

Similar Threads

  1. can I convert this pointer?
    By SymbianLN in forum Symbian
    Replies: 3
    Last Post: 2007-06-04, 02:52
  2. shift the pointer
    By shadow-2005 in forum Symbian
    Replies: 4
    Last Post: 2006-11-23, 11:09
  3. shift pointer
    By shadow-2005 in forum Symbian
    Replies: 3
    Last Post: 2006-11-23, 11:06
  4. pointer problem....
    By Enliten in forum Symbian
    Replies: 2
    Last Post: 2003-08-07, 22:00
  5. Pointer of Pointer
    By mmfcassius in forum Symbian
    Replies: 0
    Last Post: 2003-08-04, 03:15

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×