Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIAddrDatabase Interface Reference

import "nsIAddrDatabase.idl";

Inheritance diagram for nsIAddrDatabase:
Inheritance graph
[legend]
Collaboration diagram for nsIAddrDatabase:
Collaboration graph
[legend]

List of all members.

Public Member Functions

nsIAddrDatabase open (in nsIFile dbFile, in boolean create, in boolean upgrading)
void close (in boolean forceCommit)
void openMDB (in nsFileSpec dbName, in boolean create)
void closeMDB (in boolean commit)
void commit (in unsigned long commitType)
void forceClosed ()
void createNewCardAndAddToDB (in nsIAbCard newCard, in boolean aNotify)
void createNewCardAndAddToDBWithKey (in nsIAbCard newCard, in boolean aNotify, out unsigned long key)
void createNewListCardAndAddToDB (in nsIAbDirectory list, in unsigned long listRowID, in nsIAbCard newCard, in boolean aNotify)
void createMailListAndAddToDB (in nsIAbDirectory newList, in boolean aNotify)
void createMailListAndAddToDBWithKey (in nsIAbDirectory newList, in boolean aNotify, out PRUint32 key)
nsIEnumerator enumerateCards (in nsIAbDirectory directory)
nsIEnumerator enumerateListAddresses (in nsIAbDirectory directory)
void getMailingListsFromDB (in nsIAbDirectory parentDir)
void deleteCard (in nsIAbCard card, in boolean aNotify)
void editCard (in nsIAbCard card, in boolean aNotify)
boolean containsCard (in nsIAbCard card)
void deleteMailList (in nsIAbDirectory mailList, in boolean aNotify)
void editMailList (in nsIAbDirectory mailList, in nsIAbCard listCard, in boolean aNotify)
boolean containsMailList (in nsIAbDirectory mailList)
void deleteCardFromMailList (in nsIAbDirectory mailList, in nsIAbCard card, in boolean aNotify)
nsIAbCard getCardFromAttribute (in nsIAbDirectory directory, in string aName, in string aUTF8Value, in boolean caseInsensitive)
 aUTF8Value needs to be in UTF-8
PRBool findMailListbyUnicodeName (in wstring listName)
void getCardCount (out PRUint32 count)
void addCardRowToDB (in nsIMdbRow newRow)
void addLdifListMember (in nsIMdbRow row, in string value)
void addFirstName (in nsIMdbRow row, in string value)
void addLastName (in nsIMdbRow row, in string value)
void addPhoneticFirstName (in nsIMdbRow row, in string value)
void addPhoneticLastName (in nsIMdbRow row, in string value)
void addDisplayName (in nsIMdbRow row, in string value)
void addNickName (in nsIMdbRow row, in string value)
void addPrimaryEmail (in nsIMdbRow row, in string value)
void add2ndEmail (in nsIMdbRow row, in string value)
void addDefaultEmail (in nsIMdbRow row, in string value)
void addCardType (in nsIMdbRow row, in string value)
void addWorkPhone (in nsIMdbRow row, in string value)
void addHomePhone (in nsIMdbRow row, in string value)
void addFaxNumber (in nsIMdbRow row, in string value)
void addPagerNumber (in nsIMdbRow row, in string value)
void addCellularNumber (in nsIMdbRow row, in string value)
void addWorkPhoneType (in nsIMdbRow row, in string value)
void addHomePhoneType (in nsIMdbRow row, in string value)
void addFaxNumberType (in nsIMdbRow row, in string value)
void addPagerNumberType (in nsIMdbRow row, in string value)
void addCellularNumberType (in nsIMdbRow row, in string value)
void addHomeAddress (in nsIMdbRow row, in string value)
void addHomeAddress2 (in nsIMdbRow row, in string value)
void addHomeCity (in nsIMdbRow row, in string value)
void addHomeState (in nsIMdbRow row, in string value)
void addHomeZipCode (in nsIMdbRow row, in string value)
void addHomeCountry (in nsIMdbRow row, in string value)
void addWorkAddress (in nsIMdbRow row, in string value)
void addWorkAddress2 (in nsIMdbRow row, in string value)
void addWorkCity (in nsIMdbRow row, in string value)
void addWorkState (in nsIMdbRow row, in string value)
void addWorkZipCode (in nsIMdbRow row, in string value)
void addWorkCountry (in nsIMdbRow row, in string value)
void addJobTitle (in nsIMdbRow row, in string value)
void addDepartment (in nsIMdbRow row, in string value)
void addCompany (in nsIMdbRow row, in string value)
void addAimScreenName (in nsIMdbRow row, in string value)
void addAnniversaryYear (in nsIMdbRow row, in string value)
void addAnniversaryMonth (in nsIMdbRow row, in string value)
void addAnniversaryDay (in nsIMdbRow row, in string value)
void addSpouseName (in nsIMdbRow row, in string value)
void addFamilyName (in nsIMdbRow row, in string value)
void addDefaultAddress (in nsIMdbRow row, in string value)
void addCategory (in nsIMdbRow row, in string value)
void addWebPage1 (in nsIMdbRow row, in string value)
void addWebPage2 (in nsIMdbRow row, in string value)
void addBirthYear (in nsIMdbRow row, in string value)
void addBirthMonth (in nsIMdbRow row, in string value)
void addBirthDay (in nsIMdbRow row, in string value)
void addCustom1 (in nsIMdbRow row, in string value)
void addCustom2 (in nsIMdbRow row, in string value)
void addCustom3 (in nsIMdbRow row, in string value)
void addCustom4 (in nsIMdbRow row, in string value)
void addNotes (in nsIMdbRow row, in string value)
void addPreferMailFormat (in nsIMdbRow row, in unsigned long value)
void addPopularityIndex (in nsIMdbRow row, in unsigned long value)
void addAllowRemoteContent (in nsIMdbRow row, in boolean value)
void addListName (in nsIMdbRow row, in string value)
void addListNickName (in nsIMdbRow row, in string value)
void addListDescription (in nsIMdbRow row, in string value)
void addListDirNode (in nsIMdbRow listRow)
void setCardValue (in nsIAbCard card, in string name, in wstring value, in boolean notify)
 use for getting and setting generic string attributes like _AimScreenName
wstring getCardValue (in nsIAbCard card, in string name)
void getDeletedCardList (out unsigned long aCount, out nsISupportsArray aDeletedList)
void getDeletedCardCount (out unsigned long count)
void addRowValue (in nsIMdbRow aRow, in ACString aLDIFAttributeName, in AString aColValue)
 used for adding a string attributes to a row.
void AddListCardColumnsToRow (in nsIAbCard aPCard, in nsIMdbRow aPListRow, in unsigned long aPos, out nsIAbCard aPNewCard, in boolean aInMailingList)
void InitCardFromRow (in nsIAbCard aNewCard, in nsIMdbRow aCardRow)
void SetListAddressTotal (in nsIMdbRow aListRow, in PRUint32 aTotal)
nsIMdbRow FindRowByCard (in nsIAbCard aCard)
void addListener (in nsIAddrDBListener listener)
void removeListener (in nsIAddrDBListener listener)
void notifyCardAttribChange (in unsigned long abCode)
void notifyCardEntryChange (in unsigned long abCode, in nsIAbCard card)
void notifyAnnouncerGoingAway ()

Public Attributes

attribute nsFileSpec dbPath
readonly attribute wstring directoryName
readonly attribute nsIMdbRow newRow
readonly attribute nsIMdbRow newListRow

Detailed Description

Definition at line 143 of file nsIAddrDatabase.idl.


Member Function Documentation

void nsIAddrDatabase::AddListCardColumnsToRow ( in nsIAbCard  aPCard,
in nsIMdbRow  aPListRow,
in unsigned long  aPos,
out nsIAbCard  aPNewCard,
in boolean  aInMailingList 
)

Here is the caller graph for this function:

void nsIAddrDatabase::addRowValue ( in nsIMdbRow  aRow,
in ACString  aLDIFAttributeName,
in AString  aColValue 
)

used for adding a string attributes to a row.

used during LDIF and addressbook import.

Parameters:
aRowThe row we're adding the column to
aLDIFAttributeNameThe column name (examples: mozillaCategory, mozilla_AimScreenName)
aColValueThe column value (example: jabroni316)
void nsIAddrDatabase::commit ( in unsigned long  commitType)
void nsIAddrDatabase::createNewCardAndAddToDBWithKey ( in nsIAbCard  newCard,
in boolean  aNotify,
out unsigned long  key 
)
void nsIAddrDatabase::createNewListCardAndAddToDB ( in nsIAbDirectory  list,
in unsigned long  listRowID,
in nsIAbCard  newCard,
in boolean  aNotify 
)
void nsIAddrDatabase::editMailList ( in nsIAbDirectory  mailList,
in nsIAbCard  listCard,
in boolean  aNotify 
)

Here is the caller graph for this function:

nsIAbCard nsIAddrDatabase::getCardFromAttribute ( in nsIAbDirectory  directory,
in string  aName,
in string  aUTF8Value,
in boolean  caseInsensitive 
)

aUTF8Value needs to be in UTF-8

wstring nsIAddrDatabase::getCardValue ( in nsIAbCard  card,
in string  name 
)
void nsIAddrDatabase::getDeletedCardList ( out unsigned long  aCount,
out nsISupportsArray  aDeletedList 
)

Here is the caller graph for this function:

void nsIAddrDBAnnouncer::notifyCardAttribChange ( in unsigned long  abCode) [inherited]
void nsIAddrDBAnnouncer::notifyCardEntryChange ( in unsigned long  abCode,
in nsIAbCard  card 
) [inherited]
nsIAddrDatabase nsIAddrDatabase::open ( in nsIFile  dbFile,
in boolean  create,
in boolean  upgrading 
)
void nsIAddrDatabase::setCardValue ( in nsIAbCard  card,
in string  name,
in wstring  value,
in boolean  notify 
)

use for getting and setting generic string attributes like _AimScreenName

Here is the caller graph for this function:


Member Data Documentation

Definition at line 145 of file nsIAddrDatabase.idl.

Definition at line 170 of file nsIAddrDatabase.idl.

Definition at line 182 of file nsIAddrDatabase.idl.

Definition at line 181 of file nsIAddrDatabase.idl.


The documentation for this interface was generated from the following file: