1 module org.eclipse.swt.internal.mozilla.nsIPrefBranch;
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 
9 const char[] NS_IPREFBRANCH_IID_STR = "56c35506-f14b-11d3-99d3-ddbfac2ccf65";
10 
11 const nsIID NS_IPREFBRANCH_IID= 
12   {0x56c35506, 0xf14b, 0x11d3, 
13     [ 0x99, 0xd3, 0xdd, 0xbf, 0xac, 0x2c, 0xcf, 0x65 ]};
14 
15 interface nsIPrefBranch : nsISupports {
16 
17   static const char[] IID_STR = NS_IPREFBRANCH_IID_STR;
18   static const nsIID IID = NS_IPREFBRANCH_IID;
19 
20   enum { PREF_INVALID = 0 };
21   enum { PREF_STRING = 32 };
22   enum { PREF_INT = 64 };
23   enum { PREF_BOOL = 128 };
24 
25 extern(System):
26   nsresult GetRoot(char * *aRoot);
27   nsresult GetPrefType(in char *aPrefName, PRInt32 *_retval);
28   nsresult GetBoolPref(in char *aPrefName, PRBool *_retval);
29   nsresult SetBoolPref(in char *aPrefName, PRInt32 aValue);
30   nsresult GetCharPref(in char *aPrefName, char **_retval);
31   nsresult SetCharPref(in char *aPrefName, in char *aValue);
32   nsresult GetIntPref(in char *aPrefName, PRInt32 *_retval);
33   nsresult SetIntPref(in char *aPrefName, PRInt32 aValue);
34   nsresult GetComplexValue(in char *aPrefName, in nsIID * aType, void * *aValue);
35   nsresult SetComplexValue(in char *aPrefName, in nsIID * aType, nsISupports aValue);
36   nsresult ClearUserPref(in char *aPrefName);
37   nsresult LockPref(in char *aPrefName);
38   nsresult PrefHasUserValue(in char *aPrefName, PRBool *_retval);
39   nsresult PrefIsLocked(in char *aPrefName, PRBool *_retval);
40   nsresult UnlockPref(in char *aPrefName);
41   nsresult DeleteBranch(in char *aStartingAt);
42   nsresult GetChildList(in char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
43   nsresult ResetBranch(in char *aStartingAt);
44 
45 }
46