Struct xpcom::interfaces::nsIDirectoryServiceProvider [] [src]

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

interface nsIDirectoryServiceProvider : nsISupports

/**
 * nsIDirectoryServiceProvider
 *
 * Used by Directory Service to get file locations.
 */

Methods

impl nsIDirectoryServiceProvider
[src]

[src]

Cast this nsIDirectoryServiceProvider to one of its base interfaces.

impl nsIDirectoryServiceProvider
[src]

[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);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIDirectoryServiceProvider
[src]

IID: nsIID = nsID(3153644208, 54330, 4563, [140, 194, 0, 96, 151, 146, 39, 140])

[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 nsIDirectoryServiceProvider
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDirectoryServiceProvider
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.