comparison dwt/internal/mozilla.old/nsIPrefBranch.d @ 288:4ee8c4237614

old branches... commit by mistake
author John Reimer<terminal.node@gmail.com>
date Tue, 05 Aug 2008 18:00:50 -0700
parents
children
comparison
equal deleted inserted replaced
287:9cbe6285f746 288:4ee8c4237614
1 module dwt.internal.mozilla.nsIPrefBranch;
2
3 import dwt.internal.mozilla.Common;
4 import dwt.internal.mozilla.nsID;
5 import dwt.internal.mozilla.nsISupports;
6
7 const char[] NS_IPREFBRANCH_IID_STR = "56c35506-f14b-11d3-99d3-ddbfac2ccf65";
8
9 const nsIID NS_IPREFBRANCH_IID=
10 {0x56c35506, 0xf14b, 0x11d3,
11 [ 0x99, 0xd3, 0xdd, 0xbf, 0xac, 0x2c, 0xcf, 0x65 ]};
12
13 extern(System)
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 nsresult GetRoot(char * *aRoot);
26 nsresult GetPrefType(char *aPrefName, PRInt32 *_retval);
27 nsresult GetBoolPref(char *aPrefName, PRBool *_retval);
28 nsresult SetBoolPref(char *aPrefName, PRInt32 aValue);
29 nsresult GetCharPref(char *aPrefName, char **_retval);
30 nsresult SetCharPref(char *aPrefName, char *aValue);
31 nsresult GetIntPref(char *aPrefName, PRInt32 *_retval);
32 nsresult SetIntPref(char *aPrefName, PRInt32 aValue);
33 nsresult GetComplexValue(char *aPrefName, nsIID * aType, void * *aValue);
34 nsresult SetComplexValue(char *aPrefName, nsIID * aType, nsISupports aValue);
35 nsresult ClearUserPref(char *aPrefName);
36 nsresult LockPref(char *aPrefName);
37 nsresult PrefHasUserValue(char *aPrefName, PRBool *_retval);
38 nsresult PrefIsLocked(char *aPrefName, PRBool *_retval);
39 nsresult UnlockPref(char *aPrefName);
40 nsresult DeleteBranch(char *aStartingAt);
41 nsresult GetChildList(char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
42 nsresult ResetBranch(char *aStartingAt);
43
44 }
45