<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Antonio, <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I am missing some step. Would you be so
kind to check the code bellow? I can&#8217;t figure out how to find the
QContactPresence detail&#8230; By the documentation I assumed linkedDetailUris would
give me some hint on how to get but it didn&#8217;t &#8230;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&#8230;<o:p></o:p></span></font></p>

<pre><font size=2 face="Courier New"><span style='font-size:10.0pt'>&nbsp;&nbsp;&nbsp; details = m_contact.details(QContactOnlineAccount::DefinitionName);<o:p></o:p></span></font></pre><pre
style='-qt-block-indent:0'><font size=2 face="Courier New"><span
style='font-size:10.0pt'>&nbsp;&nbsp;&nbsp; foreach ( QContactOnlineAccount account, details ) {<o:p></o:p></span></font></pre><pre
style='-qt-block-indent:0'><font size=2 face="Courier New"><span
style='font-size:10.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qDebug() &lt;&lt; &quot;Online Acount: &quot; &lt;&lt; account.serviceProvider() &lt;&lt; &quot;: &quot; &lt;&lt; account.accountUri();<o:p></o:p></span></font></pre><pre
style='-qt-paragraph-type:empty;-qt-block-indent:0'><font size=2
face="Courier New"><span style='font-size:10.0pt'> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach ( QString str, account.contexts() ) qDebug() &lt;&lt; &quot;&gt;&gt; Context: &quot; &lt;&lt; str;<o:p></o:p></span></font></pre><pre
style='-qt-paragraph-type:empty;-qt-block-indent:0'><font size=2
face="Courier New"><span style='font-size:10.0pt'> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach ( QString str, account.capabilities() ) qDebug() &lt;&lt; &quot;&gt;&gt; Capability: &quot; &lt;&lt; str;<o:p></o:p></span></font></pre><pre
style='-qt-paragraph-type:empty;-qt-block-indent:0'><font size=2
face="Courier New"><span style='font-size:10.0pt'> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach ( QString str, account.linkedDetailUris()) qDebug() &lt;&lt; &quot;&gt;&gt; LinkedDetailUri: &quot; &lt;&lt; str;<o:p></o:p></span></font></pre><pre
style='-qt-paragraph-type:empty;-qt-block-indent:0'><font size=2
face="Courier New"><span style='font-size:10.0pt'> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach ( QString str, account.subTypes()) qDebug() &lt;&lt; &quot;&gt;&gt; SubType: &quot; &lt;&lt; str;<o:p></o:p></span></font></pre><pre
style='-qt-paragraph-type:empty;-qt-block-indent:0'><font size=2 color=red
face="Courier New"><span style='font-size:10.0pt;color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></font></pre><pre><font
size=2 color=red face="Courier New"><span style='font-size:10.0pt;color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // how do I get the QContactPresence detail?<o:p></o:p></span></font></pre><pre><font
size=2 color=red face="Courier New"><span style='font-size:10.0pt;color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // &#8230;<o:p></o:p></span></font></pre><pre><font
size=2 color=red face="Courier New"><span style='font-size:10.0pt;color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QContactPresence presence;<o:p></o:p></span></font></pre><pre><font
size=2 color=red face="Courier New"><span style='font-size:10.0pt;color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qDebug() &lt;&lt; &quot;Presence: &quot; &lt;&lt; presence.presenceState();<o:p></o:p></span></font></pre><pre
style='-qt-block-indent:0'><font size=2 face="Courier New"><span
style='font-size:10.0pt'>&nbsp;&nbsp; &nbsp;}<o:p></o:p></span></font></pre><pre><font size=2
face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>The linkDetailUris, capabilities, contexts
and subtypes seem to always be empty for my contacts. Is there a way to check to
check for the contact manager if the field is supported? Just to make sure to
not expect for it&#8230; <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks again<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Felipe<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Antonio Aloisio
[mailto:antonio.aloisio@gmail.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, May 28, 2010 9:46 AM<br>
<b><span style='font-weight:bold'>To:</span></b> Felipe Crochik<br>
<b><span style='font-weight:bold'>Cc:</span></b> maemo-developers@maemo.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: QtMobility Contacts</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hi Felipe,<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>1. I am using the QContactDetailFilter to get a list of contacts on the
n900<br>
and it takes &quot;very&quot; long compared to the standard address book and
uses up<br>
all the cpu. I don't have too many contacts on my address book (about 300).<br>
It does not seem to matter the match criteria and/or the number of records<br>
that actually get filtered (it takes about the same time to get all records<br>
or just one). Any similar experiences? Any way to improve on it?<o:p></o:p></span></font></p>

</blockquote>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>It's slow and it takes very long time because it convert every OSSO
ABook contact to<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>QContact then it applies the filters.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Native filtering is not complete so it's turned off.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>2. Is it possible to get the contact presence status using QtMobility?
By<br>
what I found you need to get the QContactOnlineAccountand then supposedly<br>
you would find the QContactPresence using linkedDetailUris on<br>
QContactOnlineAccount but linkedDetailUris does not return any strings. The<br>
contact manager does not seem to support the QContactGlobalPresence detail.<br>
Am I doing anything wrong? How can I find out if the user is online on skype<br>
for example?<o:p></o:p></span></font></p>

</blockquote>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;If the contact has not been added manually from the user, the
QContactPresence::FieldPresenceState field should contains the presence status.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;The&nbsp;QContactGlobalPresence is not yet supported.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Regards,<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Antonio<o:p></o:p></span></font></p>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>_______________________________________________<br>
maemo-developers mailing list<br>
<a href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a><br>
<a href="https://lists.maemo.org/mailman/listinfo/maemo-developers"
target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><o:p></o:p></span></font></p>

</blockquote>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</div>

</body>

</html>