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