2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2004-12-04 21:25:46 +03:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
/**
|
2005-05-12 17:23:30 +04:00
|
|
|
* A scriptable interface to the nsXULAppAPI structure. See nsXULAppAPI.h for
|
|
|
|
* a detailed description of each attribute.
|
2004-12-04 21:25:46 +03:00
|
|
|
*/
|
|
|
|
|
2012-05-17 21:12:35 +04:00
|
|
|
[scriptable, uuid(1518e7d2-022a-4dae-b02e-bbe7ffcf2145)]
|
2004-12-04 21:25:46 +03:00
|
|
|
interface nsIXULAppInfo : nsISupports
|
|
|
|
{
|
|
|
|
/**
|
2005-05-12 17:23:30 +04:00
|
|
|
* @see nsXREAppData.vendor
|
|
|
|
* @returns an empty string if nsXREAppData.vendor is not set.
|
2004-12-04 21:25:46 +03:00
|
|
|
*/
|
|
|
|
readonly attribute ACString vendor;
|
|
|
|
|
|
|
|
/**
|
2005-05-12 17:23:30 +04:00
|
|
|
* @see nsXREAppData.name
|
2004-12-04 21:25:46 +03:00
|
|
|
*/
|
|
|
|
readonly attribute ACString name;
|
|
|
|
|
2004-12-07 07:53:07 +03:00
|
|
|
/**
|
2005-05-12 17:23:30 +04:00
|
|
|
* @see nsXREAppData.ID
|
|
|
|
* @returns an empty string if nsXREAppData.ID is not set.
|
2004-12-07 07:53:07 +03:00
|
|
|
*/
|
2005-05-12 17:23:30 +04:00
|
|
|
readonly attribute ACString ID;
|
2004-12-07 07:53:07 +03:00
|
|
|
|
2005-07-15 00:29:06 +04:00
|
|
|
/**
|
2005-09-29 23:57:21 +04:00
|
|
|
* The version of the XUL application. It is different than the
|
2005-07-15 00:29:06 +04:00
|
|
|
* version of the XULRunner platform. Be careful about which one you want.
|
|
|
|
*
|
|
|
|
* @see nsXREAppData.version
|
|
|
|
* @returns an empty string if nsXREAppData.version is not set.
|
|
|
|
*/
|
|
|
|
readonly attribute ACString version;
|
|
|
|
|
2004-12-04 21:25:46 +03:00
|
|
|
/**
|
|
|
|
* The build ID/date of the application. For xulrunner applications,
|
2005-07-15 00:29:06 +04:00
|
|
|
* this will be different than the build ID of the platform. Be careful
|
2005-05-12 17:23:30 +04:00
|
|
|
* about which one you want.
|
2004-12-04 21:25:46 +03:00
|
|
|
*/
|
|
|
|
readonly attribute ACString appBuildID;
|
|
|
|
|
|
|
|
/**
|
2005-09-29 23:57:21 +04:00
|
|
|
* The version of the XULRunner platform.
|
2005-07-15 00:29:06 +04:00
|
|
|
*/
|
|
|
|
readonly attribute ACString platformVersion;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The build ID/date of gecko and the XULRunner platform.
|
2004-12-04 21:25:46 +03:00
|
|
|
*/
|
2005-07-15 00:29:06 +04:00
|
|
|
readonly attribute ACString platformBuildID;
|
2012-04-24 00:09:23 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @see nsXREAppData.UAName
|
|
|
|
* @returns an empty string if nsXREAppData.UAName is not set.
|
|
|
|
*/
|
|
|
|
readonly attribute ACString UAName;
|
2004-12-04 21:25:46 +03:00
|
|
|
};
|