Dan Mosedale wrote:

> Paul Sandoz <[EMAIL PROTECTED]> writes:
> >
> >       One thing i am having touble understanding
> >       is the relationship between the LDAP RDF datasource
> >       and the nsIAbDirectory and nsIAbCard interfaces
> >       and implementations of.
>
> Thus far, I've been mostly focussing on the autocomplete stuff and so
> unfortunately don't have as good of a handle on the rest of the
> addressbook.  Perhaps Candice Huang, whom I've CCed on this note, can
> comment a little more on the use of RDF inside the addressbook code
> and what directions she thinks might work...

The implementations of nsIAbCard is naAbCardProperty,  holding all attributes for a
personal card or a mailing list card and apis to get card info from mork database.
The implementations of nsIAbDirectory is nsAbDirProperty,  holding all attributes for
a personal address book or a mailing list.   The address books are saved in user's
prefs.js.   Mailing lists are established when we getting the mailing list card from
mork.

The RDF datasource implementations are nsAbRDFDataSource, nsCardDataSource and
nsDirectoryDataSource.   The RDF resource implementations are nsAbRDFResources.
nsAbDirectory  is inherited from both nsAbRDFResources and naAbDirProperty which
getting address book or mailing list  into the tree datasource.   nsAbCard is
inherited from both nsAbRDFResources and naAbCardProperty which getting a person card
or a mailing list card info into the tree datasource .


>
>
> >       I am in a bit of a dimlemma as to whether this
> >       is the correct way to go forward. The refactoring
> >       certianly makes it easier for *us* to implement new
> >       address sources and to allow for a singular star SDBC
> >       component to use the general interfaces in the
> >       knowledge it only has to use RDF resources and
> >       no RDF datasources.
>
> I'd be interested in hearing Candice's comments on this.  Candice?
>

I don't know much on RDF,  the way address book is implemented as the UI using RDF
datasource getting the all data from RDF resources.  I'm not sure how this would work
if just getting it from resource.   Maybe I need more detail on this.

Candice


Reply via email to