Public Member Functions

imgICache Interface Reference

imgICache interface More...

import "imgICache.idl";

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 <pavlov@netscape.com>
Version:
0.1
See also:
imagelib2

Member Function Documentation

void imgICache::clearCache ( in boolean  chrome  ) 

Evict images from the cache.

Parameters:
chrome If TRUE, evict only chrome images. If FALSE, evict everything except chrome images.
nsIProperties imgICache::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.

Parameters:
uri The URI to look up.
Returns:
NULL if the URL was not found in the cache
void imgICache::removeEntry ( in nsIURI  uri  ) 

Evict images from the cache.

Parameters:
uri The 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: