WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIToolkitProfileService

IID:9b434f48-438c-4f85-89de-b7f321a45341
Inherits From:nsISupports

This interface is intended to be used as a service.


Properties

readonly PRUint32 profileCount

Returns the number of profiles.

readonly nsISimpleEnumerator profiles

nsIToolkitProfile selectedProfile

PRBool startOffline

PRBool startWithLastProfile


Methods

nsIToolkitProfile createProfile ( nsILocalFile rootDir , nsILocalFile tempDir , AUTF8String name ) void flush ( ) nsIToolkitProfile getProfileByName ( AUTF8String name ) nsIProfileLock lockProfilePath ( nsILocalFile directory , nsILocalFile tempDirectory )

nsIToolkitProfile createProfile ( nsILocalFile rootDir , nsILocalFile tempDir , AUTF8String name )

Create a new profile.

Arguments:
rootDir: The profile directory. May be null, in which case a suitable default will be chosen based on the profile name.
tempDir: The profile temporary directory. May be null, in which case a suitable default will be chosen based either on the profile name if rootDir is null or rootDir itself.
name: The profile name.

void flush ( )

Flush the profiles list file.


nsIToolkitProfile getProfileByName ( AUTF8String name )

Get a profile by name. This is mainly for use by the -P commandline flag.

Arguments:
name: The profile name to find.

nsIProfileLock lockProfilePath ( nsILocalFile directory , nsILocalFile tempDirectory )

Lock an arbitrary path as a profile. If the path does not exist, it will be created and the defaults copied from the application directory.

Arguments:
directory
tempDirectory

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com