1 28 package org.eclipse.swt.internal.mozilla; 29 30 public class nsISupports { 31 32 static final int LAST_METHOD_ID = 2; 33 34 public static final String NS_ISUPPORTS_IID_STR = 35 "00000000-0000-0000-c000-000000000046"; 36 37 public static final nsID NS_ISUPPORTS_IID = 38 new nsID(NS_ISUPPORTS_IID_STR); 39 40 int address; 41 42 public nsISupports(int address) { 43 this.address = address; 44 } 45 46 public int getAddress() { 47 return this.address; 48 } 49 50 public int QueryInterface(nsID uuid, int [] result) { 51 return XPCOM.VtblCall(0, getAddress(), uuid, result); 52 } 53 54 public int AddRef() { 55 return XPCOM.VtblCall(1, getAddress()); 56 } 57 58 public int Release() { 59 return XPCOM.VtblCall(2, getAddress()); 60 } 61 } | Popular Tags |