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]
pub fn coerce<T: nsIProfileMigratorCoerce>(&self) -> &T
[src]
Cast this nsIProfileMigrator
to one of its base interfaces.
impl nsIProfileMigrator
[src]
pub unsafe fn Migrate(
&self,
aStartup: *const nsIProfileStartup,
aKey: &nsACString,
aProfileName: &nsACString
) -> nsresult
[src]
&self,
aStartup: *const nsIProfileStartup,
aKey: &nsACString,
aProfileName: &nsACString
) -> nsresult
/**
* 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>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIProfileMigrator
[src]
const IID: nsIID
IID: nsIID = nsID(1039303845, 8792, 19782, [166, 100, 118, 30, 205, 192, 76, 34])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIProfileMigrator
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.