PageRenderTime 95ms CodeModel.GetById 60ms app.highlight 12ms RepoModel.GetById 18ms app.codeStats 1ms

/gecko_api/include/nsIPrefBranch.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 566 lines | 190 code | 64 blank | 312 comment | 0 complexity | a1753f226b8b99eead9274e56872c5be MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/modules/libpref/public/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
 18/* starting interface:    nsIPrefBranch */
 19#define NS_IPREFBRANCH_IID_STR "56c35506-f14b-11d3-99d3-ddbfac2ccf65"
 20
 21#define NS_IPREFBRANCH_IID \
 22  {0x56c35506, 0xf14b, 0x11d3, \
 23    { 0x99, 0xd3, 0xdd, 0xbf, 0xac, 0x2c, 0xcf, 0x65 }}
 24
 25/**
 26 * The nsIPrefBranch interface is used to manipulate the preferences data. This
 27 * object may be obtained from the preferences service (nsIPrefService) and
 28 * used to get and set default and/or user preferences across the application.
 29 *
 30 * This object is created with a "root" value which describes the base point in
 31 * the preferences "tree" from which this "branch" stems. Preferences are
 32 * accessed off of this root by using just the final portion of the preference.
 33 * For example, if this object is created with the root "browser.startup.",
 34 * the preferences "browser.startup.page", "browser.startup.homepage",
 35 * and "browser.startup.homepage_override" can be accessed by simply passing
 36 * "page", "homepage", or "homepage_override" to the various Get/Set methods.
 37 *
 38 * @see nsIPrefService
 39 * 
 40 * @status FROZEN
 41 */
 42class NS_NO_VTABLE NS_SCRIPTABLE nsIPrefBranch : public nsISupports {
 43 public: 
 44
 45  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPREFBRANCH_IID)
 46
 47  /**
 48   * Values describing the basic preference types.
 49   *
 50   * @see getPrefType
 51   */
 52  enum { PREF_INVALID = 0 };
 53
 54  enum { PREF_STRING = 32 };
 55
 56  enum { PREF_INT = 64 };
 57
 58  enum { PREF_BOOL = 128 };
 59
 60  /**
 61   * Called to get the root on which this branch is based, such as
 62   * "browser.startup."
 63   */
 64  /* readonly attribute string root; */
 65  NS_SCRIPTABLE NS_IMETHOD GetRoot(char * *aRoot) = 0;
 66
 67  /**
 68   * Called to determine the type of a specific preference.
 69   *
 70   * @param aPrefName The preference to get the type of.
 71   *
 72   * @return long     A value representing the type of the preference. This
 73   *                  value will be PREF_STRING, PREF_INT, or PREF_BOOL.
 74   */
 75  /* long getPrefType (in string aPrefName); */
 76  NS_SCRIPTABLE NS_IMETHOD GetPrefType(const char *aPrefName, PRInt32 *_retval) = 0;
 77
 78  /**
 79   * Called to get the state of an individual boolean preference.
 80   *
 81   * @param aPrefName The boolean preference to get the state of.
 82   *
 83   * @return boolean  The value of the requested boolean preference.
 84   *
 85   * @see setBoolPref
 86   */
 87  /* boolean getBoolPref (in string aPrefName); */
 88  NS_SCRIPTABLE NS_IMETHOD GetBoolPref(const char *aPrefName, PRBool *_retval) = 0;
 89
 90  /**
 91   * Called to set the state of an individual boolean preference.
 92   *
 93   * @param aPrefName The boolean preference to set the state of.
 94   * @param aValue    The boolean value to set the preference to.
 95   *
 96   * @return NS_OK The value was successfully set.
 97   * @return Other The value was not set or is the wrong type.
 98   *
 99   * @see getBoolPref
100   */
101  /* void setBoolPref (in string aPrefName, in long aValue); */
102  NS_SCRIPTABLE NS_IMETHOD SetBoolPref(const char *aPrefName, PRInt32 aValue) = 0;
103
104  /**
105   * Called to get the state of an individual string preference.
106   *
107   * @param aPrefName The string preference to retrieve.
108   *
109   * @return string   The value of the requested string preference.
110   *
111   * @see setCharPref
112   */
113  /* string getCharPref (in string aPrefName); */
114  NS_SCRIPTABLE NS_IMETHOD GetCharPref(const char *aPrefName, char **_retval) = 0;
115
116  /**
117   * Called to set the state of an individual string preference.
118   *
119   * @param aPrefName The string preference to set.
120   * @param aValue    The string value to set the preference to.
121   *
122   * @return NS_OK The value was successfully set.
123   * @return Other The value was not set or is the wrong type.
124   *
125   * @see getCharPref
126   */
127  /* void setCharPref (in string aPrefName, in string aValue); */
128  NS_SCRIPTABLE NS_IMETHOD SetCharPref(const char *aPrefName, const char *aValue) = 0;
129
130  /**
131   * Called to get the state of an individual integer preference.
132   *
133   * @param aPrefName The integer preference to get the value of.
134   *
135   * @return long     The value of the requested integer preference.
136   *
137   * @see setIntPref
138   */
139  /* long getIntPref (in string aPrefName); */
140  NS_SCRIPTABLE NS_IMETHOD GetIntPref(const char *aPrefName, PRInt32 *_retval) = 0;
141
142  /**
143   * Called to set the state of an individual integer preference.
144   *
145   * @param aPrefName The integer preference to set the value of.
146   * @param aValue    The integer value to set the preference to.
147   *
148   * @return NS_OK The value was successfully set.
149   * @return Other The value was not set or is the wrong type.
150   *
151   * @see getIntPref
152   */
153  /* void setIntPref (in string aPrefName, in long aValue); */
154  NS_SCRIPTABLE NS_IMETHOD SetIntPref(const char *aPrefName, PRInt32 aValue) = 0;
155
156  /**
157   * Called to get the state of an individual complex preference. A complex
158   * preference is a preference which represents an XPCOM object that can not
159   * be easily represented using a standard boolean, integer or string value.
160   *
161   * @param aPrefName The complex preference to get the value of.
162   * @param aType     The XPCOM interface that this complex preference
163   *                  represents. Interfaces currently supported are:
164   *                    - nsILocalFile
165   *                    - nsISupportsString (UniChar)
166   *                    - nsIPrefLocalizedString (Localized UniChar)
167   *                    - nsIFileSpec (deprecated - to be removed eventually)
168   * @param aValue    The XPCOM object into which to the complex preference 
169   *                  value should be retrieved.
170   *
171   * @return NS_OK The value was successfully retrieved.
172   * @return Other The value does not exist or is the wrong type.
173   *
174   * @see setComplexValue
175   */
176  /* void getComplexValue (in string aPrefName, in nsIIDRef aType, [iid_is (aType), retval] out nsQIResult aValue); */
177  NS_SCRIPTABLE NS_IMETHOD GetComplexValue(const char *aPrefName, const nsIID & aType, void * *aValue) = 0;
178
179  /**
180   * Called to set the state of an individual complex preference. A complex
181   * preference is a preference which represents an XPCOM object that can not
182   * be easily represented using a standard boolean, integer or string value.
183   *
184   * @param aPrefName The complex preference to set the value of.
185   * @param aType     The XPCOM interface that this complex preference
186   *                  represents. Interfaces currently supported are:
187   *                    - nsILocalFile
188   *                    - nsISupportsString (UniChar)
189   *                    - nsIPrefLocalizedString (Localized UniChar)
190   *                    - nsIFileSpec (deprecated - to be removed eventually)
191   * @param aValue    The XPCOM object from which to set the complex preference 
192   *                  value.
193   *
194   * @return NS_OK The value was successfully set.
195   * @return Other The value was not set or is the wrong type.
196   *
197   * @see getComplexValue
198   */
199  /* void setComplexValue (in string aPrefName, in nsIIDRef aType, in nsISupports aValue); */
200  NS_SCRIPTABLE NS_IMETHOD SetComplexValue(const char *aPrefName, const nsIID & aType, nsISupports *aValue) = 0;
201
202  /**
203   * Called to clear a user set value from a specific preference. This will, in
204   * effect, reset the value to the default value. If no default value exists
205   * the preference will cease to exist.
206   *
207   * @param aPrefName The preference to be cleared.
208   *
209   * @note
210   * This method does nothing if this object is a default branch.
211   *
212   * @return NS_OK The user preference was successfully cleared.
213   * @return Other The preference does not exist or have a user set value.
214   */
215  /* void clearUserPref (in string aPrefName); */
216  NS_SCRIPTABLE NS_IMETHOD ClearUserPref(const char *aPrefName) = 0;
217
218  /**
219   * Called to lock a specific preference. Locking a preference will cause the
220   * preference service to always return the default value regardless of
221   * whether there is a user set value or not.
222   *
223   * @param aPrefName The preference to be locked.
224   *
225   * @note
226   * This method can be called on either a default or user branch but, in
227   * effect, always operates on the default branch.
228   *
229   * @return NS_OK The preference was successfully locked.
230   * @return Other The preference does not exist or an error occurred.
231   *
232   * @see unlockPref
233   */
234  /* void lockPref (in string aPrefName); */
235  NS_SCRIPTABLE NS_IMETHOD LockPref(const char *aPrefName) = 0;
236
237  /**
238   * Called to check if a specific preference has a user value associated to
239   * it.
240   *
241   * @param aPrefName The preference to be tested.
242   *
243   * @note
244   * This method can be called on either a default or user branch but, in
245   * effect, always operates on the user branch.
246   *
247   * @note
248   * If a preference was manually set to a value that equals the default value,
249   * then the preference no longer has a user set value, i.e. it is
250   * considered reset to its default value.
251   * In particular, this method will return false for such a preference and
252   * the preference will not be saved to a file by nsIPrefService.savePrefFile.
253   *
254   * @return boolean  true  The preference has a user set value.
255   *                  false The preference only has a default value.
256   */
257  /* boolean prefHasUserValue (in string aPrefName); */
258  NS_SCRIPTABLE NS_IMETHOD PrefHasUserValue(const char *aPrefName, PRBool *_retval) = 0;
259
260  /**
261   * Called to check if a specific preference is locked. If a preference is
262   * locked calling its Get method will always return the default value.
263   *
264   * @param aPrefName The preference to be tested.
265   *
266   * @note
267   * This method can be called on either a default or user branch but, in
268   * effect, always operates on the default branch.
269   *
270   * @return boolean  true  The preference is locked.
271   *                  false The preference is not locked.
272   *
273   * @see lockPref
274   * @see unlockPref
275   */
276  /* boolean prefIsLocked (in string aPrefName); */
277  NS_SCRIPTABLE NS_IMETHOD PrefIsLocked(const char *aPrefName, PRBool *_retval) = 0;
278
279  /**
280   * Called to unlock a specific preference. Unlocking a previously locked 
281   * preference allows the preference service to once again return the user set
282   * value of the preference.
283   *
284   * @param aPrefName The preference to be unlocked.
285   *
286   * @note
287   * This method can be called on either a default or user branch but, in
288   * effect, always operates on the default branch.
289   *
290   * @return NS_OK The preference was successfully unlocked.
291   * @return Other The preference does not exist or an error occurred.
292   *
293   * @see lockPref
294   */
295  /* void unlockPref (in string aPrefName); */
296  NS_SCRIPTABLE NS_IMETHOD UnlockPref(const char *aPrefName) = 0;
297
298  /**
299   * Called to remove all of the preferences referenced by this branch.
300   *
301   * @param aStartingAt The point on the branch at which to start the deleting
302   *                    preferences. Pass in "" to remove all preferences
303   *                    referenced by this branch.
304   *
305   * @note
306   * This method can be called on either a default or user branch but, in
307   * effect, always operates on both.
308   *
309   * @return NS_OK The preference(s) were successfully removed.
310   * @return Other The preference(s) do not exist or an error occurred.
311   */
312  /* void deleteBranch (in string aStartingAt); */
313  NS_SCRIPTABLE NS_IMETHOD DeleteBranch(const char *aStartingAt) = 0;
314
315  /**
316   * Returns an array of strings representing the child preferences of the
317   * root of this branch.
318   * 
319   * @param aStartingAt The point on the branch at which to start enumerating
320   *                    the child preferences. Pass in "" to enumerate all
321   *                    preferences referenced by this branch.
322   * @param aCount      Receives the number of elements in the array.
323   * @param aChildArray Receives the array of child preferences.
324   *
325   * @note
326   * This method can be called on either a default or user branch but, in
327   * effect, always operates on both.
328   *
329   * @return NS_OK The preference list was successfully retrieved.
330   * @return Other The preference(s) do not exist or an error occurred.
331   */
332  /* void getChildList (in string aStartingAt, out unsigned long aCount, [array, size_is (aCount), retval] out string aChildArray); */
333  NS_SCRIPTABLE NS_IMETHOD GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray) = 0;
334
335  /**
336   * Called to reset all of the preferences referenced by this branch to their
337   * default values.
338   *
339   * @param aStartingAt The point on the branch at which to start the resetting
340   *                    preferences to their default values. Pass in "" to
341   *                    reset all preferences referenced by this branch.
342   *
343   * @note
344   * This method can be called on either a default or user branch but, in
345   * effect, always operates on the user branch.
346   *
347   * @return NS_OK The preference(s) were successfully reset.
348   * @return Other The preference(s) do not exist or an error occurred.
349   */
350  /* void resetBranch (in string aStartingAt); */
351  NS_SCRIPTABLE NS_IMETHOD ResetBranch(const char *aStartingAt) = 0;
352
353};
354
355  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPrefBranch, NS_IPREFBRANCH_IID)
356
357/* Use this macro when declaring classes that implement this interface. */
358#define NS_DECL_NSIPREFBRANCH \
359  NS_SCRIPTABLE NS_IMETHOD GetRoot(char * *aRoot); \
360  NS_SCRIPTABLE NS_IMETHOD GetPrefType(const char *aPrefName, PRInt32 *_retval); \
361  NS_SCRIPTABLE NS_IMETHOD GetBoolPref(const char *aPrefName, PRBool *_retval); \
362  NS_SCRIPTABLE NS_IMETHOD SetBoolPref(const char *aPrefName, PRInt32 aValue); \
363  NS_SCRIPTABLE NS_IMETHOD GetCharPref(const char *aPrefName, char **_retval); \
364  NS_SCRIPTABLE NS_IMETHOD SetCharPref(const char *aPrefName, const char *aValue); \
365  NS_SCRIPTABLE NS_IMETHOD GetIntPref(const char *aPrefName, PRInt32 *_retval); \
366  NS_SCRIPTABLE NS_IMETHOD SetIntPref(const char *aPrefName, PRInt32 aValue); \
367  NS_SCRIPTABLE NS_IMETHOD GetComplexValue(const char *aPrefName, const nsIID & aType, void * *aValue); \
368  NS_SCRIPTABLE NS_IMETHOD SetComplexValue(const char *aPrefName, const nsIID & aType, nsISupports *aValue); \
369  NS_SCRIPTABLE NS_IMETHOD ClearUserPref(const char *aPrefName); \
370  NS_SCRIPTABLE NS_IMETHOD LockPref(const char *aPrefName); \
371  NS_SCRIPTABLE NS_IMETHOD PrefHasUserValue(const char *aPrefName, PRBool *_retval); \
372  NS_SCRIPTABLE NS_IMETHOD PrefIsLocked(const char *aPrefName, PRBool *_retval); \
373  NS_SCRIPTABLE NS_IMETHOD UnlockPref(const char *aPrefName); \
374  NS_SCRIPTABLE NS_IMETHOD DeleteBranch(const char *aStartingAt); \
375  NS_SCRIPTABLE NS_IMETHOD GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray); \
376  NS_SCRIPTABLE NS_IMETHOD ResetBranch(const char *aStartingAt); 
377
378/* Use this macro to declare functions that forward the behavior of this interface to another object. */
379#define NS_FORWARD_NSIPREFBRANCH(_to) \
380  NS_SCRIPTABLE NS_IMETHOD GetRoot(char * *aRoot) { return _to GetRoot(aRoot); } \
381  NS_SCRIPTABLE NS_IMETHOD GetPrefType(const char *aPrefName, PRInt32 *_retval) { return _to GetPrefType(aPrefName, _retval); } \
382  NS_SCRIPTABLE NS_IMETHOD GetBoolPref(const char *aPrefName, PRBool *_retval) { return _to GetBoolPref(aPrefName, _retval); } \
383  NS_SCRIPTABLE NS_IMETHOD SetBoolPref(const char *aPrefName, PRInt32 aValue) { return _to SetBoolPref(aPrefName, aValue); } \
384  NS_SCRIPTABLE NS_IMETHOD GetCharPref(const char *aPrefName, char **_retval) { return _to GetCharPref(aPrefName, _retval); } \
385  NS_SCRIPTABLE NS_IMETHOD SetCharPref(const char *aPrefName, const char *aValue) { return _to SetCharPref(aPrefName, aValue); } \
386  NS_SCRIPTABLE NS_IMETHOD GetIntPref(const char *aPrefName, PRInt32 *_retval) { return _to GetIntPref(aPrefName, _retval); } \
387  NS_SCRIPTABLE NS_IMETHOD SetIntPref(const char *aPrefName, PRInt32 aValue) { return _to SetIntPref(aPrefName, aValue); } \
388  NS_SCRIPTABLE NS_IMETHOD GetComplexValue(const char *aPrefName, const nsIID & aType, void * *aValue) { return _to GetComplexValue(aPrefName, aType, aValue); } \
389  NS_SCRIPTABLE NS_IMETHOD SetComplexValue(const char *aPrefName, const nsIID & aType, nsISupports *aValue) { return _to SetComplexValue(aPrefName, aType, aValue); } \
390  NS_SCRIPTABLE NS_IMETHOD ClearUserPref(const char *aPrefName) { return _to ClearUserPref(aPrefName); } \
391  NS_SCRIPTABLE NS_IMETHOD LockPref(const char *aPrefName) { return _to LockPref(aPrefName); } \
392  NS_SCRIPTABLE NS_IMETHOD PrefHasUserValue(const char *aPrefName, PRBool *_retval) { return _to PrefHasUserValue(aPrefName, _retval); } \
393  NS_SCRIPTABLE NS_IMETHOD PrefIsLocked(const char *aPrefName, PRBool *_retval) { return _to PrefIsLocked(aPrefName, _retval); } \
394  NS_SCRIPTABLE NS_IMETHOD UnlockPref(const char *aPrefName) { return _to UnlockPref(aPrefName); } \
395  NS_SCRIPTABLE NS_IMETHOD DeleteBranch(const char *aStartingAt) { return _to DeleteBranch(aStartingAt); } \
396  NS_SCRIPTABLE NS_IMETHOD GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray) { return _to GetChildList(aStartingAt, aCount, aChildArray); } \
397  NS_SCRIPTABLE NS_IMETHOD ResetBranch(const char *aStartingAt) { return _to ResetBranch(aStartingAt); } 
398
399/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
400#define NS_FORWARD_SAFE_NSIPREFBRANCH(_to) \
401  NS_SCRIPTABLE NS_IMETHOD GetRoot(char * *aRoot) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRoot(aRoot); } \
402  NS_SCRIPTABLE NS_IMETHOD GetPrefType(const char *aPrefName, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrefType(aPrefName, _retval); } \
403  NS_SCRIPTABLE NS_IMETHOD GetBoolPref(const char *aPrefName, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBoolPref(aPrefName, _retval); } \
404  NS_SCRIPTABLE NS_IMETHOD SetBoolPref(const char *aPrefName, PRInt32 aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBoolPref(aPrefName, aValue); } \
405  NS_SCRIPTABLE NS_IMETHOD GetCharPref(const char *aPrefName, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharPref(aPrefName, _retval); } \
406  NS_SCRIPTABLE NS_IMETHOD SetCharPref(const char *aPrefName, const char *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCharPref(aPrefName, aValue); } \
407  NS_SCRIPTABLE NS_IMETHOD GetIntPref(const char *aPrefName, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIntPref(aPrefName, _retval); } \
408  NS_SCRIPTABLE NS_IMETHOD SetIntPref(const char *aPrefName, PRInt32 aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIntPref(aPrefName, aValue); } \
409  NS_SCRIPTABLE NS_IMETHOD GetComplexValue(const char *aPrefName, const nsIID & aType, void * *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetComplexValue(aPrefName, aType, aValue); } \
410  NS_SCRIPTABLE NS_IMETHOD SetComplexValue(const char *aPrefName, const nsIID & aType, nsISupports *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetComplexValue(aPrefName, aType, aValue); } \
411  NS_SCRIPTABLE NS_IMETHOD ClearUserPref(const char *aPrefName) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearUserPref(aPrefName); } \
412  NS_SCRIPTABLE NS_IMETHOD LockPref(const char *aPrefName) { return !_to ? NS_ERROR_NULL_POINTER : _to->LockPref(aPrefName); } \
413  NS_SCRIPTABLE NS_IMETHOD PrefHasUserValue(const char *aPrefName, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->PrefHasUserValue(aPrefName, _retval); } \
414  NS_SCRIPTABLE NS_IMETHOD PrefIsLocked(const char *aPrefName, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->PrefIsLocked(aPrefName, _retval); } \
415  NS_SCRIPTABLE NS_IMETHOD UnlockPref(const char *aPrefName) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnlockPref(aPrefName); } \
416  NS_SCRIPTABLE NS_IMETHOD DeleteBranch(const char *aStartingAt) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteBranch(aStartingAt); } \
417  NS_SCRIPTABLE NS_IMETHOD GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildList(aStartingAt, aCount, aChildArray); } \
418  NS_SCRIPTABLE NS_IMETHOD ResetBranch(const char *aStartingAt) { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetBranch(aStartingAt); } 
419
420#if 0
421/* Use the code below as a template for the implementation class for this interface. */
422
423/* Header file */
424class nsPrefBranch : public nsIPrefBranch
425{
426public:
427  NS_DECL_ISUPPORTS
428  NS_DECL_NSIPREFBRANCH
429
430  nsPrefBranch();
431
432private:
433  ~nsPrefBranch();
434
435protected:
436  /* additional members */
437};
438
439/* Implementation file */
440NS_IMPL_ISUPPORTS1(nsPrefBranch, nsIPrefBranch)
441
442nsPrefBranch::nsPrefBranch()
443{
444  /* member initializers and constructor code */
445}
446
447nsPrefBranch::~nsPrefBranch()
448{
449  /* destructor code */
450}
451
452/* readonly attribute string root; */
453NS_IMETHODIMP nsPrefBranch::GetRoot(char * *aRoot)
454{
455    return NS_ERROR_NOT_IMPLEMENTED;
456}
457
458/* long getPrefType (in string aPrefName); */
459NS_IMETHODIMP nsPrefBranch::GetPrefType(const char *aPrefName, PRInt32 *_retval)
460{
461    return NS_ERROR_NOT_IMPLEMENTED;
462}
463
464/* boolean getBoolPref (in string aPrefName); */
465NS_IMETHODIMP nsPrefBranch::GetBoolPref(const char *aPrefName, PRBool *_retval)
466{
467    return NS_ERROR_NOT_IMPLEMENTED;
468}
469
470/* void setBoolPref (in string aPrefName, in long aValue); */
471NS_IMETHODIMP nsPrefBranch::SetBoolPref(const char *aPrefName, PRInt32 aValue)
472{
473    return NS_ERROR_NOT_IMPLEMENTED;
474}
475
476/* string getCharPref (in string aPrefName); */
477NS_IMETHODIMP nsPrefBranch::GetCharPref(const char *aPrefName, char **_retval)
478{
479    return NS_ERROR_NOT_IMPLEMENTED;
480}
481
482/* void setCharPref (in string aPrefName, in string aValue); */
483NS_IMETHODIMP nsPrefBranch::SetCharPref(const char *aPrefName, const char *aValue)
484{
485    return NS_ERROR_NOT_IMPLEMENTED;
486}
487
488/* long getIntPref (in string aPrefName); */
489NS_IMETHODIMP nsPrefBranch::GetIntPref(const char *aPrefName, PRInt32 *_retval)
490{
491    return NS_ERROR_NOT_IMPLEMENTED;
492}
493
494/* void setIntPref (in string aPrefName, in long aValue); */
495NS_IMETHODIMP nsPrefBranch::SetIntPref(const char *aPrefName, PRInt32 aValue)
496{
497    return NS_ERROR_NOT_IMPLEMENTED;
498}
499
500/* void getComplexValue (in string aPrefName, in nsIIDRef aType, [iid_is (aType), retval] out nsQIResult aValue); */
501NS_IMETHODIMP nsPrefBranch::GetComplexValue(const char *aPrefName, const nsIID & aType, void * *aValue)
502{
503    return NS_ERROR_NOT_IMPLEMENTED;
504}
505
506/* void setComplexValue (in string aPrefName, in nsIIDRef aType, in nsISupports aValue); */
507NS_IMETHODIMP nsPrefBranch::SetComplexValue(const char *aPrefName, const nsIID & aType, nsISupports *aValue)
508{
509    return NS_ERROR_NOT_IMPLEMENTED;
510}
511
512/* void clearUserPref (in string aPrefName); */
513NS_IMETHODIMP nsPrefBranch::ClearUserPref(const char *aPrefName)
514{
515    return NS_ERROR_NOT_IMPLEMENTED;
516}
517
518/* void lockPref (in string aPrefName); */
519NS_IMETHODIMP nsPrefBranch::LockPref(const char *aPrefName)
520{
521    return NS_ERROR_NOT_IMPLEMENTED;
522}
523
524/* boolean prefHasUserValue (in string aPrefName); */
525NS_IMETHODIMP nsPrefBranch::PrefHasUserValue(const char *aPrefName, PRBool *_retval)
526{
527    return NS_ERROR_NOT_IMPLEMENTED;
528}
529
530/* boolean prefIsLocked (in string aPrefName); */
531NS_IMETHODIMP nsPrefBranch::PrefIsLocked(const char *aPrefName, PRBool *_retval)
532{
533    return NS_ERROR_NOT_IMPLEMENTED;
534}
535
536/* void unlockPref (in string aPrefName); */
537NS_IMETHODIMP nsPrefBranch::UnlockPref(const char *aPrefName)
538{
539    return NS_ERROR_NOT_IMPLEMENTED;
540}
541
542/* void deleteBranch (in string aStartingAt); */
543NS_IMETHODIMP nsPrefBranch::DeleteBranch(const char *aStartingAt)
544{
545    return NS_ERROR_NOT_IMPLEMENTED;
546}
547
548/* void getChildList (in string aStartingAt, out unsigned long aCount, [array, size_is (aCount), retval] out string aChildArray); */
549NS_IMETHODIMP nsPrefBranch::GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray)
550{
551    return NS_ERROR_NOT_IMPLEMENTED;
552}
553
554/* void resetBranch (in string aStartingAt); */
555NS_IMETHODIMP nsPrefBranch::ResetBranch(const char *aStartingAt)
556{
557    return NS_ERROR_NOT_IMPLEMENTED;
558}
559
560/* End of implementation class template. */
561#endif
562
563#define NS_PREFBRANCH_CONTRACTID "@mozilla.org/preferencesbranch;1"
564#define NS_PREFBRANCH_CLASSNAME "Preferences Branch"
565
566#endif /* __gen_nsIPrefBranch_h__ */