LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIPrefService.h (source / functions) Hit Total Coverage
Test: output.info Lines: 1 1 100.0 %
Date: 2017-07-14 16:53:18 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPrefService.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIPrefService_h__
       6             : #define __gen_nsIPrefService_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #ifndef __gen_nsIPrefBranch_h__
      14             : #include "nsIPrefBranch.h"
      15             : #endif
      16             : 
      17             : /* For IDL files that don't want to include root IDL files. */
      18             : #ifndef NS_NO_VTABLE
      19             : #define NS_NO_VTABLE
      20             : #endif
      21             : struct PrefTuple;
      22             : #include "nsTArrayForwardDeclare.h"
      23             : class nsIFile; /* forward declaration */
      24             : 
      25             : 
      26             : /* starting interface:    nsIPrefService */
      27             : #define NS_IPREFSERVICE_IID_STR "1f84fd56-3956-40df-b86a-1ea01402ee96"
      28             : 
      29             : #define NS_IPREFSERVICE_IID \
      30             :   {0x1f84fd56, 0x3956, 0x40df, \
      31             :     { 0xb8, 0x6a, 0x1e, 0xa0, 0x14, 0x02, 0xee, 0x96 }}
      32             : 
      33           3 : class NS_NO_VTABLE nsIPrefService : public nsISupports {
      34             :  public:
      35             : 
      36             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPREFSERVICE_IID)
      37             : 
      38             :   /* void resetPrefs (); */
      39             :   NS_IMETHOD ResetPrefs(void) = 0;
      40             : 
      41             :   /* void resetUserPrefs (); */
      42             :   NS_IMETHOD ResetUserPrefs(void) = 0;
      43             : 
      44             :   /* void savePrefFile (in nsIFile aFile); */
      45             :   NS_IMETHOD SavePrefFile(nsIFile *aFile) = 0;
      46             : 
      47             :   /* nsIPrefBranch getBranch (in string aPrefRoot); */
      48             :   NS_IMETHOD GetBranch(const char * aPrefRoot, nsIPrefBranch * *_retval) = 0;
      49             : 
      50             :   /* nsIPrefBranch getDefaultBranch (in string aPrefRoot); */
      51             :   NS_IMETHOD GetDefaultBranch(const char * aPrefRoot, nsIPrefBranch * *_retval) = 0;
      52             : 
      53             :   /* readonly attribute boolean dirty; */
      54             :   NS_IMETHOD GetDirty(bool *aDirty) = 0;
      55             : 
      56             :   /* void readUserPrefsFromFile (in nsIFile aFile); */
      57             :   NS_IMETHOD ReadUserPrefsFromFile(nsIFile *aFile) = 0;
      58             : 
      59             : };
      60             : 
      61             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPrefService, NS_IPREFSERVICE_IID)
      62             : 
      63             : /* Use this macro when declaring classes that implement this interface. */
      64             : #define NS_DECL_NSIPREFSERVICE \
      65             :   NS_IMETHOD ResetPrefs(void) override; \
      66             :   NS_IMETHOD ResetUserPrefs(void) override; \
      67             :   NS_IMETHOD SavePrefFile(nsIFile *aFile) override; \
      68             :   NS_IMETHOD GetBranch(const char * aPrefRoot, nsIPrefBranch * *_retval) override; \
      69             :   NS_IMETHOD GetDefaultBranch(const char * aPrefRoot, nsIPrefBranch * *_retval) override; \
      70             :   NS_IMETHOD GetDirty(bool *aDirty) override; \
      71             :   NS_IMETHOD ReadUserPrefsFromFile(nsIFile *aFile) override; 
      72             : 
      73             : /* Use this macro when declaring the members of this interface when the
      74             :    class doesn't implement the interface. This is useful for forwarding. */
      75             : #define NS_DECL_NON_VIRTUAL_NSIPREFSERVICE \
      76             :   nsresult ResetPrefs(void); \
      77             :   nsresult ResetUserPrefs(void); \
      78             :   nsresult SavePrefFile(nsIFile *aFile); \
      79             :   nsresult GetBranch(const char * aPrefRoot, nsIPrefBranch * *_retval); \
      80             :   nsresult GetDefaultBranch(const char * aPrefRoot, nsIPrefBranch * *_retval); \
      81             :   nsresult GetDirty(bool *aDirty); \
      82             :   nsresult ReadUserPrefsFromFile(nsIFile *aFile); 
      83             : 
      84             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      85             : #define NS_FORWARD_NSIPREFSERVICE(_to) \
      86             :   NS_IMETHOD ResetPrefs(void) override { return _to ResetPrefs(); } \
      87             :   NS_IMETHOD ResetUserPrefs(void) override { return _to ResetUserPrefs(); } \
      88             :   NS_IMETHOD SavePrefFile(nsIFile *aFile) override { return _to SavePrefFile(aFile); } \
      89             :   NS_IMETHOD GetBranch(const char * aPrefRoot, nsIPrefBranch * *_retval) override { return _to GetBranch(aPrefRoot, _retval); } \
      90             :   NS_IMETHOD GetDefaultBranch(const char * aPrefRoot, nsIPrefBranch * *_retval) override { return _to GetDefaultBranch(aPrefRoot, _retval); } \
      91             :   NS_IMETHOD GetDirty(bool *aDirty) override { return _to GetDirty(aDirty); } \
      92             :   NS_IMETHOD ReadUserPrefsFromFile(nsIFile *aFile) override { return _to ReadUserPrefsFromFile(aFile); } 
      93             : 
      94             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      95             : #define NS_FORWARD_SAFE_NSIPREFSERVICE(_to) \
      96             :   NS_IMETHOD ResetPrefs(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetPrefs(); } \
      97             :   NS_IMETHOD ResetUserPrefs(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetUserPrefs(); } \
      98             :   NS_IMETHOD SavePrefFile(nsIFile *aFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SavePrefFile(aFile); } \
      99             :   NS_IMETHOD GetBranch(const char * aPrefRoot, nsIPrefBranch * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBranch(aPrefRoot, _retval); } \
     100             :   NS_IMETHOD GetDefaultBranch(const char * aPrefRoot, nsIPrefBranch * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultBranch(aPrefRoot, _retval); } \
     101             :   NS_IMETHOD GetDirty(bool *aDirty) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirty(aDirty); } \
     102             :   NS_IMETHOD ReadUserPrefsFromFile(nsIFile *aFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReadUserPrefsFromFile(aFile); } 
     103             : 
     104             : #if 0
     105             : /* Use the code below as a template for the implementation class for this interface. */
     106             : 
     107             : /* Header file */
     108             : class nsPrefService : public nsIPrefService
     109             : {
     110             : public:
     111             :   NS_DECL_ISUPPORTS
     112             :   NS_DECL_NSIPREFSERVICE
     113             : 
     114             :   nsPrefService();
     115             : 
     116             : private:
     117             :   ~nsPrefService();
     118             : 
     119             : protected:
     120             :   /* additional members */
     121             : };
     122             : 
     123             : /* Implementation file */
     124             : NS_IMPL_ISUPPORTS(nsPrefService, nsIPrefService)
     125             : 
     126             : nsPrefService::nsPrefService()
     127             : {
     128             :   /* member initializers and constructor code */
     129             : }
     130             : 
     131             : nsPrefService::~nsPrefService()
     132             : {
     133             :   /* destructor code */
     134             : }
     135             : 
     136             : /* void resetPrefs (); */
     137             : NS_IMETHODIMP nsPrefService::ResetPrefs()
     138             : {
     139             :     return NS_ERROR_NOT_IMPLEMENTED;
     140             : }
     141             : 
     142             : /* void resetUserPrefs (); */
     143             : NS_IMETHODIMP nsPrefService::ResetUserPrefs()
     144             : {
     145             :     return NS_ERROR_NOT_IMPLEMENTED;
     146             : }
     147             : 
     148             : /* void savePrefFile (in nsIFile aFile); */
     149             : NS_IMETHODIMP nsPrefService::SavePrefFile(nsIFile *aFile)
     150             : {
     151             :     return NS_ERROR_NOT_IMPLEMENTED;
     152             : }
     153             : 
     154             : /* nsIPrefBranch getBranch (in string aPrefRoot); */
     155             : NS_IMETHODIMP nsPrefService::GetBranch(const char * aPrefRoot, nsIPrefBranch * *_retval)
     156             : {
     157             :     return NS_ERROR_NOT_IMPLEMENTED;
     158             : }
     159             : 
     160             : /* nsIPrefBranch getDefaultBranch (in string aPrefRoot); */
     161             : NS_IMETHODIMP nsPrefService::GetDefaultBranch(const char * aPrefRoot, nsIPrefBranch * *_retval)
     162             : {
     163             :     return NS_ERROR_NOT_IMPLEMENTED;
     164             : }
     165             : 
     166             : /* readonly attribute boolean dirty; */
     167             : NS_IMETHODIMP nsPrefService::GetDirty(bool *aDirty)
     168             : {
     169             :     return NS_ERROR_NOT_IMPLEMENTED;
     170             : }
     171             : 
     172             : /* void readUserPrefsFromFile (in nsIFile aFile); */
     173             : NS_IMETHODIMP nsPrefService::ReadUserPrefsFromFile(nsIFile *aFile)
     174             : {
     175             :     return NS_ERROR_NOT_IMPLEMENTED;
     176             : }
     177             : 
     178             : /* End of implementation class template. */
     179             : #endif
     180             : 
     181             : 
     182             : #define NS_PREFSERVICE_CID                             \
     183             :   { /* {1cd91b88-1dd2-11b2-92e1-ed22ed298000} */       \
     184             :     0x91ca2441,                                        \
     185             :     0x050f,                                            \
     186             :     0x4f7c,                                            \
     187             :     { 0x9d, 0xf8, 0x75, 0xb4, 0x0e, 0xa4, 0x01, 0x56 } \
     188             :   }
     189             : #define NS_PREFSERVICE_CONTRACTID "@mozilla.org/preferences-service;1"
     190             : /**
     191             :  * Notification sent before reading the default user preferences files.
     192             :  */
     193             : #define NS_PREFSERVICE_READ_TOPIC_ID "prefservice:before-read-userprefs"
     194             : /**
     195             :  * Notification sent when resetPrefs has been called, but before the actual
     196             :  * reset process occurs.
     197             :  */
     198             : #define NS_PREFSERVICE_RESET_TOPIC_ID "prefservice:before-reset"
     199             : /**
     200             :  * Notification sent when after reading app-provided default
     201             :  * preferences, but before user profile override defaults or extension
     202             :  * defaults are loaded.
     203             :  */
     204             : #define NS_PREFSERVICE_APPDEFAULTS_TOPIC_ID "prefservice:after-app-defaults"
     205             : 
     206             : #endif /* __gen_nsIPrefService_h__ */

Generated by: LCOV version 1.13