2007-05-03 01:56:41 -07:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-05-03 01:56:41 -07:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2012-06-05 19:08:30 -07:00
|
|
|
interface nsIFile;
|
2010-08-10 15:15:26 -07:00
|
|
|
interface nsIURI;
|
2007-05-03 01:56:41 -07:00
|
|
|
|
|
|
|
/**
|
2012-03-23 00:15:36 -07:00
|
|
|
* The PlacesImportExport interface provides methods for exporting Places data.
|
|
|
|
* The word "Import" is in the name for legacy reasons and was kept to avoid
|
|
|
|
* disrupting potential extension code using the export part. The new importer
|
|
|
|
* lives in BookmarkHTMLUtils.jsm.
|
2007-05-03 01:56:41 -07:00
|
|
|
*/
|
|
|
|
|
2012-03-23 00:15:36 -07:00
|
|
|
[scriptable, uuid(47a4a09e-c708-4e68-b2f2-664d982ce026)]
|
2007-05-03 01:56:41 -07:00
|
|
|
interface nsIPlacesImportExportService: nsISupports
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Saves the current bookmarks hierarchy to a bookmarks.html file.
|
|
|
|
*/
|
2012-06-05 19:08:30 -07:00
|
|
|
void exportHTMLToFile(in nsIFile aFile);
|
2007-05-03 01:56:41 -07:00
|
|
|
|
|
|
|
/**
|
2008-03-20 10:49:12 -07:00
|
|
|
* Backup the bookmarks.html file.
|
2007-05-03 01:56:41 -07:00
|
|
|
*/
|
|
|
|
void backupBookmarksFile();
|
|
|
|
};
|