nsIToolkitProfile

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

remove(removeFiles)

Removes the profile from the registry of profiles.

Parameters

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

lock(aUnlocker)

Lock this profile using platform-specific locking methods.

Parameters

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.

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.

Attributes

rootDir

The location of the profile directory.

localDir

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

name

The name of the profile.