Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPrefBranch.idl
3 : */
4 :
5 : #ifndef __gen_nsIPrefBranch_h__
6 : #define __gen_nsIPrefBranch_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 : class nsIObserver; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIPrefBranch */
21 : #define NS_IPREFBRANCH_IID_STR "55d25e49-793f-4727-a69f-de8b15f4b985"
22 :
23 : #define NS_IPREFBRANCH_IID \
24 : {0x55d25e49, 0x793f, 0x4727, \
25 : { 0xa6, 0x9f, 0xde, 0x8b, 0x15, 0xf4, 0xb9, 0x85 }}
26 :
27 44 : class NS_NO_VTABLE nsIPrefBranch : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPREFBRANCH_IID)
31 :
32 : enum {
33 : PREF_INVALID = 0,
34 : PREF_STRING = 32,
35 : PREF_INT = 64,
36 : PREF_BOOL = 128
37 : };
38 :
39 : /* readonly attribute string root; */
40 : NS_IMETHOD GetRoot(char * *aRoot) = 0;
41 :
42 : /* long getPrefType (in string aPrefName); */
43 : NS_IMETHOD GetPrefType(const char * aPrefName, int32_t *_retval) = 0;
44 :
45 : /* [binaryname(GetBoolPrefWithDefault),optional_argc] boolean getBoolPref (in string aPrefName, [optional] in boolean aDefaultValue); */
46 : NS_IMETHOD GetBoolPrefWithDefault(const char * aPrefName, bool aDefaultValue, uint8_t _argc, bool *_retval) = 0;
47 :
48 : /* [binaryname(GetBoolPref),noscript] boolean getBoolPrefXPCOM (in string aPrefName); */
49 : NS_IMETHOD GetBoolPref(const char * aPrefName, bool *_retval) = 0;
50 :
51 : /* void setBoolPref (in string aPrefName, in boolean aValue); */
52 : NS_IMETHOD SetBoolPref(const char * aPrefName, bool aValue) = 0;
53 :
54 : /* [binaryname(GetFloatPrefWithDefault),optional_argc] float getFloatPref (in string aPrefName, [optional] in float aDefaultValue); */
55 : NS_IMETHOD GetFloatPrefWithDefault(const char * aPrefName, float aDefaultValue, uint8_t _argc, float *_retval) = 0;
56 :
57 : /* [binaryname(GetFloatPref),noscript] float getFloatPrefXPCOM (in string aPrefName); */
58 : NS_IMETHOD GetFloatPref(const char * aPrefName, float *_retval) = 0;
59 :
60 : /* [binaryname(GetCharPrefWithDefault),optional_argc] string getCharPref (in string aPrefName, [optional] in string aDefaultValue); */
61 : NS_IMETHOD GetCharPrefWithDefault(const char * aPrefName, const char * aDefaultValue, uint8_t _argc, char * *_retval) = 0;
62 :
63 : /* [binaryname(GetCharPref),noscript] string getCharPrefXPCOM (in string aPrefName); */
64 : NS_IMETHOD GetCharPref(const char * aPrefName, char * *_retval) = 0;
65 :
66 : /* void setCharPref (in string aPrefName, in string aValue); */
67 : NS_IMETHOD SetCharPref(const char * aPrefName, const char * aValue) = 0;
68 :
69 : /* [optional_argc] AUTF8String getStringPref (in string aPrefName, [optional] in AUTF8String aDefaultValue); */
70 : NS_IMETHOD GetStringPref(const char * aPrefName, const nsACString & aDefaultValue, uint8_t _argc, nsACString & _retval) = 0;
71 :
72 : /* void setStringPref (in string aPrefName, in AUTF8String aValue); */
73 : NS_IMETHOD SetStringPref(const char * aPrefName, const nsACString & aValue) = 0;
74 :
75 : /* [binaryname(GetIntPrefWithDefault),optional_argc] long getIntPref (in string aPrefName, [optional] in long aDefaultValue); */
76 : NS_IMETHOD GetIntPrefWithDefault(const char * aPrefName, int32_t aDefaultValue, uint8_t _argc, int32_t *_retval) = 0;
77 :
78 : /* [binaryname(GetIntPref),noscript] long getIntPrefXPCOM (in string aPrefName); */
79 : NS_IMETHOD GetIntPref(const char * aPrefName, int32_t *_retval) = 0;
80 :
81 : /* void setIntPref (in string aPrefName, in long aValue); */
82 : NS_IMETHOD SetIntPref(const char * aPrefName, int32_t aValue) = 0;
83 :
84 : /* void getComplexValue (in string aPrefName, in nsIIDRef aType, [iid_is (aType), retval] out nsQIResult aValue); */
85 : NS_IMETHOD GetComplexValue(const char * aPrefName, const nsIID & aType, void **aValue) = 0;
86 :
87 : /* void setComplexValue (in string aPrefName, in nsIIDRef aType, in nsISupports aValue); */
88 : NS_IMETHOD SetComplexValue(const char * aPrefName, const nsIID & aType, nsISupports *aValue) = 0;
89 :
90 : /* void clearUserPref (in string aPrefName); */
91 : NS_IMETHOD ClearUserPref(const char * aPrefName) = 0;
92 :
93 : /* void lockPref (in string aPrefName); */
94 : NS_IMETHOD LockPref(const char * aPrefName) = 0;
95 :
96 : /* boolean prefHasUserValue (in string aPrefName); */
97 : NS_IMETHOD PrefHasUserValue(const char * aPrefName, bool *_retval) = 0;
98 :
99 : /* boolean prefIsLocked (in string aPrefName); */
100 : NS_IMETHOD PrefIsLocked(const char * aPrefName, bool *_retval) = 0;
101 :
102 : /* void unlockPref (in string aPrefName); */
103 : NS_IMETHOD UnlockPref(const char * aPrefName) = 0;
104 :
105 : /* void deleteBranch (in string aStartingAt); */
106 : NS_IMETHOD DeleteBranch(const char * aStartingAt) = 0;
107 :
108 : /* void getChildList (in string aStartingAt, [optional] out unsigned long aCount, [array, size_is (aCount), retval] out string aChildArray); */
109 : NS_IMETHOD GetChildList(const char * aStartingAt, uint32_t *aCount, char * **aChildArray) = 0;
110 :
111 : /* void resetBranch (in string aStartingAt); */
112 : NS_IMETHOD ResetBranch(const char * aStartingAt) = 0;
113 :
114 : /* void addObserver (in string aDomain, in nsIObserver aObserver, [optional] in boolean aHoldWeak); */
115 : NS_IMETHOD AddObserver(const char * aDomain, nsIObserver *aObserver, bool aHoldWeak) = 0;
116 :
117 : /* void removeObserver (in string aDomain, in nsIObserver aObserver); */
118 : NS_IMETHOD RemoveObserver(const char * aDomain, nsIObserver *aObserver) = 0;
119 :
120 : };
121 :
122 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPrefBranch, NS_IPREFBRANCH_IID)
123 :
124 : /* Use this macro when declaring classes that implement this interface. */
125 : #define NS_DECL_NSIPREFBRANCH \
126 : NS_IMETHOD GetRoot(char * *aRoot) override; \
127 : NS_IMETHOD GetPrefType(const char * aPrefName, int32_t *_retval) override; \
128 : NS_IMETHOD GetBoolPrefWithDefault(const char * aPrefName, bool aDefaultValue, uint8_t _argc, bool *_retval) override; \
129 : NS_IMETHOD GetBoolPref(const char * aPrefName, bool *_retval) override; \
130 : NS_IMETHOD SetBoolPref(const char * aPrefName, bool aValue) override; \
131 : NS_IMETHOD GetFloatPrefWithDefault(const char * aPrefName, float aDefaultValue, uint8_t _argc, float *_retval) override; \
132 : NS_IMETHOD GetFloatPref(const char * aPrefName, float *_retval) override; \
133 : NS_IMETHOD GetCharPrefWithDefault(const char * aPrefName, const char * aDefaultValue, uint8_t _argc, char * *_retval) override; \
134 : NS_IMETHOD GetCharPref(const char * aPrefName, char * *_retval) override; \
135 : NS_IMETHOD SetCharPref(const char * aPrefName, const char * aValue) override; \
136 : NS_IMETHOD GetStringPref(const char * aPrefName, const nsACString & aDefaultValue, uint8_t _argc, nsACString & _retval) override; \
137 : NS_IMETHOD SetStringPref(const char * aPrefName, const nsACString & aValue) override; \
138 : NS_IMETHOD GetIntPrefWithDefault(const char * aPrefName, int32_t aDefaultValue, uint8_t _argc, int32_t *_retval) override; \
139 : NS_IMETHOD GetIntPref(const char * aPrefName, int32_t *_retval) override; \
140 : NS_IMETHOD SetIntPref(const char * aPrefName, int32_t aValue) override; \
141 : NS_IMETHOD GetComplexValue(const char * aPrefName, const nsIID & aType, void **aValue) override; \
142 : NS_IMETHOD SetComplexValue(const char * aPrefName, const nsIID & aType, nsISupports *aValue) override; \
143 : NS_IMETHOD ClearUserPref(const char * aPrefName) override; \
144 : NS_IMETHOD LockPref(const char * aPrefName) override; \
145 : NS_IMETHOD PrefHasUserValue(const char * aPrefName, bool *_retval) override; \
146 : NS_IMETHOD PrefIsLocked(const char * aPrefName, bool *_retval) override; \
147 : NS_IMETHOD UnlockPref(const char * aPrefName) override; \
148 : NS_IMETHOD DeleteBranch(const char * aStartingAt) override; \
149 : NS_IMETHOD GetChildList(const char * aStartingAt, uint32_t *aCount, char * **aChildArray) override; \
150 : NS_IMETHOD ResetBranch(const char * aStartingAt) override; \
151 : NS_IMETHOD AddObserver(const char * aDomain, nsIObserver *aObserver, bool aHoldWeak) override; \
152 : NS_IMETHOD RemoveObserver(const char * aDomain, nsIObserver *aObserver) override;
153 :
154 : /* Use this macro when declaring the members of this interface when the
155 : class doesn't implement the interface. This is useful for forwarding. */
156 : #define NS_DECL_NON_VIRTUAL_NSIPREFBRANCH \
157 : nsresult GetRoot(char * *aRoot); \
158 : nsresult GetPrefType(const char * aPrefName, int32_t *_retval); \
159 : nsresult GetBoolPrefWithDefault(const char * aPrefName, bool aDefaultValue, uint8_t _argc, bool *_retval); \
160 : nsresult GetBoolPref(const char * aPrefName, bool *_retval); \
161 : nsresult SetBoolPref(const char * aPrefName, bool aValue); \
162 : nsresult GetFloatPrefWithDefault(const char * aPrefName, float aDefaultValue, uint8_t _argc, float *_retval); \
163 : nsresult GetFloatPref(const char * aPrefName, float *_retval); \
164 : nsresult GetCharPrefWithDefault(const char * aPrefName, const char * aDefaultValue, uint8_t _argc, char * *_retval); \
165 : nsresult GetCharPref(const char * aPrefName, char * *_retval); \
166 : nsresult SetCharPref(const char * aPrefName, const char * aValue); \
167 : nsresult GetStringPref(const char * aPrefName, const nsACString & aDefaultValue, uint8_t _argc, nsACString & _retval); \
168 : nsresult SetStringPref(const char * aPrefName, const nsACString & aValue); \
169 : nsresult GetIntPrefWithDefault(const char * aPrefName, int32_t aDefaultValue, uint8_t _argc, int32_t *_retval); \
170 : nsresult GetIntPref(const char * aPrefName, int32_t *_retval); \
171 : nsresult SetIntPref(const char * aPrefName, int32_t aValue); \
172 : nsresult GetComplexValue(const char * aPrefName, const nsIID & aType, void **aValue); \
173 : nsresult SetComplexValue(const char * aPrefName, const nsIID & aType, nsISupports *aValue); \
174 : nsresult ClearUserPref(const char * aPrefName); \
175 : nsresult LockPref(const char * aPrefName); \
176 : nsresult PrefHasUserValue(const char * aPrefName, bool *_retval); \
177 : nsresult PrefIsLocked(const char * aPrefName, bool *_retval); \
178 : nsresult UnlockPref(const char * aPrefName); \
179 : nsresult DeleteBranch(const char * aStartingAt); \
180 : nsresult GetChildList(const char * aStartingAt, uint32_t *aCount, char * **aChildArray); \
181 : nsresult ResetBranch(const char * aStartingAt); \
182 : nsresult AddObserver(const char * aDomain, nsIObserver *aObserver, bool aHoldWeak); \
183 : nsresult RemoveObserver(const char * aDomain, nsIObserver *aObserver);
184 :
185 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
186 : #define NS_FORWARD_NSIPREFBRANCH(_to) \
187 : NS_IMETHOD GetRoot(char * *aRoot) override { return _to GetRoot(aRoot); } \
188 : NS_IMETHOD GetPrefType(const char * aPrefName, int32_t *_retval) override { return _to GetPrefType(aPrefName, _retval); } \
189 : NS_IMETHOD GetBoolPrefWithDefault(const char * aPrefName, bool aDefaultValue, uint8_t _argc, bool *_retval) override { return _to GetBoolPrefWithDefault(aPrefName, aDefaultValue, _argc, _retval); } \
190 : NS_IMETHOD GetBoolPref(const char * aPrefName, bool *_retval) override { return _to GetBoolPref(aPrefName, _retval); } \
191 : NS_IMETHOD SetBoolPref(const char * aPrefName, bool aValue) override { return _to SetBoolPref(aPrefName, aValue); } \
192 : NS_IMETHOD GetFloatPrefWithDefault(const char * aPrefName, float aDefaultValue, uint8_t _argc, float *_retval) override { return _to GetFloatPrefWithDefault(aPrefName, aDefaultValue, _argc, _retval); } \
193 : NS_IMETHOD GetFloatPref(const char * aPrefName, float *_retval) override { return _to GetFloatPref(aPrefName, _retval); } \
194 : NS_IMETHOD GetCharPrefWithDefault(const char * aPrefName, const char * aDefaultValue, uint8_t _argc, char * *_retval) override { return _to GetCharPrefWithDefault(aPrefName, aDefaultValue, _argc, _retval); } \
195 : NS_IMETHOD GetCharPref(const char * aPrefName, char * *_retval) override { return _to GetCharPref(aPrefName, _retval); } \
196 : NS_IMETHOD SetCharPref(const char * aPrefName, const char * aValue) override { return _to SetCharPref(aPrefName, aValue); } \
197 : NS_IMETHOD GetStringPref(const char * aPrefName, const nsACString & aDefaultValue, uint8_t _argc, nsACString & _retval) override { return _to GetStringPref(aPrefName, aDefaultValue, _argc, _retval); } \
198 : NS_IMETHOD SetStringPref(const char * aPrefName, const nsACString & aValue) override { return _to SetStringPref(aPrefName, aValue); } \
199 : NS_IMETHOD GetIntPrefWithDefault(const char * aPrefName, int32_t aDefaultValue, uint8_t _argc, int32_t *_retval) override { return _to GetIntPrefWithDefault(aPrefName, aDefaultValue, _argc, _retval); } \
200 : NS_IMETHOD GetIntPref(const char * aPrefName, int32_t *_retval) override { return _to GetIntPref(aPrefName, _retval); } \
201 : NS_IMETHOD SetIntPref(const char * aPrefName, int32_t aValue) override { return _to SetIntPref(aPrefName, aValue); } \
202 : NS_IMETHOD GetComplexValue(const char * aPrefName, const nsIID & aType, void **aValue) override { return _to GetComplexValue(aPrefName, aType, aValue); } \
203 : NS_IMETHOD SetComplexValue(const char * aPrefName, const nsIID & aType, nsISupports *aValue) override { return _to SetComplexValue(aPrefName, aType, aValue); } \
204 : NS_IMETHOD ClearUserPref(const char * aPrefName) override { return _to ClearUserPref(aPrefName); } \
205 : NS_IMETHOD LockPref(const char * aPrefName) override { return _to LockPref(aPrefName); } \
206 : NS_IMETHOD PrefHasUserValue(const char * aPrefName, bool *_retval) override { return _to PrefHasUserValue(aPrefName, _retval); } \
207 : NS_IMETHOD PrefIsLocked(const char * aPrefName, bool *_retval) override { return _to PrefIsLocked(aPrefName, _retval); } \
208 : NS_IMETHOD UnlockPref(const char * aPrefName) override { return _to UnlockPref(aPrefName); } \
209 : NS_IMETHOD DeleteBranch(const char * aStartingAt) override { return _to DeleteBranch(aStartingAt); } \
210 : NS_IMETHOD GetChildList(const char * aStartingAt, uint32_t *aCount, char * **aChildArray) override { return _to GetChildList(aStartingAt, aCount, aChildArray); } \
211 : NS_IMETHOD ResetBranch(const char * aStartingAt) override { return _to ResetBranch(aStartingAt); } \
212 : NS_IMETHOD AddObserver(const char * aDomain, nsIObserver *aObserver, bool aHoldWeak) override { return _to AddObserver(aDomain, aObserver, aHoldWeak); } \
213 : NS_IMETHOD RemoveObserver(const char * aDomain, nsIObserver *aObserver) override { return _to RemoveObserver(aDomain, aObserver); }
214 :
215 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
216 : #define NS_FORWARD_SAFE_NSIPREFBRANCH(_to) \
217 : NS_IMETHOD GetRoot(char * *aRoot) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRoot(aRoot); } \
218 : NS_IMETHOD GetPrefType(const char * aPrefName, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrefType(aPrefName, _retval); } \
219 : NS_IMETHOD GetBoolPrefWithDefault(const char * aPrefName, bool aDefaultValue, uint8_t _argc, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBoolPrefWithDefault(aPrefName, aDefaultValue, _argc, _retval); } \
220 : NS_IMETHOD GetBoolPref(const char * aPrefName, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBoolPref(aPrefName, _retval); } \
221 : NS_IMETHOD SetBoolPref(const char * aPrefName, bool aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBoolPref(aPrefName, aValue); } \
222 : NS_IMETHOD GetFloatPrefWithDefault(const char * aPrefName, float aDefaultValue, uint8_t _argc, float *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFloatPrefWithDefault(aPrefName, aDefaultValue, _argc, _retval); } \
223 : NS_IMETHOD GetFloatPref(const char * aPrefName, float *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFloatPref(aPrefName, _retval); } \
224 : NS_IMETHOD GetCharPrefWithDefault(const char * aPrefName, const char * aDefaultValue, uint8_t _argc, char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharPrefWithDefault(aPrefName, aDefaultValue, _argc, _retval); } \
225 : NS_IMETHOD GetCharPref(const char * aPrefName, char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharPref(aPrefName, _retval); } \
226 : NS_IMETHOD SetCharPref(const char * aPrefName, const char * aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCharPref(aPrefName, aValue); } \
227 : NS_IMETHOD GetStringPref(const char * aPrefName, const nsACString & aDefaultValue, uint8_t _argc, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringPref(aPrefName, aDefaultValue, _argc, _retval); } \
228 : NS_IMETHOD SetStringPref(const char * aPrefName, const nsACString & aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStringPref(aPrefName, aValue); } \
229 : NS_IMETHOD GetIntPrefWithDefault(const char * aPrefName, int32_t aDefaultValue, uint8_t _argc, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIntPrefWithDefault(aPrefName, aDefaultValue, _argc, _retval); } \
230 : NS_IMETHOD GetIntPref(const char * aPrefName, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIntPref(aPrefName, _retval); } \
231 : NS_IMETHOD SetIntPref(const char * aPrefName, int32_t aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIntPref(aPrefName, aValue); } \
232 : NS_IMETHOD GetComplexValue(const char * aPrefName, const nsIID & aType, void **aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetComplexValue(aPrefName, aType, aValue); } \
233 : NS_IMETHOD SetComplexValue(const char * aPrefName, const nsIID & aType, nsISupports *aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetComplexValue(aPrefName, aType, aValue); } \
234 : NS_IMETHOD ClearUserPref(const char * aPrefName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearUserPref(aPrefName); } \
235 : NS_IMETHOD LockPref(const char * aPrefName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LockPref(aPrefName); } \
236 : NS_IMETHOD PrefHasUserValue(const char * aPrefName, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PrefHasUserValue(aPrefName, _retval); } \
237 : NS_IMETHOD PrefIsLocked(const char * aPrefName, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PrefIsLocked(aPrefName, _retval); } \
238 : NS_IMETHOD UnlockPref(const char * aPrefName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnlockPref(aPrefName); } \
239 : NS_IMETHOD DeleteBranch(const char * aStartingAt) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteBranch(aStartingAt); } \
240 : NS_IMETHOD GetChildList(const char * aStartingAt, uint32_t *aCount, char * **aChildArray) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildList(aStartingAt, aCount, aChildArray); } \
241 : NS_IMETHOD ResetBranch(const char * aStartingAt) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetBranch(aStartingAt); } \
242 : NS_IMETHOD AddObserver(const char * aDomain, nsIObserver *aObserver, bool aHoldWeak) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(aDomain, aObserver, aHoldWeak); } \
243 : NS_IMETHOD RemoveObserver(const char * aDomain, nsIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(aDomain, aObserver); }
244 :
245 : #if 0
246 : /* Use the code below as a template for the implementation class for this interface. */
247 :
248 : /* Header file */
249 : class nsPrefBranch : public nsIPrefBranch
250 : {
251 : public:
252 : NS_DECL_ISUPPORTS
253 : NS_DECL_NSIPREFBRANCH
254 :
255 : nsPrefBranch();
256 :
257 : private:
258 : ~nsPrefBranch();
259 :
260 : protected:
261 : /* additional members */
262 : };
263 :
264 : /* Implementation file */
265 : NS_IMPL_ISUPPORTS(nsPrefBranch, nsIPrefBranch)
266 :
267 : nsPrefBranch::nsPrefBranch()
268 : {
269 : /* member initializers and constructor code */
270 : }
271 :
272 : nsPrefBranch::~nsPrefBranch()
273 : {
274 : /* destructor code */
275 : }
276 :
277 : /* readonly attribute string root; */
278 : NS_IMETHODIMP nsPrefBranch::GetRoot(char * *aRoot)
279 : {
280 : return NS_ERROR_NOT_IMPLEMENTED;
281 : }
282 :
283 : /* long getPrefType (in string aPrefName); */
284 : NS_IMETHODIMP nsPrefBranch::GetPrefType(const char * aPrefName, int32_t *_retval)
285 : {
286 : return NS_ERROR_NOT_IMPLEMENTED;
287 : }
288 :
289 : /* [binaryname(GetBoolPrefWithDefault),optional_argc] boolean getBoolPref (in string aPrefName, [optional] in boolean aDefaultValue); */
290 : NS_IMETHODIMP nsPrefBranch::GetBoolPrefWithDefault(const char * aPrefName, bool aDefaultValue, uint8_t _argc, bool *_retval)
291 : {
292 : return NS_ERROR_NOT_IMPLEMENTED;
293 : }
294 :
295 : /* [binaryname(GetBoolPref),noscript] boolean getBoolPrefXPCOM (in string aPrefName); */
296 : NS_IMETHODIMP nsPrefBranch::GetBoolPref(const char * aPrefName, bool *_retval)
297 : {
298 : return NS_ERROR_NOT_IMPLEMENTED;
299 : }
300 :
301 : /* void setBoolPref (in string aPrefName, in boolean aValue); */
302 : NS_IMETHODIMP nsPrefBranch::SetBoolPref(const char * aPrefName, bool aValue)
303 : {
304 : return NS_ERROR_NOT_IMPLEMENTED;
305 : }
306 :
307 : /* [binaryname(GetFloatPrefWithDefault),optional_argc] float getFloatPref (in string aPrefName, [optional] in float aDefaultValue); */
308 : NS_IMETHODIMP nsPrefBranch::GetFloatPrefWithDefault(const char * aPrefName, float aDefaultValue, uint8_t _argc, float *_retval)
309 : {
310 : return NS_ERROR_NOT_IMPLEMENTED;
311 : }
312 :
313 : /* [binaryname(GetFloatPref),noscript] float getFloatPrefXPCOM (in string aPrefName); */
314 : NS_IMETHODIMP nsPrefBranch::GetFloatPref(const char * aPrefName, float *_retval)
315 : {
316 : return NS_ERROR_NOT_IMPLEMENTED;
317 : }
318 :
319 : /* [binaryname(GetCharPrefWithDefault),optional_argc] string getCharPref (in string aPrefName, [optional] in string aDefaultValue); */
320 : NS_IMETHODIMP nsPrefBranch::GetCharPrefWithDefault(const char * aPrefName, const char * aDefaultValue, uint8_t _argc, char * *_retval)
321 : {
322 : return NS_ERROR_NOT_IMPLEMENTED;
323 : }
324 :
325 : /* [binaryname(GetCharPref),noscript] string getCharPrefXPCOM (in string aPrefName); */
326 : NS_IMETHODIMP nsPrefBranch::GetCharPref(const char * aPrefName, char * *_retval)
327 : {
328 : return NS_ERROR_NOT_IMPLEMENTED;
329 : }
330 :
331 : /* void setCharPref (in string aPrefName, in string aValue); */
332 : NS_IMETHODIMP nsPrefBranch::SetCharPref(const char * aPrefName, const char * aValue)
333 : {
334 : return NS_ERROR_NOT_IMPLEMENTED;
335 : }
336 :
337 : /* [optional_argc] AUTF8String getStringPref (in string aPrefName, [optional] in AUTF8String aDefaultValue); */
338 : NS_IMETHODIMP nsPrefBranch::GetStringPref(const char * aPrefName, const nsACString & aDefaultValue, uint8_t _argc, nsACString & _retval)
339 : {
340 : return NS_ERROR_NOT_IMPLEMENTED;
341 : }
342 :
343 : /* void setStringPref (in string aPrefName, in AUTF8String aValue); */
344 : NS_IMETHODIMP nsPrefBranch::SetStringPref(const char * aPrefName, const nsACString & aValue)
345 : {
346 : return NS_ERROR_NOT_IMPLEMENTED;
347 : }
348 :
349 : /* [binaryname(GetIntPrefWithDefault),optional_argc] long getIntPref (in string aPrefName, [optional] in long aDefaultValue); */
350 : NS_IMETHODIMP nsPrefBranch::GetIntPrefWithDefault(const char * aPrefName, int32_t aDefaultValue, uint8_t _argc, int32_t *_retval)
351 : {
352 : return NS_ERROR_NOT_IMPLEMENTED;
353 : }
354 :
355 : /* [binaryname(GetIntPref),noscript] long getIntPrefXPCOM (in string aPrefName); */
356 : NS_IMETHODIMP nsPrefBranch::GetIntPref(const char * aPrefName, int32_t *_retval)
357 : {
358 : return NS_ERROR_NOT_IMPLEMENTED;
359 : }
360 :
361 : /* void setIntPref (in string aPrefName, in long aValue); */
362 : NS_IMETHODIMP nsPrefBranch::SetIntPref(const char * aPrefName, int32_t aValue)
363 : {
364 : return NS_ERROR_NOT_IMPLEMENTED;
365 : }
366 :
367 : /* void getComplexValue (in string aPrefName, in nsIIDRef aType, [iid_is (aType), retval] out nsQIResult aValue); */
368 : NS_IMETHODIMP nsPrefBranch::GetComplexValue(const char * aPrefName, const nsIID & aType, void **aValue)
369 : {
370 : return NS_ERROR_NOT_IMPLEMENTED;
371 : }
372 :
373 : /* void setComplexValue (in string aPrefName, in nsIIDRef aType, in nsISupports aValue); */
374 : NS_IMETHODIMP nsPrefBranch::SetComplexValue(const char * aPrefName, const nsIID & aType, nsISupports *aValue)
375 : {
376 : return NS_ERROR_NOT_IMPLEMENTED;
377 : }
378 :
379 : /* void clearUserPref (in string aPrefName); */
380 : NS_IMETHODIMP nsPrefBranch::ClearUserPref(const char * aPrefName)
381 : {
382 : return NS_ERROR_NOT_IMPLEMENTED;
383 : }
384 :
385 : /* void lockPref (in string aPrefName); */
386 : NS_IMETHODIMP nsPrefBranch::LockPref(const char * aPrefName)
387 : {
388 : return NS_ERROR_NOT_IMPLEMENTED;
389 : }
390 :
391 : /* boolean prefHasUserValue (in string aPrefName); */
392 : NS_IMETHODIMP nsPrefBranch::PrefHasUserValue(const char * aPrefName, bool *_retval)
393 : {
394 : return NS_ERROR_NOT_IMPLEMENTED;
395 : }
396 :
397 : /* boolean prefIsLocked (in string aPrefName); */
398 : NS_IMETHODIMP nsPrefBranch::PrefIsLocked(const char * aPrefName, bool *_retval)
399 : {
400 : return NS_ERROR_NOT_IMPLEMENTED;
401 : }
402 :
403 : /* void unlockPref (in string aPrefName); */
404 : NS_IMETHODIMP nsPrefBranch::UnlockPref(const char * aPrefName)
405 : {
406 : return NS_ERROR_NOT_IMPLEMENTED;
407 : }
408 :
409 : /* void deleteBranch (in string aStartingAt); */
410 : NS_IMETHODIMP nsPrefBranch::DeleteBranch(const char * aStartingAt)
411 : {
412 : return NS_ERROR_NOT_IMPLEMENTED;
413 : }
414 :
415 : /* void getChildList (in string aStartingAt, [optional] out unsigned long aCount, [array, size_is (aCount), retval] out string aChildArray); */
416 : NS_IMETHODIMP nsPrefBranch::GetChildList(const char * aStartingAt, uint32_t *aCount, char * **aChildArray)
417 : {
418 : return NS_ERROR_NOT_IMPLEMENTED;
419 : }
420 :
421 : /* void resetBranch (in string aStartingAt); */
422 : NS_IMETHODIMP nsPrefBranch::ResetBranch(const char * aStartingAt)
423 : {
424 : return NS_ERROR_NOT_IMPLEMENTED;
425 : }
426 :
427 : /* void addObserver (in string aDomain, in nsIObserver aObserver, [optional] in boolean aHoldWeak); */
428 : NS_IMETHODIMP nsPrefBranch::AddObserver(const char * aDomain, nsIObserver *aObserver, bool aHoldWeak)
429 : {
430 : return NS_ERROR_NOT_IMPLEMENTED;
431 : }
432 :
433 : /* void removeObserver (in string aDomain, in nsIObserver aObserver); */
434 : NS_IMETHODIMP nsPrefBranch::RemoveObserver(const char * aDomain, nsIObserver *aObserver)
435 : {
436 : return NS_ERROR_NOT_IMPLEMENTED;
437 : }
438 :
439 : /* End of implementation class template. */
440 : #endif
441 :
442 :
443 : #define NS_PREFBRANCH_CONTRACTID "@mozilla.org/preferencesbranch;1"
444 : /**
445 : * Notification sent when a preference changes.
446 : */
447 : #define NS_PREFBRANCH_PREFCHANGE_TOPIC_ID "nsPref:changed"
448 :
449 : #endif /* __gen_nsIPrefBranch_h__ */
|