Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
org.mozilla.xpcom.IAppFileLocProvider Interface Reference

Used by XPCOM's Directory Service to get file locations. More...

List of all members.

Public Member Functions

File getFile (String prop, boolean[] persistent)
 Directory Service calls this when it gets the first request for a property or on every request if the property is not persistent.
File[] getFiles (String prop)
 Directory Service calls this when it gets a request for a property and the requested type is nsISimpleEnumerator.

Detailed Description

Used by XPCOM's Directory Service to get file locations.

This interface is similar to nsIDirectoryServiceProvider and nsIDirectoryServiceProvider2, except that its methods use java.io.File instead of nsIFile.

See also:
Mozilla::initEmbedding
Mozilla::initXPCOM
nsIDirectoryServiceProvider
Directory Service property names

Definition at line 60 of file IAppFileLocProvider.java.


Member Function Documentation

Directory Service calls this when it gets the first request for a property or on every request if the property is not persistent.

Parameters:
propthe symbolic name of the file
persistentan array of length one used to supply the output value:
  • true - The returned file will be cached by Directory Service. Subsequent requests for this prop will bypass the provider and use the cache.
  • false - The provider will be asked for this prop each time it is requested.
Returns:
the file represented by the property

Directory Service calls this when it gets a request for a property and the requested type is nsISimpleEnumerator.

Parameters:
propthe symbolic name of the file list
Returns:
an array of file locations

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