Struct xpcom::interfaces::nsIProfileMigrator [] [src]

#[repr(C)]
pub struct nsIProfileMigrator { /* fields omitted */ }

interface nsIProfileMigrator : nsISupports

/**
 * Migrate application settings from an outside source.
 *
 * @provider Application (Profile-migration code)
 * @client   Toolkit (Startup code)
 * @obtainable service, contractid("@mozilla.org/toolkit/profile-migrator;1")
 */

Methods

impl nsIProfileMigrator
[src]

[src]

Cast this nsIProfileMigrator to one of its base interfaces.

impl nsIProfileMigrator
[src]

[src]

/**
   * Migrate data from an outside source, if possible.  Does nothing
   * otherwise.
   *
   * 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
   * aStartup.directory.
   *
   * If your migrator needs to access services that use the profile (to
   * set profile prefs or bookmarks, for example), use aStartup.doStartup.
   *
   * @param  aStartup nsIProfileStartup object to use during migration.
   * @param  aKey     optional key of a migrator to use to skip source selection.
   * @param  aProfileName optional name of the profile to use for migration.
   *
   * @note The startup code ignores COM exceptions thrown from this method.
   */

void migrate (in nsIProfileStartup aStartup, in ACString aKey, [optional] in ACString aProfileName);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIProfileMigrator
[src]

IID: nsIID = nsID(1039303845, 8792, 19782, [166, 100, 118, 30, 205, 192, 76, 34])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIProfileMigrator
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIProfileMigrator
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.