Struct xpcom::interfaces::nsIRelativeFilePref [] [src]

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

interface nsIRelativeFilePref : nsISupports

/**
 * The nsIRelativeFilePref interface is a wrapper for an nsIFile and
 * and a directory service key. When used as a pref value, it stores a
 * relative path to the file from the location pointed to by the directory
 * service key. The path has the same syntax across all platforms.
 *
 * @see nsIPrefBranch::getComplexValue
 * @see nsIPrefBranch::setComplexValue
 *
 */

Methods

impl nsIRelativeFilePref
[src]

[src]

Cast this nsIRelativeFilePref to one of its base interfaces.

impl nsIRelativeFilePref
[src]

[src]

/**
   * file
   *
   * The file whose location is stored or retrieved.
   */

attribute nsIFile file;

[src]

/**
   * file
   *
   * The file whose location is stored or retrieved.
   */

attribute nsIFile file;

[src]

/**
   * relativeToKey
   *
   * A directory service key for the directory
   * from which the file path is relative.
   */

attribute ACString relativeToKey;

[src]

/**
   * relativeToKey
   *
   * A directory service key for the directory
   * from which the file path is relative.
   */

attribute ACString relativeToKey;

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

IID: nsIID = nsID(798457166, 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 nsIRelativeFilePref
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIRelativeFilePref
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.