1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| #include "nsISupports.idl"
/* {00000000-0000-0000-c000-000000000046} */
#define NS_IFOO_IID_STR "2B563B55-6907-4b7d-AF13-0D23C0026E19"
#define NS_IFOO_IID \ { 0x2b563b55, 0x6907, 0x4b7d, \ { 0xaf, 0x13, 0xd, 0x23, 0xc0, 0x2, 0x6e, 0x19 }}
[scriptable, uuid(0x2b563b55, 0x6907, 0x4b7d)]
interface IMyComponent : nsISupports
{
long Add(in long a, in long b);
};
/* starting interface nsIFoo */
class nsIFoo : public nsIParent {
public:
static const nsIID& IID() {
static nsIID iid = NS_IFOO_IID;
return iid;
}
}; |
Partager