WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIAbMDBDirectory

IID:12d379c8-d4e5-41ea-91bb-7bb51d728164
Inherits From:nsISupports

Properties

readonly nsIAddrDatabase database

Supplies a nsIAddrDatabase that uses the databaseFile. See also databaseFile for possible exceptions.

readonly nsILocalFile databaseFile

Supplies a nsILocalFile point to the database file for this directory

PRUint32 dbRowID


Methods

void addAddressToList ( nsIAbCard card ) nsIAbDirectory addDirectory ( char* uriName ) void addMailListToDirectory ( nsIAbDirectory mailList ) nsIAbCard cardForEmailAddress ( AUTF8String emailAddress ) [noscript] void clearDatabase ( ) void copyDBMailList ( nsIAbMDBDirectory srcListDB ) char* getDirUri ( ) [noscript] void notifyDirItemAdded ( nsISupports item ) [noscript] void removeElementsFromAddressList ( ) void removeEmailAddressAt ( PRUint32 index )

void addAddressToList ( nsIAbCard card )

Arguments:
card

nsIAbDirectory addDirectory ( char* uriName )

Arguments:
uriName

void addMailListToDirectory ( nsIAbDirectory mailList )

Arguments:
mailList

nsIAbCard cardForEmailAddress ( AUTF8String emailAddress )

Returns the address card for the specified email address if found.

Arguments:
emailAddress: The email address to find in either the primary or secondary email address fields. If email address is empty, the database won't be searched and the function will return as if no card was found.
Returns:
nsIAbCard if one was found, else returns NULL.

void clearDatabase ( )


void copyDBMailList ( nsIAbMDBDirectory srcListDB )

Arguments:
srcListDB

char* getDirUri ( )


void notifyDirItemAdded ( nsISupports item )

Arguments:
item

void removeElementsFromAddressList ( )


void removeEmailAddressAt ( PRUint32 index )

Arguments:
index

References

This interface is passed as an argument to the following methods:

nsIAbMDBDirectory.copyDBMailList

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com