Struct xpcom::interfaces::nsIToolkitProfileService [] [src]

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

interface nsIToolkitProfileService : nsISupports

Methods

impl nsIToolkitProfileService
[src]

[src]

Cast this nsIToolkitProfileService to one of its base interfaces.

impl nsIToolkitProfileService
[src]

[src]

attribute boolean startWithLastProfile;

[src]

attribute boolean startWithLastProfile;

[src]

attribute boolean startOffline;

[src]

attribute boolean startOffline;

[src]

readonly attribute nsISimpleEnumerator profiles;

[src]

/**
     * The currently selected profile (the one used or about to be used by the
     * browser).
     */

attribute nsIToolkitProfile selectedProfile;

[src]

/**
     * The currently selected profile (the one used or about to be used by the
     * browser).
     */

attribute nsIToolkitProfile selectedProfile;

[src]

/**
     * The default profile (the one used or about to be used by the
     * browser if no other profile is specified at runtime). This is the profile
     * marked with Default=1 in profiles.ini and is usually the same as
     * selectedProfile, except on Developer Edition.
     *
     * Developer Edition uses a profile named "dev-edition-default" as the
     * default profile (which it creates if it doesn't exist), unless a special
     * empty file named "ignore-dev-edition-profile" is present next to
     * profiles.ini. In that case Developer Edition behaves the same as any
     * other build of Firefox.
     */

attribute nsIToolkitProfile defaultProfile;

[src]

/**
     * The default profile (the one used or about to be used by the
     * browser if no other profile is specified at runtime). This is the profile
     * marked with Default=1 in profiles.ini and is usually the same as
     * selectedProfile, except on Developer Edition.
     *
     * Developer Edition uses a profile named "dev-edition-default" as the
     * default profile (which it creates if it doesn't exist), unless a special
     * empty file named "ignore-dev-edition-profile" is present next to
     * profiles.ini. In that case Developer Edition behaves the same as any
     * other build of Firefox.
     */

attribute nsIToolkitProfile defaultProfile;

[src]

/**
     * Get a profile by name. This is mainly for use by the -P
     * commandline flag.
     *
     * @param aName The profile name to find.
     */

nsIToolkitProfile getProfileByName (in AUTF8String aName);

[src]

/**
     * Lock an arbitrary path as a profile. If the path does not exist, it
     * will be created and the defaults copied from the application directory.
     */

nsIProfileLock lockProfilePath (in nsIFile aDirectory, in nsIFile aTempDirectory);

[src]

/**
     * Create a new profile.
     *
     * The profile temporary directory will be chosen based on where the
     * profile directory is located.
     *
     * @param aRootDir
     *        The profile directory. May be null, in which case a suitable
     *        default will be chosen based on the profile name.
     * @param aName
     *        The profile name.
     */

nsIToolkitProfile createProfile (in nsIFile aRootDir, in AUTF8String aName);

[src]

/**
     * Create the default profile for an application.
     *
     * The profile will be typically in
     * {Application Data}/.profilename/{salt}.default or
     * {Application Data}/.appname/{salt}.default
     * or if aVendorName is provided
     * {Application Data}/.vendor/appname/{salt}.default
     *
     * @note Either aProfileName or aAppName must be non-empty
     *
     * @param  aProfileName
     *         The name of the profile
     * @param  aAppName
     *         The name of the application
     * @param  aVendorName
     *         The name of the vendor
     * @return The created profile.
     */

nsIToolkitProfile createDefaultProfileForApp (in AUTF8String aProfileName, in AUTF8String aAppName, in AUTF8String aVendorName);

[src]

/**
     * Returns the number of profiles.
     * @return 0, 1, or 2. More than 2 profiles will always return 2.
     */

readonly attribute unsigned long profileCount;

[src]

/**
     * Flush the profiles list file.
     */

void flush ();

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 nsIToolkitProfileService
[src]

IID: nsIID = nsID(424118683, 62313, 18682, [137, 218, 247, 195, 123, 177, 230, 188])

[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 nsIToolkitProfileService
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIToolkitProfileService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.