nsISupports
Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)Implemented by: @mozilla.org/browser/tagging-service;1
. To use this service, use:
var taggingSvc = Components.classes["@mozilla.org/browser/tagging-service;1"] .getService(Components.interfaces.nsITaggingService);
void tagURI(in nsIURI aURI, in nsIVariant aTags); |
void untagURI(in nsIURI aURI, in nsIVariant aTags); |
nsIVariant getURIsForTag(in AString aTag); |
nsIVariant getTagsForURI(in nsIURI aURI, [optional] out unsigned long length, [retval, array, size_is(length)] out wstring aTags); |
Attribute | Type | Description |
allTags |
nsIVariant |
Retrieves all tags used to tag URIs in the data-base (sorted by name). |
tagContainerIconSpec |
AUTF8String |
Retrieves the URL spec for the tag container icon |
This method tags a URI with the given set of tags. Current tags set for the URL persist. Tags in aTags
which are already set for the given URI are ignored.
void tagURI( in nsIURI aURI, in nsIVariant aTags );
aURI
aTags
This method removes tags from a URI. Tags from aTags
which are not set for the given URI are ignored.
void untagURI( in nsIURI aURI, in nsIVariant aTags );
aURI
aTags
NULL
to remove all tags from the given URI.This method retrieves all URIs tagged with the given tag.
nsIVariant getURIsForTag( in AString aTag );
aTag
Returns array of URIs tagged with aTag
.
This method retrieves all tags set for the given URI.
nsIVariant getTagsForURI( in nsIURI aURI, [optional] out unsigned long length, [retval, array, size_is(length)] out wstring aTags );
aURI
length
OptionalaTags
Returns array of tags (sorted by name).