nsIPrefBranch.h 22 KB

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