LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIGConfService.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/xpcom/system/nsIGConfService.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIGConfService_h__
       6                 : #define __gen_nsIGConfService_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : #ifndef __gen_nsIArray_h__
      14                 : #include "nsIArray.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                 : 
      22                 : /* starting interface:    nsIGConfService */
      23                 : #define NS_IGCONFSERVICE_IID_STR "5009acae-6973-48c3-b6d6-52c692cc5d9d"
      24                 : 
      25                 : #define NS_IGCONFSERVICE_IID \
      26                 :   {0x5009acae, 0x6973, 0x48c3, \
      27                 :     { 0xb6, 0xd6, 0x52, 0xc6, 0x92, 0xcc, 0x5d, 0x9d }}
      28                 : 
      29             272 : class NS_NO_VTABLE NS_SCRIPTABLE nsIGConfService : public nsISupports {
      30                 :  public: 
      31                 : 
      32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGCONFSERVICE_IID)
      33                 : 
      34                 :   /* boolean getBool (in AUTF8String key); */
      35                 :   NS_SCRIPTABLE NS_IMETHOD GetBool(const nsACString & key, bool *_retval NS_OUTPARAM) = 0;
      36                 : 
      37                 :   /* AUTF8String getString (in AUTF8String key); */
      38                 :   NS_SCRIPTABLE NS_IMETHOD GetString(const nsACString & key, nsACString & _retval NS_OUTPARAM) = 0;
      39                 : 
      40                 :   /* long getInt (in AUTF8String key); */
      41                 :   NS_SCRIPTABLE NS_IMETHOD GetInt(const nsACString & key, PRInt32 *_retval NS_OUTPARAM) = 0;
      42                 : 
      43                 :   /* float getFloat (in AUTF8String key); */
      44                 :   NS_SCRIPTABLE NS_IMETHOD GetFloat(const nsACString & key, float *_retval NS_OUTPARAM) = 0;
      45                 : 
      46                 :   /* nsIArray getStringList (in AUTF8String key); */
      47                 :   NS_SCRIPTABLE NS_IMETHOD GetStringList(const nsACString & key, nsIArray * *_retval NS_OUTPARAM) = 0;
      48                 : 
      49                 :   /* void setBool (in AUTF8String key, in boolean value); */
      50                 :   NS_SCRIPTABLE NS_IMETHOD SetBool(const nsACString & key, bool value) = 0;
      51                 : 
      52                 :   /* void setString (in AUTF8String key, in AUTF8String value); */
      53                 :   NS_SCRIPTABLE NS_IMETHOD SetString(const nsACString & key, const nsACString & value) = 0;
      54                 : 
      55                 :   /* void setInt (in AUTF8String key, in long value); */
      56                 :   NS_SCRIPTABLE NS_IMETHOD SetInt(const nsACString & key, PRInt32 value) = 0;
      57                 : 
      58                 :   /* void setFloat (in AUTF8String key, in float value); */
      59                 :   NS_SCRIPTABLE NS_IMETHOD SetFloat(const nsACString & key, float value) = 0;
      60                 : 
      61                 :   /* AUTF8String getAppForProtocol (in AUTF8String scheme, out boolean enabled); */
      62                 :   NS_SCRIPTABLE NS_IMETHOD GetAppForProtocol(const nsACString & scheme, bool *enabled NS_OUTPARAM, nsACString & _retval NS_OUTPARAM) = 0;
      63                 : 
      64                 :   /* boolean handlerRequiresTerminal (in AUTF8String scheme); */
      65                 :   NS_SCRIPTABLE NS_IMETHOD HandlerRequiresTerminal(const nsACString & scheme, bool *_retval NS_OUTPARAM) = 0;
      66                 : 
      67                 :   /* void setAppForProtocol (in AUTF8String scheme, in AUTF8String command); */
      68                 :   NS_SCRIPTABLE NS_IMETHOD SetAppForProtocol(const nsACString & scheme, const nsACString & command) = 0;
      69                 : 
      70                 : };
      71                 : 
      72                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIGConfService, NS_IGCONFSERVICE_IID)
      73                 : 
      74                 : /* Use this macro when declaring classes that implement this interface. */
      75                 : #define NS_DECL_NSIGCONFSERVICE \
      76                 :   NS_SCRIPTABLE NS_IMETHOD GetBool(const nsACString & key, bool *_retval NS_OUTPARAM); \
      77                 :   NS_SCRIPTABLE NS_IMETHOD GetString(const nsACString & key, nsACString & _retval NS_OUTPARAM); \
      78                 :   NS_SCRIPTABLE NS_IMETHOD GetInt(const nsACString & key, PRInt32 *_retval NS_OUTPARAM); \
      79                 :   NS_SCRIPTABLE NS_IMETHOD GetFloat(const nsACString & key, float *_retval NS_OUTPARAM); \
      80                 :   NS_SCRIPTABLE NS_IMETHOD GetStringList(const nsACString & key, nsIArray * *_retval NS_OUTPARAM); \
      81                 :   NS_SCRIPTABLE NS_IMETHOD SetBool(const nsACString & key, bool value); \
      82                 :   NS_SCRIPTABLE NS_IMETHOD SetString(const nsACString & key, const nsACString & value); \
      83                 :   NS_SCRIPTABLE NS_IMETHOD SetInt(const nsACString & key, PRInt32 value); \
      84                 :   NS_SCRIPTABLE NS_IMETHOD SetFloat(const nsACString & key, float value); \
      85                 :   NS_SCRIPTABLE NS_IMETHOD GetAppForProtocol(const nsACString & scheme, bool *enabled NS_OUTPARAM, nsACString & _retval NS_OUTPARAM); \
      86                 :   NS_SCRIPTABLE NS_IMETHOD HandlerRequiresTerminal(const nsACString & scheme, bool *_retval NS_OUTPARAM); \
      87                 :   NS_SCRIPTABLE NS_IMETHOD SetAppForProtocol(const nsACString & scheme, const nsACString & command); 
      88                 : 
      89                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      90                 : #define NS_FORWARD_NSIGCONFSERVICE(_to) \
      91                 :   NS_SCRIPTABLE NS_IMETHOD GetBool(const nsACString & key, bool *_retval NS_OUTPARAM) { return _to GetBool(key, _retval); } \
      92                 :   NS_SCRIPTABLE NS_IMETHOD GetString(const nsACString & key, nsACString & _retval NS_OUTPARAM) { return _to GetString(key, _retval); } \
      93                 :   NS_SCRIPTABLE NS_IMETHOD GetInt(const nsACString & key, PRInt32 *_retval NS_OUTPARAM) { return _to GetInt(key, _retval); } \
      94                 :   NS_SCRIPTABLE NS_IMETHOD GetFloat(const nsACString & key, float *_retval NS_OUTPARAM) { return _to GetFloat(key, _retval); } \
      95                 :   NS_SCRIPTABLE NS_IMETHOD GetStringList(const nsACString & key, nsIArray * *_retval NS_OUTPARAM) { return _to GetStringList(key, _retval); } \
      96                 :   NS_SCRIPTABLE NS_IMETHOD SetBool(const nsACString & key, bool value) { return _to SetBool(key, value); } \
      97                 :   NS_SCRIPTABLE NS_IMETHOD SetString(const nsACString & key, const nsACString & value) { return _to SetString(key, value); } \
      98                 :   NS_SCRIPTABLE NS_IMETHOD SetInt(const nsACString & key, PRInt32 value) { return _to SetInt(key, value); } \
      99                 :   NS_SCRIPTABLE NS_IMETHOD SetFloat(const nsACString & key, float value) { return _to SetFloat(key, value); } \
     100                 :   NS_SCRIPTABLE NS_IMETHOD GetAppForProtocol(const nsACString & scheme, bool *enabled NS_OUTPARAM, nsACString & _retval NS_OUTPARAM) { return _to GetAppForProtocol(scheme, enabled, _retval); } \
     101                 :   NS_SCRIPTABLE NS_IMETHOD HandlerRequiresTerminal(const nsACString & scheme, bool *_retval NS_OUTPARAM) { return _to HandlerRequiresTerminal(scheme, _retval); } \
     102                 :   NS_SCRIPTABLE NS_IMETHOD SetAppForProtocol(const nsACString & scheme, const nsACString & command) { return _to SetAppForProtocol(scheme, command); } 
     103                 : 
     104                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     105                 : #define NS_FORWARD_SAFE_NSIGCONFSERVICE(_to) \
     106                 :   NS_SCRIPTABLE NS_IMETHOD GetBool(const nsACString & key, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBool(key, _retval); } \
     107                 :   NS_SCRIPTABLE NS_IMETHOD GetString(const nsACString & key, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetString(key, _retval); } \
     108                 :   NS_SCRIPTABLE NS_IMETHOD GetInt(const nsACString & key, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInt(key, _retval); } \
     109                 :   NS_SCRIPTABLE NS_IMETHOD GetFloat(const nsACString & key, float *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFloat(key, _retval); } \
     110                 :   NS_SCRIPTABLE NS_IMETHOD GetStringList(const nsACString & key, nsIArray * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringList(key, _retval); } \
     111                 :   NS_SCRIPTABLE NS_IMETHOD SetBool(const nsACString & key, bool value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBool(key, value); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD SetString(const nsACString & key, const nsACString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetString(key, value); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD SetInt(const nsACString & key, PRInt32 value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInt(key, value); } \
     114                 :   NS_SCRIPTABLE NS_IMETHOD SetFloat(const nsACString & key, float value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFloat(key, value); } \
     115                 :   NS_SCRIPTABLE NS_IMETHOD GetAppForProtocol(const nsACString & scheme, bool *enabled NS_OUTPARAM, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppForProtocol(scheme, enabled, _retval); } \
     116                 :   NS_SCRIPTABLE NS_IMETHOD HandlerRequiresTerminal(const nsACString & scheme, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandlerRequiresTerminal(scheme, _retval); } \
     117                 :   NS_SCRIPTABLE NS_IMETHOD SetAppForProtocol(const nsACString & scheme, const nsACString & command) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAppForProtocol(scheme, command); } 
     118                 : 
     119                 : #if 0
     120                 : /* Use the code below as a template for the implementation class for this interface. */
     121                 : 
     122                 : /* Header file */
     123                 : class nsGConfService : public nsIGConfService
     124                 : {
     125                 : public:
     126                 :   NS_DECL_ISUPPORTS
     127                 :   NS_DECL_NSIGCONFSERVICE
     128                 : 
     129                 :   nsGConfService();
     130                 : 
     131                 : private:
     132                 :   ~nsGConfService();
     133                 : 
     134                 : protected:
     135                 :   /* additional members */
     136                 : };
     137                 : 
     138                 : /* Implementation file */
     139                 : NS_IMPL_ISUPPORTS1(nsGConfService, nsIGConfService)
     140                 : 
     141                 : nsGConfService::nsGConfService()
     142                 : {
     143                 :   /* member initializers and constructor code */
     144                 : }
     145                 : 
     146                 : nsGConfService::~nsGConfService()
     147                 : {
     148                 :   /* destructor code */
     149                 : }
     150                 : 
     151                 : /* boolean getBool (in AUTF8String key); */
     152                 : NS_IMETHODIMP nsGConfService::GetBool(const nsACString & key, bool *_retval NS_OUTPARAM)
     153                 : {
     154                 :     return NS_ERROR_NOT_IMPLEMENTED;
     155                 : }
     156                 : 
     157                 : /* AUTF8String getString (in AUTF8String key); */
     158                 : NS_IMETHODIMP nsGConfService::GetString(const nsACString & key, nsACString & _retval NS_OUTPARAM)
     159                 : {
     160                 :     return NS_ERROR_NOT_IMPLEMENTED;
     161                 : }
     162                 : 
     163                 : /* long getInt (in AUTF8String key); */
     164                 : NS_IMETHODIMP nsGConfService::GetInt(const nsACString & key, PRInt32 *_retval NS_OUTPARAM)
     165                 : {
     166                 :     return NS_ERROR_NOT_IMPLEMENTED;
     167                 : }
     168                 : 
     169                 : /* float getFloat (in AUTF8String key); */
     170                 : NS_IMETHODIMP nsGConfService::GetFloat(const nsACString & key, float *_retval NS_OUTPARAM)
     171                 : {
     172                 :     return NS_ERROR_NOT_IMPLEMENTED;
     173                 : }
     174                 : 
     175                 : /* nsIArray getStringList (in AUTF8String key); */
     176                 : NS_IMETHODIMP nsGConfService::GetStringList(const nsACString & key, nsIArray * *_retval NS_OUTPARAM)
     177                 : {
     178                 :     return NS_ERROR_NOT_IMPLEMENTED;
     179                 : }
     180                 : 
     181                 : /* void setBool (in AUTF8String key, in boolean value); */
     182                 : NS_IMETHODIMP nsGConfService::SetBool(const nsACString & key, bool value)
     183                 : {
     184                 :     return NS_ERROR_NOT_IMPLEMENTED;
     185                 : }
     186                 : 
     187                 : /* void setString (in AUTF8String key, in AUTF8String value); */
     188                 : NS_IMETHODIMP nsGConfService::SetString(const nsACString & key, const nsACString & value)
     189                 : {
     190                 :     return NS_ERROR_NOT_IMPLEMENTED;
     191                 : }
     192                 : 
     193                 : /* void setInt (in AUTF8String key, in long value); */
     194                 : NS_IMETHODIMP nsGConfService::SetInt(const nsACString & key, PRInt32 value)
     195                 : {
     196                 :     return NS_ERROR_NOT_IMPLEMENTED;
     197                 : }
     198                 : 
     199                 : /* void setFloat (in AUTF8String key, in float value); */
     200                 : NS_IMETHODIMP nsGConfService::SetFloat(const nsACString & key, float value)
     201                 : {
     202                 :     return NS_ERROR_NOT_IMPLEMENTED;
     203                 : }
     204                 : 
     205                 : /* AUTF8String getAppForProtocol (in AUTF8String scheme, out boolean enabled); */
     206                 : NS_IMETHODIMP nsGConfService::GetAppForProtocol(const nsACString & scheme, bool *enabled NS_OUTPARAM, nsACString & _retval NS_OUTPARAM)
     207                 : {
     208                 :     return NS_ERROR_NOT_IMPLEMENTED;
     209                 : }
     210                 : 
     211                 : /* boolean handlerRequiresTerminal (in AUTF8String scheme); */
     212                 : NS_IMETHODIMP nsGConfService::HandlerRequiresTerminal(const nsACString & scheme, bool *_retval NS_OUTPARAM)
     213                 : {
     214                 :     return NS_ERROR_NOT_IMPLEMENTED;
     215                 : }
     216                 : 
     217                 : /* void setAppForProtocol (in AUTF8String scheme, in AUTF8String command); */
     218                 : NS_IMETHODIMP nsGConfService::SetAppForProtocol(const nsACString & scheme, const nsACString & command)
     219                 : {
     220                 :     return NS_ERROR_NOT_IMPLEMENTED;
     221                 : }
     222                 : 
     223                 : /* End of implementation class template. */
     224                 : #endif
     225                 : 
     226                 : #define NS_GCONFSERVICE_CONTRACTID "@mozilla.org/gnome-gconf-service;1"
     227                 : 
     228                 : #endif /* __gen_nsIGConfService_h__ */

Generated by: LCOV version 1.7