Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIAbLDIFService Interface Reference

import "nsIAbLDIFService.idl";

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

List of all members.

Public Member Functions

boolean isLDIFFile (in nsIFileSpec aSrc)
 Determine if a file is likely to be an LDIF file based on field names that commonly appear in LDIF files.
void importLDIFFile (in nsIAddrDatabase aDb, in nsIFileSpec aSrc, in boolean aStoreLocAsHome, inout unsigned long aProgress)
 Imports a file into the specified address book.

Detailed Description

Definition at line 44 of file nsIAbLDIFService.idl.


Member Function Documentation

void nsIAbLDIFService::importLDIFFile ( in nsIAddrDatabase  aDb,
in nsIFileSpec  aSrc,
in boolean  aStoreLocAsHome,
inout unsigned long  aProgress 
)

Imports a file into the specified address book.

Parameters:
aDbThe address book to import addresses into.
aSrcThe file to import addresses from.
aStoreLocAsHomeStores the address as a home rather than work address.
aProgressMay be null, but if a pointer is supplied, then it will be updated regularly with the current position of reading from the file.

Determine if a file is likely to be an LDIF file based on field names that commonly appear in LDIF files.

Parameters:
aSrcThe file to examine
Returns:
PR_TRUE if the file appears to be of LDIF type, PR_FALSE otherwise

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