nsISupports
Last changed in Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0)Implemented by: @mozilla.org/browser/livemark-service;2
. To use this service, use:
var livemarkService = Components.classes["@mozilla.org/browser/livemark-service;2"] .getService(Components.interfaces.nsILivemarkService);
long long createLivemark(in long long folder, in AString name, in nsIURI siteURI, in nsIURI feedURI, in long index); |
long long createLivemarkFolderOnly(in long long folder, in AString name, in nsIURI siteURI, in nsIURI feedURI, in long index); |
nsIURI getFeedURI(in long long container); |
long long getLivemarkIdForFeedURI(in nsIURI aFeedURI); |
nsIURI getSiteURI(in long long container); |
boolean isLivemark(in long long folder); |
void reloadAllLivemarks(); |
void reloadLivemarkFolder(in long long folderID); |
void setFeedURI(in long long container, in nsIURI feedURI); |
void setSiteURI(in long long container, in nsIURI siteURI); |
void start(); |
void stopUpdateLivemarks(); |
Creates a new livemark.
long long createLivemark( in long long folder, in AString name, in nsIURI siteURI, in nsIURI feedURI, in long index );
folder
name
siteURI
feedURI
index
-1
to append to the end of the list.The ID of the folder for the livemark.
This method also creates a new livemark but use this method during startup to avoid HTTP traffic.
long long createLivemarkFolderOnly( in long long folder, in AString name, in nsIURI siteURI, in nsIURI feedURI, in long index );
folder
name
siteURI
feedURI
index
-1
to append to the end of the list.Returns the ID of the folder for the livemark.
This method retrieves the URI of the syndication feed associated with a livemark container.
nsIURI getFeedURI( in long long container );
container
A nsIURI
representing the URI of the feed; if the livemark container doesn't have a valid feed URI, null
will be returned or the nsIURI
object returned will be the empty string.
NS_ERROR_INVALID_ARG
NS_ERROR_MALFORMED_URI
nsIURI
)Determines whether the feed URI is a currently registered livemark.
long long getLivemarkIdForFeedURI( in nsIURI aFeedURI );
aFeedURI
The ID of the livemark.
This method retrieves the URI of the website associated with a livemark container.
nsIURI getSiteURI( in long long container );
container
A nsIURI
representing the URI of the website; if the livemark container doesn't have a valid site URI, null
will be returned.
NS_ERROR_INVALID_ARG
NS_ERROR_MALFORMED_URI
nsIURI
)This method determines whether the folder with the given folder ID identifies a livemark container.
boolean isLivemark( in long long folder );
folder
true
if the given folder is a livemark folder, otherwise it returns false
.
NS_ERROR_INVALID_ARG
This method reloads all livemark subscriptions, whether or not they have expired.
void reloadAllLivemarks();
None.
This method reloads the livemark with this folder ID, whether or not it's expired.
void reloadLivemarkFolder( in long long folderID );
folderID
This method sets the URI of the feed associated with a livemark container.
void setFeedURI( in long long container, in nsIURI feedURI );
container
feedURI
nsIURI
object representing the syndication feed URI.NS_ERROR_INVALID_ARG
feedURI
parameter isn't a valid nsIURI
object.This method sets the URI of the website associated with a livemark container.
void setSiteURI( in long long container, in nsIURI siteURI );
container
siteURI
nsIURI
object representing the site URI, or null
to clear the site URI for this livemark container.NS_ERROR_INVALID_ARG
nsIURI
object (or null
)This method starts the livemark refresh timer. Being able to manually control this allows activity such as bookmarks import to occur without kicking off HTTP traffic.
void start();
None.
Stop the livemark refresh timer.
void stopUpdateLivemarks();
None.