1 module org.eclipse.swt.internal.mozilla.nsIPrefService;
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.nsIPrefBranch;
9 import org.eclipse.swt.internal.mozilla.nsIFile;
10 
11 const char[] NS_IPREFSERVICE_IID_STR = "decb9cc7-c08f-4ea5-be91-a8fc637ce2d2";
12 
13 const nsIID NS_IPREFSERVICE_IID= 
14   {0xdecb9cc7, 0xc08f, 0x4ea5, 
15     [ 0xbe, 0x91, 0xa8, 0xfc, 0x63, 0x7c, 0xe2, 0xd2 ]};
16 
17 interface nsIPrefService : nsISupports {
18 
19   static const char[] IID_STR = NS_IPREFSERVICE_IID_STR;
20   static const nsIID IID = NS_IPREFSERVICE_IID;
21 
22 extern(System):
23   nsresult ReadUserPrefs(nsIFile aFile);
24   nsresult ResetPrefs();
25   nsresult ResetUserPrefs();
26   nsresult SavePrefFile(nsIFile aFile);
27   nsresult GetBranch(char *aPrefRoot, nsIPrefBranch *_retval);
28   nsresult GetDefaultBranch(char *aPrefRoot, nsIPrefBranch *_retval);
29 
30 }
31