mozilla

Revision 128234 of Address Book Interfaces

  • Revision slug: Address_Book_Interfaces
  • Revision title: Address Book Interfaces
  • Revision id: 128234
  • Created:
  • Creator: Standard8
  • Is current revision? No
  • Comment 127 words added

Revision Content

{{ tb_minversion_header("3") }}

nsIAbManager

nsIAbManager is an interface to the main address book manager. It is used to create/delete address book instances and provides other utility functions such as the ability to export address books and add listeners to be notified about updates to address books.

RDF Obsolescence

In Thunderbird 2.x/SeaMonkey 1.1 the RDF service was used to get the list of all address books. For Thunderbird 3/SeaMonkey 2, using the RDF interfaces should be considered obsolete, except for using as datasources for tree elements. Instead use nsIAbManager.getDirectory and nsIAbManager.directories, although these interfaces aren't finalized, they are more convenient and will be heading towards the Address Book interfaces of the future.

 

 

Revision Source

<p>{{ tb_minversion_header("3") }}</p>
<h3><span class="lang lang-en" lang="en"><span class="nowiki">nsIAbManager</span></span></h3>
<p><a class="external" href="http://mxr.mozilla.org/comm-central/source/mailnews/addrbook/public/nsIAbManager.idl" title="http://mxr.mozilla.org/comm-central/source/mailnews/addrbook/public/nsIAbManager.idl">nsIAbManager</a> is an interface to the main address book manager. It is used to create/delete address book instances and provides other utility functions such as the ability to export address books and add listeners to be notified about updates to address books.</p>
<h4>RDF Obsolescence</h4>
<p>In Thunderbird 2.x/SeaMonkey 1.1 the RDF service was used to get the list of all address books. For Thunderbird 3/SeaMonkey 2, using the RDF interfaces should be considered <strong>obsolete</strong>, except for using as datasources for tree elements. Instead use nsIAbManager.getDirectory and nsIAbManager.directories, although these interfaces aren't finalized, they are more convenient and will be heading towards the Address Book interfaces of the future.</p>
<p> </p>
<p> </p>
Revert to this revision