WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

imgICache

IID:f1b74aae-5661-4753-a21c-66dd644afebc
Inherits From:nsISupports

ImgICache interface

This interface is implemented by the following components:


Methods

void clearCache ( PRBool chrome ) nsIProperties findEntryProperties ( nsIURI uri ) void removeEntry ( nsIURI uri )

void clearCache ( PRBool chrome )

Evict images from the cache.

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

nsIProperties findEntryProperties ( 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.

Arguments:
uri: The URI to look up.

void removeEntry ( nsIURI uri )

Evict images from the cache.

Arguments:
uri: The URI to remove.
Returns:
NS_OK if \a uri was removed from the cache. NS_ERROR_NOT_AVAILABLE if \a uri was unable to be removed from the cache.

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com