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.

@mozilla.org/browser/nav-bookmarks-service;1

This component implements the following interfaces:

Constants

This value should be used for APIs that allow passing in an index where an index is not known, or not required to be specified. e.g.: When appending an item to a folder.
PRInt16 nsINavBookmarksService.DEFAULT_INDEX = -1
PRUint16 nsINavBookmarksService.TYPE_BOOKMARK = 1
PRUint16 nsINavBookmarksService.TYPE_FOLDER = 2
PRUint16 nsINavBookmarksService.TYPE_SEPARATOR = 3
PRUint16 nsINavBookmarksService.TYPE_DYNAMIC_CONTAINER = 4
A page has had some attribute on it changed. Note that for TYPED and HIDDEN, the page may not necessarily have been added yet.
PRUint32 nsINavHistoryObserver.ATTRIBUTE_FAVICON = 3

Properties

readonly PRInt64 nsINavBookmarksService.bookmarksMenuFolder

The item ID of the bookmarks menu folder.

readonly PRInt64 nsINavBookmarksService.placesRoot

The item ID of the Places root.

readonly PRInt64 nsINavBookmarksService.tagsFolder

The item ID of the top-level folder that contain the tag "folders".

readonly PRInt64 nsINavBookmarksService.toolbarFolder

The item ID of the personal toolbar folder.

readonly PRInt64 nsINavBookmarksService.unfiledBookmarksFolder

The item ID of the unfiled-bookmarks folder.

Methods

InterfaceMethod
nsINavBookmarksService void addObserver ( nsINavBookmarkObserver observer , PRBool ownsWeak )
nsINavBookmarksService void changeBookmarkURI ( PRInt64 itemId , nsIURI newURI )
nsINavBookmarksService PRInt64 createDynamicContainer ( PRInt64 parentFolder , AUTF8String name , AString contractId , PRInt32 index )
nsINavBookmarksService PRInt64 createFolder ( PRInt64 parentFolder , AUTF8String name , PRInt32 index )
nsINavBookmarksService nsIURI getBookmarkedURIFor ( nsIURI URI )
nsINavBookmarksService void getBookmarkIdsForURI ( nsIURI URI , out PRUint32 count , out arrayof PRInt64 bookmarks )
nsINavBookmarksService [noscript] void getBookmarkIdsForURITArray ( nsIURI URI , PRInt64Array* result )
nsINavBookmarksService nsIURI getBookmarkURI ( PRInt64 itemId )
nsINavBookmarksService PRInt64 getChildFolder ( PRInt64 folder , AString subFolder )
nsINavBookmarksService PRInt64 getFolderIdForItem ( PRInt64 itemId )
nsINavBookmarksService PRBool getFolderReadonly ( PRInt64 folder )
nsINavBookmarksService PRTime getItemDateAdded ( PRInt64 itemId )
nsINavBookmarksService AString getItemGUID ( PRInt64 itemId )
nsINavBookmarksService PRInt64 getItemIdForGUID ( AString GUID )
nsINavBookmarksService PRInt32 getItemIndex ( PRInt64 itemId )
nsINavBookmarksService PRTime getItemLastModified ( PRInt64 itemId )
nsINavBookmarksService AUTF8String getItemTitle ( PRInt64 itemId )
nsINavBookmarksService PRUint16 getItemType ( PRInt64 itemId )
nsINavBookmarksService AString getKeywordForBookmark ( PRInt64 itemId )
nsINavBookmarksService AString getKeywordForURI ( nsIURI URI )
nsINavBookmarksService nsITransaction getRemoveFolderTransaction ( PRInt64 folder )
nsINavBookmarksService nsIURI getURIForKeyword ( AString keyword )
nsINavBookmarksService PRInt64 insertBookmark ( PRInt64 parentFolder , nsIURI URI , PRInt32 index , AUTF8String title )
nsINavBookmarksService PRInt64 insertSeparator ( PRInt64 folder , PRInt32 index )
nsINavBookmarksService PRBool isBookmarked ( nsIURI URI )
nsINavBookmarksService void moveItem ( PRInt64 folder , PRInt64 newParent , PRInt32 index )
nsINavHistoryObserver void onBeginUpdateBatch ( )
nsINavHistoryObserver void onClearHistory ( )
nsINavHistoryObserver void onDeleteURI ( nsIURI URI )
nsINavHistoryObserver void onEndUpdateBatch ( )
nsIAnnotationObserver void onItemAnnotationRemoved ( PRInt64 itemId , AUTF8String name )
nsIAnnotationObserver void onItemAnnotationSet ( PRInt64 itemId , AUTF8String name )
nsIAnnotationObserver void onPageAnnotationRemoved ( nsIURI URI , AUTF8String name )
nsIAnnotationObserver void onPageAnnotationSet ( nsIURI page , AUTF8String name )
nsINavHistoryObserver void onPageChanged ( nsIURI URI , PRUint32 what , AString value )
nsINavHistoryObserver void onPageExpired ( nsIURI URI , PRTime visitTime , PRBool wholeEntry )
nsINavHistoryObserver void onTitleChanged ( nsIURI URI , AString pageTitle )
nsINavHistoryObserver void onVisit ( nsIURI URI , PRInt64 visitID , PRTime time , PRInt64 sessionID , PRInt64 referringID , PRUint32 transitionType )
nsINavBookmarksService void removeChildAt ( PRInt64 folder , PRInt32 index )
nsINavBookmarksService void removeFolder ( PRInt64 folder )
nsINavBookmarksService void removeFolderChildren ( PRInt64 folder )
nsINavBookmarksService void removeItem ( PRInt64 itemId )
nsINavBookmarksService void removeObserver ( nsINavBookmarkObserver observer )
nsINavBookmarksService void runInBatchMode ( nsINavHistoryBatchCallback callback , nsISupports userData )
nsINavBookmarksService void setFolderReadonly ( PRInt64 folder , PRBool readOnly )
nsINavBookmarksService void setItemDateAdded ( PRInt64 itemId , PRTime dateAdded )
nsINavBookmarksService void setItemGUID ( PRInt64 itemId , AString GUID )
nsINavBookmarksService void setItemIndex ( PRInt64 itemId , PRInt32 newIndex )
nsINavBookmarksService void setItemLastModified ( PRInt64 itemId , PRTime lastModified )
nsINavBookmarksService void setItemTitle ( PRInt64 itemId , AUTF8String title )
nsINavBookmarksService void setKeywordForBookmark ( PRInt64 itemId , AString keyword )

Reference documentation is generated from Mozilla's source.