LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIPrefService.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2012-06-02 Functions: 1 1 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/modules/libpref/public/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                 : template<class E, class A> class nsTArray;
      23                 : struct nsTArrayInfallibleAllocator;
      24                 : class nsIFile; /* forward declaration */
      25                 : 
      26                 : class nsILocalFile; /* forward declaration */
      27                 : 
      28                 : 
      29                 : /* starting interface:    nsIPrefService */
      30                 : #define NS_IPREFSERVICE_IID_STR "decb9cc7-c08f-4ea5-be91-a8fc637ce2d2"
      31                 : 
      32                 : #define NS_IPREFSERVICE_IID \
      33                 :   {0xdecb9cc7, 0xc08f, 0x4ea5, \
      34                 :     { 0xbe, 0x91, 0xa8, 0xfc, 0x63, 0x7c, 0xe2, 0xd2 }}
      35                 : 
      36            1419 : class NS_NO_VTABLE NS_SCRIPTABLE nsIPrefService : public nsISupports {
      37                 :  public: 
      38                 : 
      39                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPREFSERVICE_IID)
      40                 : 
      41                 :   /* void readUserPrefs (in nsIFile aFile); */
      42                 :   NS_SCRIPTABLE NS_IMETHOD ReadUserPrefs(nsIFile *aFile) = 0;
      43                 : 
      44                 :   /* void resetPrefs (); */
      45                 :   NS_SCRIPTABLE NS_IMETHOD ResetPrefs(void) = 0;
      46                 : 
      47                 :   /* void resetUserPrefs (); */
      48                 :   NS_SCRIPTABLE NS_IMETHOD ResetUserPrefs(void) = 0;
      49                 : 
      50                 :   /* void savePrefFile (in nsIFile aFile); */
      51                 :   NS_SCRIPTABLE NS_IMETHOD SavePrefFile(nsIFile *aFile) = 0;
      52                 : 
      53                 :   /* nsIPrefBranch getBranch (in string aPrefRoot); */
      54                 :   NS_SCRIPTABLE NS_IMETHOD GetBranch(const char * aPrefRoot, nsIPrefBranch * *_retval NS_OUTPARAM) = 0;
      55                 : 
      56                 :   /* nsIPrefBranch getDefaultBranch (in string aPrefRoot); */
      57                 :   NS_SCRIPTABLE NS_IMETHOD GetDefaultBranch(const char * aPrefRoot, nsIPrefBranch * *_retval NS_OUTPARAM) = 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_SCRIPTABLE NS_IMETHOD ReadUserPrefs(nsIFile *aFile); \
      66                 :   NS_SCRIPTABLE NS_IMETHOD ResetPrefs(void); \
      67                 :   NS_SCRIPTABLE NS_IMETHOD ResetUserPrefs(void); \
      68                 :   NS_SCRIPTABLE NS_IMETHOD SavePrefFile(nsIFile *aFile); \
      69                 :   NS_SCRIPTABLE NS_IMETHOD GetBranch(const char * aPrefRoot, nsIPrefBranch * *_retval NS_OUTPARAM); \
      70                 :   NS_SCRIPTABLE NS_IMETHOD GetDefaultBranch(const char * aPrefRoot, nsIPrefBranch * *_retval NS_OUTPARAM); 
      71                 : 
      72                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      73                 : #define NS_FORWARD_NSIPREFSERVICE(_to) \
      74                 :   NS_SCRIPTABLE NS_IMETHOD ReadUserPrefs(nsIFile *aFile) { return _to ReadUserPrefs(aFile); } \
      75                 :   NS_SCRIPTABLE NS_IMETHOD ResetPrefs(void) { return _to ResetPrefs(); } \
      76                 :   NS_SCRIPTABLE NS_IMETHOD ResetUserPrefs(void) { return _to ResetUserPrefs(); } \
      77                 :   NS_SCRIPTABLE NS_IMETHOD SavePrefFile(nsIFile *aFile) { return _to SavePrefFile(aFile); } \
      78                 :   NS_SCRIPTABLE NS_IMETHOD GetBranch(const char * aPrefRoot, nsIPrefBranch * *_retval NS_OUTPARAM) { return _to GetBranch(aPrefRoot, _retval); } \
      79                 :   NS_SCRIPTABLE NS_IMETHOD GetDefaultBranch(const char * aPrefRoot, nsIPrefBranch * *_retval NS_OUTPARAM) { return _to GetDefaultBranch(aPrefRoot, _retval); } 
      80                 : 
      81                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      82                 : #define NS_FORWARD_SAFE_NSIPREFSERVICE(_to) \
      83                 :   NS_SCRIPTABLE NS_IMETHOD ReadUserPrefs(nsIFile *aFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReadUserPrefs(aFile); } \
      84                 :   NS_SCRIPTABLE NS_IMETHOD ResetPrefs(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetPrefs(); } \
      85                 :   NS_SCRIPTABLE NS_IMETHOD ResetUserPrefs(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetUserPrefs(); } \
      86                 :   NS_SCRIPTABLE NS_IMETHOD SavePrefFile(nsIFile *aFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->SavePrefFile(aFile); } \
      87                 :   NS_SCRIPTABLE NS_IMETHOD GetBranch(const char * aPrefRoot, nsIPrefBranch * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBranch(aPrefRoot, _retval); } \
      88                 :   NS_SCRIPTABLE NS_IMETHOD GetDefaultBranch(const char * aPrefRoot, nsIPrefBranch * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultBranch(aPrefRoot, _retval); } 
      89                 : 
      90                 : #if 0
      91                 : /* Use the code below as a template for the implementation class for this interface. */
      92                 : 
      93                 : /* Header file */
      94                 : class nsPrefService : public nsIPrefService
      95                 : {
      96                 : public:
      97                 :   NS_DECL_ISUPPORTS
      98                 :   NS_DECL_NSIPREFSERVICE
      99                 : 
     100                 :   nsPrefService();
     101                 : 
     102                 : private:
     103                 :   ~nsPrefService();
     104                 : 
     105                 : protected:
     106                 :   /* additional members */
     107                 : };
     108                 : 
     109                 : /* Implementation file */
     110                 : NS_IMPL_ISUPPORTS1(nsPrefService, nsIPrefService)
     111                 : 
     112                 : nsPrefService::nsPrefService()
     113                 : {
     114                 :   /* member initializers and constructor code */
     115                 : }
     116                 : 
     117                 : nsPrefService::~nsPrefService()
     118                 : {
     119                 :   /* destructor code */
     120                 : }
     121                 : 
     122                 : /* void readUserPrefs (in nsIFile aFile); */
     123                 : NS_IMETHODIMP nsPrefService::ReadUserPrefs(nsIFile *aFile)
     124                 : {
     125                 :     return NS_ERROR_NOT_IMPLEMENTED;
     126                 : }
     127                 : 
     128                 : /* void resetPrefs (); */
     129                 : NS_IMETHODIMP nsPrefService::ResetPrefs()
     130                 : {
     131                 :     return NS_ERROR_NOT_IMPLEMENTED;
     132                 : }
     133                 : 
     134                 : /* void resetUserPrefs (); */
     135                 : NS_IMETHODIMP nsPrefService::ResetUserPrefs()
     136                 : {
     137                 :     return NS_ERROR_NOT_IMPLEMENTED;
     138                 : }
     139                 : 
     140                 : /* void savePrefFile (in nsIFile aFile); */
     141                 : NS_IMETHODIMP nsPrefService::SavePrefFile(nsIFile *aFile)
     142                 : {
     143                 :     return NS_ERROR_NOT_IMPLEMENTED;
     144                 : }
     145                 : 
     146                 : /* nsIPrefBranch getBranch (in string aPrefRoot); */
     147                 : NS_IMETHODIMP nsPrefService::GetBranch(const char * aPrefRoot, nsIPrefBranch * *_retval NS_OUTPARAM)
     148                 : {
     149                 :     return NS_ERROR_NOT_IMPLEMENTED;
     150                 : }
     151                 : 
     152                 : /* nsIPrefBranch getDefaultBranch (in string aPrefRoot); */
     153                 : NS_IMETHODIMP nsPrefService::GetDefaultBranch(const char * aPrefRoot, nsIPrefBranch * *_retval NS_OUTPARAM)
     154                 : {
     155                 :     return NS_ERROR_NOT_IMPLEMENTED;
     156                 : }
     157                 : 
     158                 : /* End of implementation class template. */
     159                 : #endif
     160                 : 
     161                 : 
     162                 : #define NS_PREFSERVICE_CID                             \
     163                 :   { /* {1cd91b88-1dd2-11b2-92e1-ed22ed298000} */       \
     164                 :     0x91ca2441,                                        \
     165                 :     0x050f,                                            \
     166                 :     0x4f7c,                                            \
     167                 :     { 0x9d, 0xf8, 0x75, 0xb4, 0x0e, 0xa4, 0x01, 0x56 } \
     168                 :   }
     169                 : #define NS_PREFSERVICE_CONTRACTID "@mozilla.org/preferences-service;1"
     170                 : #define NS_PREFSERVICE_CLASSNAME "Preferences Server"
     171                 : /**
     172                 :  * Notification sent before reading the default user preferences files.
     173                 :  */
     174                 : #define NS_PREFSERVICE_READ_TOPIC_ID "prefservice:before-read-userprefs"
     175                 : /**
     176                 :  * Notification sent when resetPrefs has been called, but before the actual
     177                 :  * reset process occurs.
     178                 :  */
     179                 : #define NS_PREFSERVICE_RESET_TOPIC_ID "prefservice:before-reset"
     180                 : /**
     181                 :  * Notification sent when after reading app-provided default
     182                 :  * preferences, but before user profile override defaults or extension
     183                 :  * defaults are loaded.
     184                 :  */
     185                 : #define NS_PREFSERVICE_APPDEFAULTS_TOPIC_ID "prefservice:after-app-defaults"
     186                 : 
     187                 : #endif /* __gen_nsIPrefService_h__ */

Generated by: LCOV version 1.7