2011-12-03 21:50:16 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
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/. */
|
1999-03-23 20:22:00 +00:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2008-01-12 04:30:42 +00:00
|
|
|
[ptr] native const_nsID_ptr(const nsID);
|
|
|
|
|
2012-04-07 00:44:50 +00:00
|
|
|
[builtinclass, scriptable, uuid(baedc96a-9cee-4b6b-9160-90d257b3c8ef)]
|
1999-03-23 20:22:00 +00:00
|
|
|
interface nsIJSID : nsISupports
|
|
|
|
{
|
2008-01-12 04:30:42 +00:00
|
|
|
readonly attribute string name;
|
|
|
|
readonly attribute string number;
|
|
|
|
readonly attribute boolean valid;
|
1999-03-23 20:22:00 +00:00
|
|
|
|
2007-09-08 01:43:13 +00:00
|
|
|
boolean equals(in nsIJSID other);
|
1999-08-22 23:56:42 +00:00
|
|
|
|
1999-08-20 23:11:30 +00:00
|
|
|
void initialize(in string idString);
|
1999-03-23 20:22:00 +00:00
|
|
|
|
|
|
|
string toString();
|
2008-01-12 04:30:42 +00:00
|
|
|
|
|
|
|
// returns a pointer to the internal nsID. this pointer is only valid
|
|
|
|
// while the nsIJSID object remains alive!
|
|
|
|
[notxpcom] const_nsID_ptr getID();
|
1999-03-23 20:22:00 +00:00
|
|
|
};
|
|
|
|
|
2012-04-07 00:44:50 +00:00
|
|
|
[builtinclass, scriptable, uuid(e76ec564-a080-4705-8609-384c755ec91e)]
|
1999-03-23 20:22:00 +00:00
|
|
|
interface nsIJSIID : nsIJSID
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2012-04-07 00:44:50 +00:00
|
|
|
[builtinclass, scriptable, uuid(bf5eb086-9eaa-4694-aec3-fe4aac6119bd)]
|
1999-03-23 20:22:00 +00:00
|
|
|
interface nsIJSCID : nsIJSID
|
|
|
|
{
|
2011-12-03 21:50:16 +00:00
|
|
|
[implicit_jscontext,optional_argc] jsval createInstance([optional] in jsval iid);
|
|
|
|
[implicit_jscontext,optional_argc] jsval getService([optional] in jsval iid);
|
1999-03-23 20:22:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* this goes into the C++ header verbatim. */
|
|
|
|
%{ C++
|
|
|
|
/********************************************************/
|
1999-08-20 23:11:30 +00:00
|
|
|
// {F24A14F0-4FA1-11d3-9894-006008962422}
|
|
|
|
#define NS_JS_ID_CID \
|
|
|
|
{ 0xf24a14f0, 0x4fa1, 0x11d3, \
|
|
|
|
{ 0x98, 0x94, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
|
1999-03-23 20:22:00 +00:00
|
|
|
%}
|
|
|
|
|