2012-05-21 11:12:37 +00: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 18:25:46 +00:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
/**
|
2005-05-12 13:23:30 +00:00
|
|
|
* A scriptable interface to the nsXULAppAPI structure. See nsXULAppAPI.h for
|
|
|
|
* a detailed description of each attribute.
|
2004-12-04 18:25:46 +00:00
|
|
|
*/
|
|
|
|
|
2012-05-17 17:12:35 +00:00
|
|
|
[scriptable, uuid(1518e7d2-022a-4dae-b02e-bbe7ffcf2145)]
|
2004-12-04 18:25:46 +00:00
|
|
|
interface nsIXULAppInfo : nsISupports
|
|
|
|
{
|
|
|
|
/**
|
2005-05-12 13:23:30 +00:00
|
|
|
* @see nsXREAppData.vendor
|
|
|
|
* @returns an empty string if nsXREAppData.vendor is not set.
|
2004-12-04 18:25:46 +00:00
|
|
|
*/
|
|
|
|
readonly attribute ACString vendor;
|
|
|
|
|
|
|
|
/**
|
2005-05-12 13:23:30 +00:00
|
|
|
* @see nsXREAppData.name
|
2004-12-04 18:25:46 +00:00
|
|
|
*/
|
|
|
|
readonly attribute ACString name;
|
|
|
|
|
2004-12-07 04:53:07 +00:00
|
|
|
/**
|
2005-05-12 13:23:30 +00:00
|
|
|
* @see nsXREAppData.ID
|
|
|
|
* @returns an empty string if nsXREAppData.ID is not set.
|
2004-12-07 04:53:07 +00:00
|
|
|
*/
|
2005-05-12 13:23:30 +00:00
|
|
|
readonly attribute ACString ID;
|
2004-12-07 04:53:07 +00:00
|
|
|
|
2005-07-14 20:29:06 +00:00
|
|
|
/**
|
2005-09-29 19:57:21 +00:00
|
|
|
* The version of the XUL application. It is different than the
|
2005-07-14 20:29:06 +00: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 18:25:46 +00:00
|
|
|
/**
|
|
|
|
* The build ID/date of the application. For xulrunner applications,
|
2005-07-14 20:29:06 +00:00
|
|
|
* this will be different than the build ID of the platform. Be careful
|
2005-05-12 13:23:30 +00:00
|
|
|
* about which one you want.
|
2004-12-04 18:25:46 +00:00
|
|
|
*/
|
|
|
|
readonly attribute ACString appBuildID;
|
|
|
|
|
|
|
|
/**
|
2005-09-29 19:57:21 +00:00
|
|
|
* The version of the XULRunner platform.
|
2005-07-14 20:29:06 +00:00
|
|
|
*/
|
|
|
|
readonly attribute ACString platformVersion;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The build ID/date of gecko and the XULRunner platform.
|
2004-12-04 18:25:46 +00:00
|
|
|
*/
|
2005-07-14 20:29:06 +00:00
|
|
|
readonly attribute ACString platformBuildID;
|
2012-04-23 20:09:23 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @see nsXREAppData.UAName
|
|
|
|
* @returns an empty string if nsXREAppData.UAName is not set.
|
|
|
|
*/
|
|
|
|
readonly attribute ACString UAName;
|
2004-12-04 18:25:46 +00:00
|
|
|
};
|