make ReadBookmarks() part of the nsIBookmarksService interface. I need this so I can call it from the profile code, so that after migration, the user has their 4.x bookmarks. one bug remains, is that when you call ReadBookmarks() more then once it should re-set the bookmarks, instead of adding to it.

This commit is contained in:
sspitzer%netscape.com 1999-09-18 19:32:40 +00:00
parent 977c45c903
commit 78f4b21b83
2 changed files with 2 additions and 2 deletions

View File

@ -27,6 +27,7 @@
[scriptable, uuid(a82e9300-e4af-11d2-8fdf-0008c70adc7b)]
interface nsIBookmarksService : nsISupports
{
void ReadBookmarks();
void AddBookmark(in string aURI, in wstring aTitle);
void UpdateBookmarkLastVisitedDate(in string aURL);
string FindShortcut(in wstring aName);

View File

@ -1283,7 +1283,6 @@ nsresult ExamineBookmarkSchedule(nsIRDFResource *theBookmark, PRBool & examineFl
nsresult GetBookmarkToPing(nsIRDFResource **theBookmark);
nsresult GetBookmarksFile(nsFileSpec* aResult);
nsresult ReadBookmarks();
nsresult WriteBookmarks(nsIRDFDataSource *ds, nsIRDFResource *root);
nsresult WriteBookmarksContainer(nsIRDFDataSource *ds, nsOutputFileStream strm, nsIRDFResource *container, PRInt32 level);
nsresult GetTextForNode(nsIRDFNode* aNode, nsString& aResult);
@ -3139,7 +3138,7 @@ nsBookmarksService::GetBookmarksFile(nsFileSpec* aResult)
return rv;
}
nsresult
NS_IMETHODIMP
nsBookmarksService::ReadBookmarks()
{
nsresult rv;