nsIBrowserProfileMigrator

IID:f8365b4a-da55-4e47-be7a-230142360f62
Inherits From:nsISupports

This interface is implemented by the following components:


Constants

Profile items to migrate. use with migrate().
PRUint16 ALL = 0
PRUint16 SETTINGS = 1
PRUint16 COOKIES = 2
PRUint16 HISTORY = 4
PRUint16 FORMDATA = 8
PRUint16 PASSWORDS = 16
PRUint16 BOOKMARKS = 32
PRUint16 OTHERDATA = 64

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 AUTF8String sourceHomePageURL

The import source homepage. Returns null if not present/available

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