Struct xpcom::interfaces::nsIToolkitProfile [] [src]

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

interface nsIToolkitProfile : nsISupports

/**
 * A interface representing a profile.
 * @note THIS INTERFACE SHOULD BE IMPLEMENTED BY THE TOOLKIT CODE ONLY! DON'T
 *       EVEN THINK ABOUT IMPLEMENTING THIS IN JAVASCRIPT!
 */

Methods

impl nsIToolkitProfile
[src]

[src]

Cast this nsIToolkitProfile to one of its base interfaces.

impl nsIToolkitProfile
[src]

[src]

/**
     * The location of the profile directory.
     */

readonly attribute nsIFile rootDir;

[src]

/**
     * The location of the profile local directory, which may be the same as
     * the root directory.  See nsIProfileLock::localDirectory.
     */

readonly attribute nsIFile localDir;

[src]

/**
     * The name of the profile.
     */

attribute AUTF8String name;

[src]

/**
     * The name of the profile.
     */

attribute AUTF8String name;

[src]

/**
     * Removes the profile from the registry of profiles.
     *
     * @param removeFiles
     *        Indicates whether or not the profile directory should be
     *        removed in addition.
     */

void remove (in boolean removeFiles);

[src]

/**
     * Removes the profile from the registry of profiles.
     * The profile directory is removed in the stream transport thread.
     */

void removeInBackground ();

[src]

/**
     * Lock this profile using platform-specific locking methods.
     *
     * @param lockFile If locking fails, this may return a lockFile object
     *                 which can be used in platform-specific ways to
     *                 determine which process has the file locked. Null
     *                 may be passed.
     * @return An interface which holds a profile lock as long as you reference
     *         it.
     * @throws NS_ERROR_FILE_ACCESS_DENIED if the profile was already locked.
     */

nsIProfileLock lock (out nsIProfileUnlocker aUnlocker);

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

IID: nsIID = nsID(1948430480, 19078, 17415, [151, 46, 117, 70, 138, 98, 83, 136])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIToolkitProfile
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.