Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
imgICache Interface Reference

imgICache interface More...

import "imgICache.idl";

Inheritance diagram for imgICache:
Inheritance graph
[legend]
Collaboration diagram for imgICache:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void clearCache (in boolean chrome)
 Evict images from the cache.
void removeEntry (in nsIURI uri)
 Evict images from the cache.
nsIProperties findEntryProperties (in nsIURI uri)
 Find Properties Used to get properties such as 'type' and 'content-disposition' 'type' is a nsISupportsCString containing the images' mime type such as 'image/png' 'content-disposition' will be a nsISupportsCString containing the header If you call this before any data has been loaded from a URI, it will succeed, but come back empty.

Detailed Description

imgICache interface

Author:
Stuart Parmenter pavlo.nosp@m.v@ne.nosp@m.tscap.nosp@m.e.co.nosp@m.m
Version:
0.1
See also:
imagelib2

Definition at line 54 of file imgICache.idl.


Member Function Documentation

Evict images from the cache.

Parameters:
chromeIf TRUE, evict only chrome images. If FALSE, evict everything except chrome images.

Find Properties Used to get properties such as 'type' and 'content-disposition' 'type' is a nsISupportsCString containing the images' mime type such as 'image/png' 'content-disposition' will be a nsISupportsCString containing the header If you call this before any data has been loaded from a URI, it will succeed, but come back empty.

Parameters:
uriThe URI to look up.
Returns:
NULL if the URL was not found in the cache

Evict images from the cache.

Parameters:
uriThe URI to remove.
Returns:
NS_OK if uri was removed from the cache. NS_ERROR_NOT_AVAILABLE if uri was unable to be removed from the cache.

The documentation for this interface was generated from the following file: