xpcom/system/nsIXULAppInfo.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xpcom/system/nsIXULAppInfo.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,63 @@
     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 +/**
    1.11 + * A scriptable interface to the nsXULAppAPI structure. See nsXULAppAPI.h for
    1.12 + * a detailed description of each attribute.
    1.13 + */
    1.14 +
    1.15 +[scriptable, uuid(1518e7d2-022a-4dae-b02e-bbe7ffcf2145)]
    1.16 +interface nsIXULAppInfo : nsISupports
    1.17 +{
    1.18 +  /**
    1.19 +   * @see nsXREAppData.vendor
    1.20 +   * @returns an empty string if nsXREAppData.vendor is not set.
    1.21 +   */
    1.22 +  readonly attribute ACString vendor;
    1.23 +
    1.24 +  /**
    1.25 +   * @see nsXREAppData.name
    1.26 +   */
    1.27 +  readonly attribute ACString name;
    1.28 +
    1.29 +  /**
    1.30 +   * @see nsXREAppData.ID
    1.31 +   * @returns an empty string if nsXREAppData.ID is not set.
    1.32 +   */
    1.33 +  readonly attribute ACString ID;
    1.34 +
    1.35 +  /**
    1.36 +   * The version of the XUL application. It is different than the
    1.37 +   * version of the XULRunner platform. Be careful about which one you want.
    1.38 +   *
    1.39 +   * @see nsXREAppData.version
    1.40 +   * @returns an empty string if nsXREAppData.version is not set.
    1.41 +   */
    1.42 +  readonly attribute ACString version;
    1.43 +
    1.44 +  /**
    1.45 +   * The build ID/date of the application. For xulrunner applications,
    1.46 +   * this will be different than the build ID of the platform. Be careful
    1.47 +   * about which one you want.
    1.48 +   */
    1.49 +  readonly attribute ACString appBuildID;
    1.50 +
    1.51 +  /**
    1.52 +   * The version of the XULRunner platform.
    1.53 +   */
    1.54 +  readonly attribute ACString platformVersion;
    1.55 +
    1.56 +  /**
    1.57 +   * The build ID/date of gecko and the XULRunner platform.
    1.58 +   */
    1.59 +  readonly attribute ACString platformBuildID;
    1.60 +  
    1.61 +  /**
    1.62 +   * @see nsXREAppData.UAName
    1.63 +   * @returns an empty string if nsXREAppData.UAName is not set.
    1.64 +   */
    1.65 +  readonly attribute ACString UAName;
    1.66 +};

mercurial