×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    42

    QContactPresence detail - how?

    How can I find out the presence status for an contact's online account?

    The documentation (http://doc.qt.nokia.com/qtmobility-1...neaccount.html) says:

    "Presence information for a particular QContactOnlineAccount detail is provided in a QContactPresence detail which is linked (via linkedDetailUris()) to the account detail. This information is generally provided by the backend, and is not modifiable by clients."

    On my n900 application for contacts that have skype accounts setup I find the QContactOnlineAccount details with ServiceProvider skype but linkedDetailUris returns an empty array.

    I also tried, just in case, "contact.details(QContactPresence::DefinitionName)" but with no success as expected.

    What is the recommended way to get the presence status? Has anybody accomplished this on the maemo5 platform?

    Thanks in advance,
    Felipe

  2. #2
    Nokia Developer Expert
    Join Date
    May 2010
    Posts
    65

    Re: QContactPresence detail - how?

    Hi,

    You are attempting to fetch the presence information in the correct manner.

    In general, a QContactOnlineAccount detail for which presence is available will have a linkedDetailUri which identifies a QContactPresence detail.

    I will look into this; it is possible that the presence detail has not yet been implemented in the backend. Note that the osso-abook API may not provide access to presence information, in which case it may not be implementable - but I will check this, as I think it should.

    Cheers,
    Chris.
    Last edited by chriadam; 2010-06-04 at 01:02.

  3. #3
    Registered User
    Join Date
    Jun 2009
    Posts
    42

    Re: QContactPresence detail - how?

    Chris,
    Thank you for your reply.

    So I am afraid there is a bug or the function was not implemented because I always get an empty array from QContactOnlineAccount.linkedDetailUris, even for the contacts that have accounts and are online (according to the standard contacts application).

    Felipe

  4. #4
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: QContactPresence detail - how?

    Hi Felipe,
    Presence doesn't work as expected because the Contacts API changed and presence as well as the online details have not been updated in the Maemo5 backend.
    I'm fixing the online details right now.. ... I'll start to take a look to the presence very soon.

    Tonio

Similar Threads

  1. How to get sms sender's detail in j2me?
    By bfchaudharimca in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2008-11-26, 11:33
  2. Replies: 2
    Last Post: 2008-10-11, 10:52
  3. Add mass advanced detail for contacts database
    By Native-Patriot in forum Symbian
    Replies: 3
    Last Post: 2008-02-11, 14:49
  4. Updating per-contact image detail
    By deg in forum OMA DM/DS/CP
    Replies: 1
    Last Post: 2007-01-12, 05:29
  5. Replies: 1
    Last Post: 2003-02-21, 08:33

Posting Permissions

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