⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nsiprefbranch.h

📁 linux下的一款播放器
💻 H
📖 第 1 页 / 共 2 页
字号:
   *   * @note   * This method can be called on either a default or user branch but, in   * effect, always operates on the default branch.   *   * @return NS_OK The preference was successfully unlocked.   * @return Other The preference does not exist or an error occurred.   *   * @see lockPref   */  /* void unlockPref (in string aPrefName); */  NS_IMETHOD UnlockPref(const char *aPrefName) = 0;  /**   * Called to remove all of the preferences referenced by this branch.   *   * @param aStartingAt The point on the branch at which to start the deleting   *                    preferences. Pass in "" to remove all preferences   *                    referenced by this branch.   *   * @note   * This method can be called on either a default or user branch but, in   * effect, always operates on both.   *   * @return NS_OK The preference(s) were successfully removed.   * @return Other The preference(s) do not exist or an error occurred.   */  /* void deleteBranch (in string aStartingAt); */  NS_IMETHOD DeleteBranch(const char *aStartingAt) = 0;  /**   * Returns an array of strings representing the child preferences of the   * root of this branch.   *    * @param aStartingAt The point on the branch at which to start enumerating   *                    the child preferences. Pass in "" to enumerate all   *                    preferences referenced by this branch.   * @param aCount      Receives the number of elements in the array.   * @param aChildArray Receives the array of child preferences.   *   * @note   * This method can be called on either a default or user branch but, in   * effect, always operates on both.   *   * @return NS_OK The preference list was successfully retrieved.   * @return Other The preference(s) do not exist or an error occurred.   */  /* void getChildList (in string aStartingAt, out unsigned long aCount, [array, size_is (aCount), retval] out string aChildArray); */  NS_IMETHOD GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray) = 0;  /**   * Called to reset all of the preferences referenced by this branch to their   * default values.   *   * @param aStartingAt The point on the branch at which to start the resetting   *                    preferences to their default values. Pass in "" to   *                    reset all preferences referenced by this branch.   *   * @note   * This method can be called on either a default or user branch but, in   * effect, always operates on the user branch.   *   * @return NS_OK The preference(s) were successfully reset.   * @return Other The preference(s) do not exist or an error occurred.   */  /* void resetBranch (in string aStartingAt); */  NS_IMETHOD ResetBranch(const char *aStartingAt) = 0;};/* Use this macro when declaring classes that implement this interface. */#define NS_DECL_NSIPREFBRANCH \  NS_IMETHOD GetRoot(char * *aRoot); \  NS_IMETHOD GetPrefType(const char *aPrefName, PRInt32 *_retval); \  NS_IMETHOD GetBoolPref(const char *aPrefName, PRBool *_retval); \  NS_IMETHOD SetBoolPref(const char *aPrefName, PRInt32 aValue); \  NS_IMETHOD GetCharPref(const char *aPrefName, char **_retval); \  NS_IMETHOD SetCharPref(const char *aPrefName, const char *aValue); \  NS_IMETHOD GetIntPref(const char *aPrefName, PRInt32 *_retval); \  NS_IMETHOD SetIntPref(const char *aPrefName, PRInt32 aValue); \  NS_IMETHOD GetComplexValue(const char *aPrefName, const nsIID & aType, void * *aValue); \  NS_IMETHOD SetComplexValue(const char *aPrefName, const nsIID & aType, nsISupports *aValue); \  NS_IMETHOD ClearUserPref(const char *aPrefName); \  NS_IMETHOD LockPref(const char *aPrefName); \  NS_IMETHOD PrefHasUserValue(const char *aPrefName, PRBool *_retval); \  NS_IMETHOD PrefIsLocked(const char *aPrefName, PRBool *_retval); \  NS_IMETHOD UnlockPref(const char *aPrefName); \  NS_IMETHOD DeleteBranch(const char *aStartingAt); \  NS_IMETHOD GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray); \  NS_IMETHOD ResetBranch(const char *aStartingAt); /* Use this macro to declare functions that forward the behavior of this interface to another object. */#define NS_FORWARD_NSIPREFBRANCH(_to) \  NS_IMETHOD GetRoot(char * *aRoot) { return _to GetRoot(aRoot); } \  NS_IMETHOD GetPrefType(const char *aPrefName, PRInt32 *_retval) { return _to GetPrefType(aPrefName, _retval); } \  NS_IMETHOD GetBoolPref(const char *aPrefName, PRBool *_retval) { return _to GetBoolPref(aPrefName, _retval); } \  NS_IMETHOD SetBoolPref(const char *aPrefName, PRInt32 aValue) { return _to SetBoolPref(aPrefName, aValue); } \  NS_IMETHOD GetCharPref(const char *aPrefName, char **_retval) { return _to GetCharPref(aPrefName, _retval); } \  NS_IMETHOD SetCharPref(const char *aPrefName, const char *aValue) { return _to SetCharPref(aPrefName, aValue); } \  NS_IMETHOD GetIntPref(const char *aPrefName, PRInt32 *_retval) { return _to GetIntPref(aPrefName, _retval); } \  NS_IMETHOD SetIntPref(const char *aPrefName, PRInt32 aValue) { return _to SetIntPref(aPrefName, aValue); } \  NS_IMETHOD GetComplexValue(const char *aPrefName, const nsIID & aType, void * *aValue) { return _to GetComplexValue(aPrefName, aType, aValue); } \  NS_IMETHOD SetComplexValue(const char *aPrefName, const nsIID & aType, nsISupports *aValue) { return _to SetComplexValue(aPrefName, aType, aValue); } \  NS_IMETHOD ClearUserPref(const char *aPrefName) { return _to ClearUserPref(aPrefName); } \  NS_IMETHOD LockPref(const char *aPrefName) { return _to LockPref(aPrefName); } \  NS_IMETHOD PrefHasUserValue(const char *aPrefName, PRBool *_retval) { return _to PrefHasUserValue(aPrefName, _retval); } \  NS_IMETHOD PrefIsLocked(const char *aPrefName, PRBool *_retval) { return _to PrefIsLocked(aPrefName, _retval); } \  NS_IMETHOD UnlockPref(const char *aPrefName) { return _to UnlockPref(aPrefName); } \  NS_IMETHOD DeleteBranch(const char *aStartingAt) { return _to DeleteBranch(aStartingAt); } \  NS_IMETHOD GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray) { return _to GetChildList(aStartingAt, aCount, aChildArray); } \  NS_IMETHOD ResetBranch(const char *aStartingAt) { return _to ResetBranch(aStartingAt); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */#define NS_FORWARD_SAFE_NSIPREFBRANCH(_to) \  NS_IMETHOD GetRoot(char * *aRoot) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRoot(aRoot); } \  NS_IMETHOD GetPrefType(const char *aPrefName, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrefType(aPrefName, _retval); } \  NS_IMETHOD GetBoolPref(const char *aPrefName, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBoolPref(aPrefName, _retval); } \  NS_IMETHOD SetBoolPref(const char *aPrefName, PRInt32 aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBoolPref(aPrefName, aValue); } \  NS_IMETHOD GetCharPref(const char *aPrefName, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharPref(aPrefName, _retval); } \  NS_IMETHOD SetCharPref(const char *aPrefName, const char *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCharPref(aPrefName, aValue); } \  NS_IMETHOD GetIntPref(const char *aPrefName, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIntPref(aPrefName, _retval); } \  NS_IMETHOD SetIntPref(const char *aPrefName, PRInt32 aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIntPref(aPrefName, aValue); } \  NS_IMETHOD GetComplexValue(const char *aPrefName, const nsIID & aType, void * *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetComplexValue(aPrefName, aType, aValue); } \  NS_IMETHOD SetComplexValue(const char *aPrefName, const nsIID & aType, nsISupports *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetComplexValue(aPrefName, aType, aValue); } \  NS_IMETHOD ClearUserPref(const char *aPrefName) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearUserPref(aPrefName); } \  NS_IMETHOD LockPref(const char *aPrefName) { return !_to ? NS_ERROR_NULL_POINTER : _to->LockPref(aPrefName); } \  NS_IMETHOD PrefHasUserValue(const char *aPrefName, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->PrefHasUserValue(aPrefName, _retval); } \  NS_IMETHOD PrefIsLocked(const char *aPrefName, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->PrefIsLocked(aPrefName, _retval); } \  NS_IMETHOD UnlockPref(const char *aPrefName) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnlockPref(aPrefName); } \  NS_IMETHOD DeleteBranch(const char *aStartingAt) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteBranch(aStartingAt); } \  NS_IMETHOD GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildList(aStartingAt, aCount, aChildArray); } \  NS_IMETHOD ResetBranch(const char *aStartingAt) { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetBranch(aStartingAt); } #if 0/* Use the code below as a template for the implementation class for this interface. *//* Header file */class nsPrefBranch : public nsIPrefBranch{public:  NS_DECL_ISUPPORTS  NS_DECL_NSIPREFBRANCH  nsPrefBranch();  virtual ~nsPrefBranch();  /* additional members */};/* Implementation file */NS_IMPL_ISUPPORTS1(nsPrefBranch, nsIPrefBranch)nsPrefBranch::nsPrefBranch(){  /* member initializers and constructor code */}nsPrefBranch::~nsPrefBranch(){  /* destructor code */}/* readonly attribute string root; */NS_IMETHODIMP nsPrefBranch::GetRoot(char * *aRoot){    return NS_ERROR_NOT_IMPLEMENTED;}/* long getPrefType (in string aPrefName); */NS_IMETHODIMP nsPrefBranch::GetPrefType(const char *aPrefName, PRInt32 *_retval){    return NS_ERROR_NOT_IMPLEMENTED;}/* boolean getBoolPref (in string aPrefName); */NS_IMETHODIMP nsPrefBranch::GetBoolPref(const char *aPrefName, PRBool *_retval){    return NS_ERROR_NOT_IMPLEMENTED;}/* void setBoolPref (in string aPrefName, in long aValue); */NS_IMETHODIMP nsPrefBranch::SetBoolPref(const char *aPrefName, PRInt32 aValue){    return NS_ERROR_NOT_IMPLEMENTED;}/* string getCharPref (in string aPrefName); */NS_IMETHODIMP nsPrefBranch::GetCharPref(const char *aPrefName, char **_retval){    return NS_ERROR_NOT_IMPLEMENTED;}/* void setCharPref (in string aPrefName, in string aValue); */NS_IMETHODIMP nsPrefBranch::SetCharPref(const char *aPrefName, const char *aValue){    return NS_ERROR_NOT_IMPLEMENTED;}/* long getIntPref (in string aPrefName); */NS_IMETHODIMP nsPrefBranch::GetIntPref(const char *aPrefName, PRInt32 *_retval){    return NS_ERROR_NOT_IMPLEMENTED;}/* void setIntPref (in string aPrefName, in long aValue); */NS_IMETHODIMP nsPrefBranch::SetIntPref(const char *aPrefName, PRInt32 aValue){    return NS_ERROR_NOT_IMPLEMENTED;}/* void getComplexValue (in string aPrefName, in nsIIDRef aType, [iid_is (aType), retval] out nsQIResult aValue); */NS_IMETHODIMP nsPrefBranch::GetComplexValue(const char *aPrefName, const nsIID & aType, void * *aValue){    return NS_ERROR_NOT_IMPLEMENTED;}/* void setComplexValue (in string aPrefName, in nsIIDRef aType, in nsISupports aValue); */NS_IMETHODIMP nsPrefBranch::SetComplexValue(const char *aPrefName, const nsIID & aType, nsISupports *aValue){    return NS_ERROR_NOT_IMPLEMENTED;}/* void clearUserPref (in string aPrefName); */NS_IMETHODIMP nsPrefBranch::ClearUserPref(const char *aPrefName){    return NS_ERROR_NOT_IMPLEMENTED;}/* void lockPref (in string aPrefName); */NS_IMETHODIMP nsPrefBranch::LockPref(const char *aPrefName){    return NS_ERROR_NOT_IMPLEMENTED;}/* boolean prefHasUserValue (in string aPrefName); */NS_IMETHODIMP nsPrefBranch::PrefHasUserValue(const char *aPrefName, PRBool *_retval){    return NS_ERROR_NOT_IMPLEMENTED;}/* boolean prefIsLocked (in string aPrefName); */NS_IMETHODIMP nsPrefBranch::PrefIsLocked(const char *aPrefName, PRBool *_retval){    return NS_ERROR_NOT_IMPLEMENTED;}/* void unlockPref (in string aPrefName); */NS_IMETHODIMP nsPrefBranch::UnlockPref(const char *aPrefName){    return NS_ERROR_NOT_IMPLEMENTED;}/* void deleteBranch (in string aStartingAt); */NS_IMETHODIMP nsPrefBranch::DeleteBranch(const char *aStartingAt){    return NS_ERROR_NOT_IMPLEMENTED;}/* void getChildList (in string aStartingAt, out unsigned long aCount, [array, size_is (aCount), retval] out string aChildArray); */NS_IMETHODIMP nsPrefBranch::GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray){    return NS_ERROR_NOT_IMPLEMENTED;}/* void resetBranch (in string aStartingAt); */NS_IMETHODIMP nsPrefBranch::ResetBranch(const char *aStartingAt){    return NS_ERROR_NOT_IMPLEMENTED;}/* End of implementation class template. */#endif#define NS_PREFBRANCH_CONTRACTID "@mozilla.org/preferencesbranch;1"#define NS_PREFBRANCH_CLASSNAME "Preferences Branch"#endif /* __gen_nsIPrefBranch_h__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -