You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.
This interface manipulates user profiles, including methods for loading them, unloading them, and creating them. It is scriptable.
Obtains an array of existing profile names.
Syntax:void nsIProfile::getProfileList(out unsigned long length, [retval, array, size_is(length)] out wstring profileNames)
Indicates if a particular profile exists.
Syntax:boolean nsIProfile::profileExists(in wstring profileName)
Performs a "logout" by shutting down the current profile.
Syntax:void nsIProfile::shutDownCurrentProfile( in unsigned long shutDownType)
Creates a new profile. Initially this profile will be a copy of a previously existing profile.
Syntax:void nsIProfile::createNewProfile(in wstring profileName, in wstring nativeProfileDir, in wstring langcode, in boolean useExistingDir)
langcode:The language code appropriate for this profile.
TRUEuse existing profile directory.
Syntax:void nsIProfile::renameProfile(in wstring oldName, in wstring newName)
Syntax:void nsIProfile::deleteProfile(in wstring name, in boolean canDeleteFiles)
Syntax:void nsIProfile::cloneProfile(in wstring profileName)
Gets the name of the current profile.
| Written by:Ellen Evans | Comments, questions, complaints?