1 28 package org.eclipse.swt.internal.mozilla; 29 30 public class nsIObserverService extends nsISupports { 31 32 static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 4; 33 34 public static final String NS_IOBSERVERSERVICE_IID_STR = 35 "d07f5192-e3d1-11d2-8acd-00105a1b8860"; 36 37 public static final nsID NS_IOBSERVERSERVICE_IID = 38 new nsID(NS_IOBSERVERSERVICE_IID_STR); 39 40 public nsIObserverService(int address) { 41 super(address); 42 } 43 44 public int AddObserver(int anObserver, byte[] aTopic, boolean ownsWeak) { 45 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), anObserver, aTopic, ownsWeak); 46 } 47 48 public int RemoveObserver(int anObserver, byte[] aTopic) { 49 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), anObserver, aTopic); 50 } 51 52 public int NotifyObservers(int aSubject, byte[] aTopic, char[] someData) { 53 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress(), aSubject, aTopic, someData); 54 } 55 56 public int EnumerateObservers(byte[] aTopic, int [] _retval) { 57 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), aTopic, _retval); 58 } 59 } 60 | Popular Tags |