Struct xpcom::interfaces::nsIAppStartup [] [src]

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

interface nsIAppStartup : nsISupports

Methods

impl nsIAppStartup
[src]

[src]

Cast this nsIAppStartup to one of its base interfaces.

impl nsIAppStartup
[src]

eConsiderQuit: i64 = 1
/**
     * The following flags may be passed as the aMode parameter to the quit
     * method.  One and only one of the "Quit" flags must be specified.  The
     * eRestart flag may be bit-wise combined with one of the "Quit" flags to
     * cause the application to restart after it quits.
     */
/**
     * Attempt to quit if all windows are closed.
     */

eAttemptQuit: i64 = 2
/**
     * Try to close all windows, then quit if successful.
     */

eForceQuit: i64 = 3
/**
     * Quit, damnit!
     */

eRestart: i64 = 16
/**
     * Restart the application after quitting.  The application will be
     * restarted with the same profile and an empty command line.
     */

eRestartNotSameProfile: i64 = 256
/**
     * Restart the application after quitting.  The application will be
     * restarted with an empty command line and the normal profile selection
     * process will take place on startup.
     */

[src]

/**
     * Create the hidden window.
     */

void createHiddenWindow ();

[src]

/**
     * Destroys the hidden window. This will have no effect if the hidden window
     * has not yet been created.
     */

void destroyHiddenWindow ();

[src]

/**
     * Runs an application event loop: normally the main event pump which
     * defines the lifetime of the application. If there are no windows open
     * and no outstanding calls to enterLastWindowClosingSurvivalArea this
     * method will exit immediately.
     *
     * @returnCode NS_SUCCESS_RESTART_APP
     *             This return code indicates that the application should be
     *             restarted because quit was called with the eRestart flag.

     * @returnCode NS_SUCCESS_RESTART_APP_NOT_SAME_PROFILE
     *             This return code indicates that the application should be
     *             restarted without necessarily using the same profile because
     *             quit was called with the eRestartNotSameProfile flag.
     */

void run ();

[src]

/**
     * There are situations where all application windows will be
     * closed but we don't want to take this as a signal to quit the
     * app. Bracket the code where the last window could close with
     * these.
     */

void enterLastWindowClosingSurvivalArea ();

[src]

void exitLastWindowClosingSurvivalArea ();

[src]

/**
     * Startup Crash Detection
     *
     * Keeps track of application startup begining and success using flags to
     * determine whether the application is crashing on startup.
     * When the number of crashes crosses the acceptable threshold, safe mode
     * or other repair procedures are performed.
     */
/**
     * Whether automatic safe mode is necessary at this time.  This gets set
     * in trackStartupCrashBegin.
     *
     * @see trackStartupCrashBegin
     */

readonly attribute boolean automaticSafeModeNecessary;

[src]

/**
     * Restart the application in safe mode
     * @param aQuitMode
     *        This parameter modifies how the app is shutdown.
     * @see nsIAppStartup::quit
     */

void restartInSafeMode (in uint32_t aQuitMode);

[src]

/**
     * Run a new instance of this app with a specified profile
     * @param aProfile
     *        The profile we want to use.
     * @see nsIAppStartup::quit
     */

void createInstanceWithProfile (in nsIToolkitProfile aProfile);

[src]

/**
     * If the last startup crashed then increment a counter.
     * Set a flag so on next startup we can detect whether TrackStartupCrashEnd
     * was called (and therefore the application crashed).
     * @return whether safe mode is necessary
     */

bool trackStartupCrashBegin ();

[src]

/**
     * We have succesfully started without crashing. Clear flags that were
     * tracking past crashes.
     */

void trackStartupCrashEnd ();

[src]

/**
     * Exit the event loop, and shut down the app.
     *
     * @param aMode
     *        This parameter modifies how the app is shutdown, and it is
     *        constructed from the constants defined above.
     */

void quit (in uint32_t aMode);

[src]

/**
     * True if the application is in the process of shutting down.
     */

readonly attribute boolean shuttingDown;

[src]

/**
     * True if the application is in the process of starting up.
     *
     * Startup is complete once all observers of final-ui-startup have returned.
     */

readonly attribute boolean startingUp;

[src]

/**
     * Mark the startup as completed.
     *
     * Called at the end of startup by nsAppRunner.
     */

[noscript] void doneStartingUp ();

[src]

/**
     * True if the application is being restarted
     */

readonly attribute boolean restarting;

[src]

/**
     * True if this is the startup following restart, i.e. if the application
     * was restarted using quit(eRestart*).
     */

readonly attribute boolean wasRestarted;

[src]

/**
     * True if startup was interrupted by an interactive prompt.
     */

attribute boolean interrupted;

[src]

/**
     * True if startup was interrupted by an interactive prompt.
     */

attribute boolean interrupted;

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

IID: nsIID = nsID(1713501909, 27652, 18958, [158, 116, 68, 125, 178, 33, 72, 78])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIAppStartup
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.