Struct xpcom::interfaces::nsIDirectoryServiceProvider2 [] [src]

#[repr(C)]
pub struct nsIDirectoryServiceProvider2 { /* fields omitted */ }

interface nsIDirectoryServiceProvider2 : nsIDirectoryServiceProvider

/**
 * nsIDirectoryServiceProvider2
 *
 * An extension of nsIDirectoryServiceProvider which allows
 * multiple files to be returned for the given key.
 */

Methods

impl nsIDirectoryServiceProvider2
[src]

[src]

Cast this nsIDirectoryServiceProvider2 to one of its base interfaces.

impl nsIDirectoryServiceProvider2
[src]

[src]

/**
  * getFiles
  *
  * Directory Service calls this when it gets a request for
  * a prop and the requested type is nsISimpleEnumerator.
  *
  * @param prop         The symbolic name of the file list.
  *
  * @return             An enumerator for a list of file locations.
  *                     The elements in the enumeration are nsIFile
  * @returnCode         NS_SUCCESS_AGGREGATE_RESULT if this result should be
  *                     aggregated with other "lower" providers.
  */

nsISimpleEnumerator getFiles (in string prop);

Methods from Deref<Target = nsIDirectoryServiceProvider>

[src]

Cast this nsIDirectoryServiceProvider to one of its base interfaces.

[src]

/**
  * getFile
  *
  * Directory Service calls this when it gets the first request for
  * a prop or on every request if the prop is not persistent.
  *
  * @param prop         The symbolic name of the file.
  * @param persistent   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.
  *
  * @return             The file represented by the property.
  *
  */

nsIFile getFile (in string prop, out boolean persistent);

Trait Implementations

impl XpCom for nsIDirectoryServiceProvider2
[src]

IID: nsIID = nsID(798457163, 21637, 4564, [135, 226, 0, 16, 164, 231, 94, 242])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIDirectoryServiceProvider2
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDirectoryServiceProvider2
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.