nsIBrowserProfileMigrator Interface Reference

import"nsIBrowserProfileMigrator.idl";

Inheritance diagram for nsIBrowserProfileMigrator:
[legend]
Collaboration diagram for nsIBrowserProfileMigrator:
[legend]

Public Member Functions

void migrate (in unsigned short aItems, in nsIProfileStartup aStartup, in wstring aProfile)
 
unsigned short getMigrateData (in wstring aProfile, in boolean aDoingStartup)
 

Public Attributes

const unsigned short ALL = 0x0000
 
const unsigned short SETTINGS = 0x0001
 
const unsigned short COOKIES = 0x0002
 
const unsigned short HISTORY = 0x0004
 
const unsigned short FORMDATA = 0x0008
 
const unsigned short PASSWORDS = 0x0010
 
const unsigned short BOOKMARKS = 0x0020
 
const unsigned short OTHERDATA = 0x0040
 
readonly attribute boolean sourceExists
 
readonly attribute boolean sourceHasMultipleProfiles
 
readonly attribute nsISupportsArray sourceProfiles
 
readonly attribute AUTF8String sourceHomePageURL
 

Detailed Description

Definition at line 43 of file nsIBrowserProfileMigrator.idl.

Member Function Documentation

unsigned short nsIBrowserProfileMigrator::getMigrateData ( in wstring  aProfile,
in boolean  aDoingStartup 
)

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

Parameters
aProfilethe profile that we are looking for available data to import
aDoingStartup"true" if the profile is not currently being used.
Returns
bit field containing profile items (see above)
void nsIBrowserProfileMigrator::migrate ( in unsigned short  aItems,
in nsIProfileStartup  aStartup,
in wstring  aProfile 
)

Copy user profile information to the current active profile.

Parameters
aItemslist of data items to migrate. see above for values.
aStartuphelper interface which is non-null if called during startup.
aProfileprofile to migrate from, if there is more than one.

Member Data Documentation

const unsigned short nsIBrowserProfileMigrator::ALL = 0x0000

profile items to migrate. use with migrate().

Definition at line 48 of file nsIBrowserProfileMigrator.idl.

const unsigned short nsIBrowserProfileMigrator::BOOKMARKS = 0x0020

Definition at line 54 of file nsIBrowserProfileMigrator.idl.

const unsigned short nsIBrowserProfileMigrator::COOKIES = 0x0002

Definition at line 50 of file nsIBrowserProfileMigrator.idl.

const unsigned short nsIBrowserProfileMigrator::FORMDATA = 0x0008

Definition at line 52 of file nsIBrowserProfileMigrator.idl.

const unsigned short nsIBrowserProfileMigrator::HISTORY = 0x0004

Definition at line 51 of file nsIBrowserProfileMigrator.idl.

const unsigned short nsIBrowserProfileMigrator::OTHERDATA = 0x0040

Definition at line 55 of file nsIBrowserProfileMigrator.idl.

const unsigned short nsIBrowserProfileMigrator::PASSWORDS = 0x0010

Definition at line 53 of file nsIBrowserProfileMigrator.idl.

const unsigned short nsIBrowserProfileMigrator::SETTINGS = 0x0001

Definition at line 49 of file nsIBrowserProfileMigrator.idl.

readonly attribute boolean nsIBrowserProfileMigrator::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)

Definition at line 80 of file nsIBrowserProfileMigrator.idl.

readonly attribute boolean nsIBrowserProfileMigrator::sourceHasMultipleProfiles

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

Definition at line 86 of file nsIBrowserProfileMigrator.idl.

readonly attribute AUTF8String nsIBrowserProfileMigrator::sourceHomePageURL

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

Definition at line 97 of file nsIBrowserProfileMigrator.idl.

readonly attribute nsISupportsArray nsIBrowserProfileMigrator::sourceProfiles

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

Definition at line 92 of file nsIBrowserProfileMigrator.idl.


The documentation for this interface was generated from the following file: