nsIProfileMigrator

IID:24ce8b9d-b7ff-4279-aef4-26e158f03e34
Inherits From:nsISupports

This interface is implemented by the following components:


Methods

void import ( ) void migrate ( nsIProfileStartup startup )

void import ( )

Import existing profile paths. When the app is started the first time, if there are no INI-style profiles, appstartup will call this method to import any registry- style profiles that may exist. When this method is called, there is no event queue service and this method should not attempt to use the network or show any GUI.


void migrate ( nsIProfileStartup startup )

Do profile migration.

When this method is called, a default profile has been created; XPCOM has been initialized such that compreg.dat is in the profile; the directory service does *not* return a key for NS_APP_USER_PROFILE_50_DIR or any of the keys depending on an active profile. To figure out the directory of the "current" profile, use startup.directory.

If your migrator needs to access services that use the profile (to set profile prefs or bookmarks, for example), use startup.doStartup.

The startup code ignores COM exceptions thrown from this method.

Arguments:
startup

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com