1 module org.eclipse.swt.internal.mozilla.nsIObserverService;
2 
3 import java.lang.all;
4 
5 import org.eclipse.swt.internal.mozilla.Common;
6 import org.eclipse.swt.internal.mozilla.nsID;
7 import org.eclipse.swt.internal.mozilla.nsISupports;
8 import org.eclipse.swt.internal.mozilla.nsIObserver;
9 import org.eclipse.swt.internal.mozilla.nsISimpleEnumerator;
10 
11 const char[] NS_IOBSERVERSERVICE_IID_STR = "d07f5192-e3d1-11d2-8acd-00105a1b8860";
12 
13 const nsIID NS_IOBSERVERSERVICE_IID= 
14   {0xd07f5192, 0xe3d1, 0x11d2, 
15     [ 0x8a, 0xcd, 0x00, 0x10, 0x5a, 0x1b, 0x88, 0x60 ]};
16 
17 interface nsIObserverService : nsISupports {
18 
19   static const char[] IID_STR = NS_IOBSERVERSERVICE_IID_STR;
20   static const nsIID IID = NS_IOBSERVERSERVICE_IID;
21 
22 extern(System):
23   nsresult AddObserver(nsIObserver anObserver, in char *aTopic, PRBool ownsWeak);
24   nsresult RemoveObserver(nsIObserver anObserver, in char *aTopic);
25   nsresult NotifyObservers(nsISupports aSubject, in char *aTopic, PRUnichar *someData);
26   nsresult EnumerateObservers(in char *aTopic, nsISimpleEnumerator *_retval);
27 
28 }
29