nsIProfileInternal

IID:2f977d42-5485-11d4-87e2-0010a4e75ef2
Inherits From:nsIProfile

This interface is implemented by the following components:


Constants

The following values are used with getProfileListX

LIST_ONLY_NEW - the list will contain only migrated profiles LIST_ONLY_OLD - the list will contain only un-migrated profiles LIST_ALL - the list will contain all profiles LIST_FOR_IMPORT - the list is generated from 4.x registry and contains all the 4.x profiles do not use this except from the import module

PRUint32 LIST_ONLY_NEW = 1
PRUint32 LIST_ONLY_OLD = 2
PRUint32 LIST_ALL = 3
PRUint32 LIST_FOR_IMPORT = 4

Properties

PRBool automigrate

readonly nsIFile defaultProfileParentDir

readonly PRUnichar* firstProfile

readonly PRBool isStartingUp

Returns TRUE if in the midst of startupWithArgs

PRBool startWithLastUsedProfile

Affects startup behavior when there are multiple profiles. If FALSE, the profile selection dialog will be shown. If TRUE, the last used profile will be chosen automatically.


Methods

void createDefaultProfile ( ) void createNewProfileWithLocales ( PRUnichar* profileName , PRUnichar* nativeProfileDir , PRUnichar* UILocale , PRUnichar* contentLocale , PRBool useExistingDir ) void forgetCurrentProfile ( ) PRInt32 get4xProfileCount ( ) [noscript] void getCurrentProfileDir ( out nsIFile profileDir ) nsILocalFile getOriginalProfileDir ( PRUnichar* profileName ) nsIFile getProfileDir ( PRUnichar* profileName ) PRInt64 getProfileLastModTime ( PRUnichar* profileName ) void getProfileListX ( PRUint32 which , out PRUint32 length , out arrayof PRUnichar* profileNames ) PRUnichar* getProfilePath ( PRUnichar* profileName ) [noscript] void getRegStrings ( PRUnichar* profileName , out PRUnichar* regString , out PRUnichar* regName , out PRUnichar* regEmail , out PRUnichar* regOption ) PRBool isCurrentProfileAvailable ( ) [noscript] char* isRegStringSet ( PRUnichar* profileName ) void migrateAllProfiles ( ) void migrateProfile ( PRUnichar* profileName ) void migrateProfileInfo ( ) void remigrateProfile ( PRUnichar* profileName ) [noscript] void setRegStrings ( PRUnichar* profileName , PRUnichar* regString , PRUnichar* regName , PRUnichar* regEmail , PRUnichar* regOption ) [noscript] void startupWithArgs ( nsICmdLineService cmdLine , PRBool canInteract ) [noscript] void updateRegistry ( nsIFile regName )

void createDefaultProfile ( )


void createNewProfileWithLocales ( PRUnichar* profileName , PRUnichar* nativeProfileDir , PRUnichar* UILocale , PRUnichar* contentLocale , PRBool useExistingDir )

Arguments:
profileName
nativeProfileDir
UILocale
contentLocale
useExistingDir

void forgetCurrentProfile ( )


PRInt32 get4xProfileCount ( )


void getCurrentProfileDir ( out nsIFile profileDir )

Arguments:
profileDir

nsILocalFile getOriginalProfileDir ( PRUnichar* profileName )

Returns a profile directory of the importType. The path will point to the 4.x profile directory. Should be used only from the import module.

Arguments:
profileName

nsIFile getProfileDir ( PRUnichar* profileName )

Returns the actual profile directory

Arguments:
profileName

PRInt64 getProfileLastModTime ( PRUnichar* profileName )

Returns the date on which a profile was last used. value is in milliseconds since midnight Jan 1, 1970 GMT (same as nsIFile)

Arguments:
profileName

void getProfileListX ( PRUint32 which , out PRUint32 length , out arrayof PRUnichar* profileNames )

Arguments:
which
length
profileNames

PRUnichar* getProfilePath ( PRUnichar* profileName )

Returns the path to a profile which can be shown to the user. If the actual profile directory is salted, returns the unsalted parent. This is the directory which will be deleted by deleteProfile(name, true).

Arguments:
profileName

void getRegStrings ( PRUnichar* profileName , out PRUnichar* regString , out PRUnichar* regName , out PRUnichar* regEmail , out PRUnichar* regOption )

Arguments:
profileName
regString
regName
regEmail
regOption

PRBool isCurrentProfileAvailable ( )

The remaining methods are deprecated. DO NOT USE THEM.


char* isRegStringSet ( PRUnichar* profileName )

Arguments:
profileName

void migrateAllProfiles ( )


void migrateProfile ( PRUnichar* profileName )

Arguments:
profileName

void migrateProfileInfo ( )


void remigrateProfile ( PRUnichar* profileName )

Arguments:
profileName

void setRegStrings ( PRUnichar* profileName , PRUnichar* regString , PRUnichar* regName , PRUnichar* regEmail , PRUnichar* regOption )

Arguments:
profileName
regString
regName
regEmail
regOption

void startupWithArgs ( nsICmdLineService cmdLine , PRBool canInteract )

Starts up the profile manager

Arguments:
cmdLine: Arguments passed from command line - can be null
canInteract: Whether dialogs can be shown during startup If false and dialogs would need to be shown, returns NS_ERROR_PROFILE_REQUIRES_INTERRACTION

void updateRegistry ( nsIFile regName )

Arguments:
regName

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com