Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
nsEmbeddingDirProvider Class Reference
Inheritance diagram for nsEmbeddingDirProvider:
Inheritance graph
[legend]
Collaboration diagram for nsEmbeddingDirProvider:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSIDIRECTORYSERVICEPROVIDER
NS_DECL_NSIDIRECTORYSERVICEPROVIDER2 
nsEmbeddingDirProvider (nsILocalFile *aGREDir, nsILocalFile *aAppDir, nsIDirectoryServiceProvider *aAppProvider)
nsISimpleEnumerator getFiles (in string prop)
 getFiles
nsIFile getFile (in string prop, out PRBool persistent)
 getFile

Private Attributes

nsCOMPtr< nsILocalFilemGREDir
nsCOMPtr< nsILocalFilemAppDir
nsCOMPtr
< nsIDirectoryServiceProvider
mAppProvider

Detailed Description

Definition at line 56 of file nsEmbedFunctions.cpp.


Constructor & Destructor Documentation

NS_DECL_ISUPPORTS NS_DECL_NSIDIRECTORYSERVICEPROVIDER NS_DECL_NSIDIRECTORYSERVICEPROVIDER2 nsEmbeddingDirProvider::nsEmbeddingDirProvider ( nsILocalFile aGREDir,
nsILocalFile aAppDir,
nsIDirectoryServiceProvider aAppProvider 
) [inline]

Definition at line 63 of file nsEmbedFunctions.cpp.

                                                                    :
    mGREDir(aGREDir),
    mAppDir(aAppDir),
    mAppProvider(aAppProvider) { }

Member Function Documentation

nsIFile nsIDirectoryServiceProvider::getFile ( in string  prop,
out PRBool  persistent 
) [inherited]

getFile

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

Parameters:
propThe symbolic name of the file.
persistentTRUE - 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.

getFiles

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

Parameters:
propThe symbolic name of the file list.
Returns:
An enumerator for a list of file locations. The elements in the enumeration are nsIFile NS_SUCCESS_AGGREGATE_RESULT if this result should be aggregated with other "lower" providers.

Member Data Documentation

Definition at line 72 of file nsEmbedFunctions.cpp.

Definition at line 73 of file nsEmbedFunctions.cpp.

Definition at line 71 of file nsEmbedFunctions.cpp.


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