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.
nsIProfile
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)Parameters:
nsresult:
Indicates if a particular profile exists.
Syntax:
boolean nsIProfile::profileExists(in wstring profileName)Parameters:
Returns:
Performs a "logout" by shutting down the current profile.
Syntax:
void nsIProfile::shutDownCurrentProfile( in unsigned long shutDownType)Parameters:
See constants
SHUTDOWN_PERSIST
andSHUTDOWN_CLEANSE
defined below.nsresult:
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)Parameters:
langcode:
The language code appropriate for this profile.useExistingDir:
IfTRUE
use existing profile directory.
nsresult:
Syntax:
void nsIProfile::renameProfile(in wstring oldName, in wstring newName)Parameters:
nsresult:
Syntax:
void nsIProfile::deleteProfile(in wstring name, in boolean canDeleteFiles)Parameters:
nsresult:
Syntax:
void nsIProfile::cloneProfile(in wstring profileName)Parameters:
nsresult:
Gets the name of the current profile.
Written by:Ellen Evans | Comments, questions, complaints?
Bug 143387 |