Interface nsIToolkitProfileType

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!

Hierarchy

Properties

localDir: nsIFile

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

name: string

The name of the profile.

rootDir: nsIFile

The location of the profile directory.

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • Lock this profile using platform-specific locking methods.

    Returns

    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.

    Parameters

    • aUnlocker: nsIProfileUnlocker

    Returns nsIProfileLock

  • Removes the profile from the registry of profiles.

    Parameters

    • removeFiles: boolean

      Indicates whether or not the profile directory should be removed in addition.

    Returns void

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

    Parameters

    • removeFiles: boolean

      Indicates whether or not the profile directory should be removed in addition.

    Returns void

Generated using TypeDoc