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.

@mozilla.org/rdf/resource-factory;1?name=moz-abdirectory

This component implements the following interfaces:

Constants

PRInt32 nsIAbDirectory.opRead = 1
PRInt32 nsIAbDirectory.opWrite = 2
PRInt32 nsIAbDirectory.opSearch = 4

Properties

nsISupportsArray nsIAbDirectory.addressLists

readonly nsISimpleEnumerator nsIAbDirectory.childCards

Get the cards associated with the directory. This will return the cards associated with the mailing lists too.

readonly nsISimpleEnumerator nsIAbDirectory.childNodes

AString nsIAbDirectory.description

Description of the mailing list. This attribute is only really used when the nsIAbDirectory represents a mailing list.

AString nsIAbDirectory.dirName

The description of the directory. If this directory is not a mailing list, then setting this attribute will send round a "DirName" update via nsIAddrBookSession.

ACString nsIAbDirectory.dirPrefId

The id of the directory used in prefs e.g. "ldap_2.servers.pab" Setting this will cause directoryPrefs to be updated.

readonly PRInt32 nsIAbDirectory.dirType

readonly ACString nsIAbDirectory.fileName

PRBool nsIAbDirectory.isMailList

readonly PRBool nsIAbDirectory.isRemote

Directory is local (example, mork based) or remote (example, LDAP)

readonly PRBool nsIAbDirectory.isSecure

Directory is secure (as in LDAP over SSL)

PRUint32 nsIAbDirectory.lastModifiedDate

AString nsIAbDirectory.listNickName

Nick Name of the mailing list. This attribute is only really used when the nsIAbDirectory represents a mailing list.

readonly PRInt32 nsIAbDirectory.operations

readonly PRInt32 nsIAbDirectory.position

readonly ACString nsIAbDirectory.propertiesChromeURI

The chrome URI to use for bringing up a dialog to edit this directory. When opening the dialog, use a JS argument of {selectedDirectory: thisdir} where thisdir is this directory that you just got the chrome URI from.

readonly PRBool nsIAbDirectory.searchDuringLocalAutocomplete

Directory should be searched when doing local autocomplete

readonly PRBool nsIAbDirectory.supportsMailingLists

Does this directory support mailing lists? Note that in the case this directory is a mailing list and nested mailing lists are not supported, this will return false rather than true which the parent directory might.

readonly ACString nsIAbDirectory.URI

readonly char* nsIRDFResource.Value

The single-byte string value of the resource.

readonly AUTF8String nsIRDFResource.ValueUTF8

The UTF-8 URI of the resource.

Methods

InterfaceMethod
nsIAbDirectory nsIAbCard addCard ( nsIAbCard card )
nsIAbDirectory void addMailList ( nsIAbDirectory list )
nsIAbDirectory void copyMailList ( nsIAbDirectory srcList )
nsIAbDirectory void createDirectoryByURI ( AString displayName , ACString URI )
nsIAbDirectory ACString createNewDirectory ( AString dirName , ACString URI , PRUint32 type )
nsIAbDirectory void deleteCards ( nsIArray cards )
nsIAbDirectory void deleteDirectory ( nsIAbDirectory directory )
nsIAbDirectory void dropCard ( nsIAbCard card , PRBool needToCopyCard )
nsIAbDirectory void editMailListToDatabase ( nsIAbCard listCard )
nsIRDFNode PRBool EqualsNode ( nsIRDFNode node )
nsIRDFResource PRBool EqualsString ( char* URI )
nsIAbDirectory PRBool getBoolValue ( char* name , PRBool defaultValue )
nsIRDFResource void GetDelegate ( char* key , nsIIDRef IID , out nsQIResult* result )
nsIAbDirectory PRInt32 getIntValue ( char* name , PRInt32 defaultValue )
nsIAbDirectory AUTF8String getLocalizedStringValue ( char* name , AUTF8String defaultValue )
nsIAbDirectory ACString getStringValue ( char* name , ACString defaultValue )
nsIRDFResource [noscript] void GetValueConst ( out char* constValue )
nsIAbDirectory PRBool hasCard ( nsIAbCard cards )
nsIAbDirectory PRBool hasDirectory ( nsIAbDirectory dir )
nsIRDFResource void Init ( char* uri )
nsIAbDirectory void modifyCard ( nsIAbCard modifiedCard )
nsIRDFResource void ReleaseDelegate ( char* key )
nsIAbDirectory void setBoolValue ( char* name , PRBool value )
nsIAbDirectory void setIntValue ( char* name , PRInt32 value )
nsIAbDirectory void setStringValue ( char* name , ACString value )

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com