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.

nsIPlacesImportExportService

IID:21c00314-fa63-11db-8314-0800200c9a66
Inherits From:nsISupports

The PlacesImportExport interface provides methods for importing and exporting Places data.

This interface is implemented by the following components:


Methods

void backupBookmarksFile ( ) void exportHTMLToFile ( nsILocalFile file ) void importHTMLFromFile ( nsILocalFile file , PRBool isInitialImport ) void importHTMLFromFileToFolder ( nsILocalFile file , PRInt64 folder , PRBool isInitialImport )

void backupBookmarksFile ( )

Backup and archive the bookmarks.html file.


void exportHTMLToFile ( nsILocalFile file )

Saves the current bookmarks hierarchy to a bookmarks.html file.

Arguments:
file

void importHTMLFromFile ( nsILocalFile file , PRBool isInitialImport )

Loads the given bookmarks.html file and replaces it with the current bookmarks hierarchy (if isInitialImport is true) or appends it (if isInitialImport is false)

Arguments:
file
isInitialImport

void importHTMLFromFileToFolder ( nsILocalFile file , PRInt64 folder , PRBool isInitialImport )

Loads the given bookmarks.html file and puts it in the given folder

Arguments:
file
folder
isInitialImport

Reference documentation is generated from Mozilla's source.