import "nsITaggingService.idl";
Public Member Functions | |
| void | tagURI (in nsIURI aURI, in nsIVariant aTags) |
| void | untagURI (in nsIURI aURI, in nsIVariant aTags) |
| nsIVariant | getURIsForTag (in AString aTag) |
| void | getTagsForURI (in nsIURI aURI, out unsigned long length,[retval, array, size_is(length)] out wstring aTags) |
Public Attributes | |
| readonly attribute nsIVariant | allTags |
Definition at line 45 of file nsITaggingService.idl.
| void nsITaggingService::getTagsForURI | ( | in nsIURI | aURI, | |
| out unsigned long | length, | |||
| [retval, array, size_is(length)] out wstring | aTags | |||
| ) |
Retrieves all tags set for the given URL.
| aURI | a URL. |
| nsIVariant nsITaggingService::getURIsForTag | ( | in AString | aTag | ) |
Retrieves all URLs tagged with the given tag.
| aTag | tag name |
| void nsITaggingService::tagURI | ( | in nsIURI | aURI, | |
| in nsIVariant | aTags | |||
| ) |
Tags a URL with the given set of tags. Current tags set for the URL persist. Tags in aTags which are already set for the given URL are ignored.
| aURI | the URL to tag. | |
| aTags | Array of tags to set for the given URL. Each element within the array can be either a tag name or a concrete itemId of a tag container. |
| void nsITaggingService::untagURI | ( | in nsIURI | aURI, | |
| in nsIVariant | aTags | |||
| ) |
Removes tags from a URL. Tags from aTags which are not set for the given URL are ignored.
| aURI | the URL to un-tag. | |
| aTags | Array of tags to unset. pass null to remove all tags from the given url. Each element within the array can be either a tag name or a concrete itemId of a tag container. |
| readonly attribute nsIVariant nsITaggingService::allTags |
Retrieves all tags used to tag URIs in the data-base (sorted by name).
Definition at line 95 of file nsITaggingService.idl.
1.5.8