nsIMailProfileMigrator

IID:C3CB4343-2E8B-40fd-A639-A65731BED3AE
Inherits From:nsISupports

Constants

Profile items to migrate. use with migrate().
PRUint16 ALL = 0
PRUint16 SETTINGS = 1
PRUint16 ACCOUNT_SETTINGS = 2
PRUint16 ADDRESSBOOK_DATA = 4
PRUint16 JUNKTRAINING = 8
PRUint16 PASSWORDS = 16
PRUint16 OTHERDATA = 32
PRUint16 NEWSDATA = 64
PRUint16 MAILDATA = 128

Properties

readonly PRBool sourceExists

Whether or not there is any data that can be imported from this browser (i.e. whether or not it is installed, and there exists a user profile)

readonly PRBool sourceHasMultipleProfiles

Whether or not the import source implementing this interface has multiple user profiles configured.

readonly nsISupportsArray sourceProfiles

An enumeration of available profiles. If the import source does not support profiles, this attribute is null.


Methods

PRUint16 getMigrateData ( PRUnichar* profile , PRBool doingStartup ) void migrate ( PRUint16 items , nsIProfileStartup startup , PRUnichar* profile )

PRUint16 getMigrateData ( PRUnichar* profile , PRBool doingStartup )

A bit field containing profile items that this migrator offers for import.

Arguments:
profile: the profile that we are looking for available data to import
doingStartup

void migrate ( PRUint16 items , nsIProfileStartup startup , PRUnichar* profile )

Copy user profile information to the current active profile.

Arguments:
items: list of data items to migrate. see above for values.
startup
profile: profile to migrate from, if there is more than one.

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com