<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
forgot to reply-all...<br>
<br>
-------- Original Message --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" valign="BASELINE" nowrap="nowrap">Subject: </th>
<td>Re: Can I have some hints for async operation of the
address book?</td>
</tr>
<tr>
<th align="RIGHT" valign="BASELINE" nowrap="nowrap">Date: </th>
<td>Thu, 20 Jan 2011 07:07:30 -0800</td>
</tr>
<tr>
<th align="RIGHT" valign="BASELINE" nowrap="nowrap">From: </th>
<td>David Bienvenu <a class="moz-txt-link-rfc2396E" href="mailto:bienvenu@davidbienvenu.org"><bienvenu@davidbienvenu.org></a></td>
</tr>
<tr>
<th align="RIGHT" valign="BASELINE" nowrap="nowrap">Reply-To:
</th>
<td><a class="moz-txt-link-abbreviated" href="mailto:bienvenu@davidbienvenu.org">bienvenu@davidbienvenu.org</a></td>
</tr>
<tr>
<th align="RIGHT" valign="BASELINE" nowrap="nowrap">To: </th>
<td>Kent James <a class="moz-txt-link-rfc2396E" href="mailto:kent@caspia.com"><kent@caspia.com></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>On 1/19/2011 5:12 PM, Kent James wrote:
> It's not really clear to me how this is done in the code. It seems to me that selecting an abDirectory results in a sync request to enumerate. I don't see any async
> logic. Can you give me some hints of what I should be looking for?
Look at nsAbLDAPDirectory::GetChildCards - note that it issues a search. The search hits come back asynchronously and are added to the view.
For LDAP, if there's no search (i.e., quick search), it doesn't do anything, but your code could do a search of the whole AB.
- David
</pre>
</body>
</html>