profile/public/nsIProfileUnlocker.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/profile/public/nsIProfileUnlocker.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,21 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#include "nsISupports.idl"
     1.9 +
    1.10 +[scriptable, uuid(08923af1-e7a3-4fae-ba02-128502193994)]
    1.11 +interface nsIProfileUnlocker : nsISupports
    1.12 +{
    1.13 +  const unsigned long ATTEMPT_QUIT = 0;
    1.14 +  const unsigned long FORCE_QUIT   = 1;
    1.15 +
    1.16 +  /**
    1.17 +   * Try to unlock the specified profile by attempting or forcing the
    1.18 +   * process that currently holds the lock to quit.
    1.19 +   *
    1.20 +   * @param aSeverity either ATTEMPT_QUIT or FORCE_QUIT
    1.21 +   * @throws NS_ERROR_FAILURE if unlocking failed.
    1.22 +   */
    1.23 +  void unlock(in unsigned long aSeverity);
    1.24 +};

mercurial