
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_PERSISTandSHUTDOWN_CLEANSEdefined 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:IfTRUEuse 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 |