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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIGSettingsService.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIGSettingsService_h__
       6             : #define __gen_nsIGSettingsService_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : /* For IDL files that don't want to include root IDL files. */
      14             : #ifndef NS_NO_VTABLE
      15             : #define NS_NO_VTABLE
      16             : #endif
      17             : class nsIArray; /* forward declaration */
      18             : 
      19             : 
      20             : /* starting interface:    nsIGSettingsCollection */
      21             : #define NS_IGSETTINGSCOLLECTION_IID_STR "16d5b0ed-e756-4f1b-a8ce-9132e869acd8"
      22             : 
      23             : #define NS_IGSETTINGSCOLLECTION_IID \
      24             :   {0x16d5b0ed, 0xe756, 0x4f1b, \
      25             :     { 0xa8, 0xce, 0x91, 0x32, 0xe8, 0x69, 0xac, 0xd8 }}
      26             : 
      27           0 : class NS_NO_VTABLE nsIGSettingsCollection : public nsISupports {
      28             :  public:
      29             : 
      30             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGSETTINGSCOLLECTION_IID)
      31             : 
      32             :   /* void setString (in AUTF8String key, in AUTF8String value); */
      33             :   NS_IMETHOD SetString(const nsACString & key, const nsACString & value) = 0;
      34             : 
      35             :   /* void setBoolean (in AUTF8String key, in boolean value); */
      36             :   NS_IMETHOD SetBoolean(const nsACString & key, bool value) = 0;
      37             : 
      38             :   /* void setInt (in AUTF8String key, in long value); */
      39             :   NS_IMETHOD SetInt(const nsACString & key, int32_t value) = 0;
      40             : 
      41             :   /* AUTF8String getString (in AUTF8String key); */
      42             :   NS_IMETHOD GetString(const nsACString & key, nsACString & _retval) = 0;
      43             : 
      44             :   /* boolean getBoolean (in AUTF8String key); */
      45             :   NS_IMETHOD GetBoolean(const nsACString & key, bool *_retval) = 0;
      46             : 
      47             :   /* long getInt (in AUTF8String key); */
      48             :   NS_IMETHOD GetInt(const nsACString & key, int32_t *_retval) = 0;
      49             : 
      50             :   /* nsIArray getStringList (in AUTF8String key); */
      51             :   NS_IMETHOD GetStringList(const nsACString & key, nsIArray * *_retval) = 0;
      52             : 
      53             : };
      54             : 
      55             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIGSettingsCollection, NS_IGSETTINGSCOLLECTION_IID)
      56             : 
      57             : /* Use this macro when declaring classes that implement this interface. */
      58             : #define NS_DECL_NSIGSETTINGSCOLLECTION \
      59             :   NS_IMETHOD SetString(const nsACString & key, const nsACString & value) override; \
      60             :   NS_IMETHOD SetBoolean(const nsACString & key, bool value) override; \
      61             :   NS_IMETHOD SetInt(const nsACString & key, int32_t value) override; \
      62             :   NS_IMETHOD GetString(const nsACString & key, nsACString & _retval) override; \
      63             :   NS_IMETHOD GetBoolean(const nsACString & key, bool *_retval) override; \
      64             :   NS_IMETHOD GetInt(const nsACString & key, int32_t *_retval) override; \
      65             :   NS_IMETHOD GetStringList(const nsACString & key, nsIArray * *_retval) override; 
      66             : 
      67             : /* Use this macro when declaring the members of this interface when the
      68             :    class doesn't implement the interface. This is useful for forwarding. */
      69             : #define NS_DECL_NON_VIRTUAL_NSIGSETTINGSCOLLECTION \
      70             :   nsresult SetString(const nsACString & key, const nsACString & value); \
      71             :   nsresult SetBoolean(const nsACString & key, bool value); \
      72             :   nsresult SetInt(const nsACString & key, int32_t value); \
      73             :   nsresult GetString(const nsACString & key, nsACString & _retval); \
      74             :   nsresult GetBoolean(const nsACString & key, bool *_retval); \
      75             :   nsresult GetInt(const nsACString & key, int32_t *_retval); \
      76             :   nsresult GetStringList(const nsACString & key, nsIArray * *_retval); 
      77             : 
      78             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      79             : #define NS_FORWARD_NSIGSETTINGSCOLLECTION(_to) \
      80             :   NS_IMETHOD SetString(const nsACString & key, const nsACString & value) override { return _to SetString(key, value); } \
      81             :   NS_IMETHOD SetBoolean(const nsACString & key, bool value) override { return _to SetBoolean(key, value); } \
      82             :   NS_IMETHOD SetInt(const nsACString & key, int32_t value) override { return _to SetInt(key, value); } \
      83             :   NS_IMETHOD GetString(const nsACString & key, nsACString & _retval) override { return _to GetString(key, _retval); } \
      84             :   NS_IMETHOD GetBoolean(const nsACString & key, bool *_retval) override { return _to GetBoolean(key, _retval); } \
      85             :   NS_IMETHOD GetInt(const nsACString & key, int32_t *_retval) override { return _to GetInt(key, _retval); } \
      86             :   NS_IMETHOD GetStringList(const nsACString & key, nsIArray * *_retval) override { return _to GetStringList(key, _retval); } 
      87             : 
      88             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      89             : #define NS_FORWARD_SAFE_NSIGSETTINGSCOLLECTION(_to) \
      90             :   NS_IMETHOD SetString(const nsACString & key, const nsACString & value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetString(key, value); } \
      91             :   NS_IMETHOD SetBoolean(const nsACString & key, bool value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBoolean(key, value); } \
      92             :   NS_IMETHOD SetInt(const nsACString & key, int32_t value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInt(key, value); } \
      93             :   NS_IMETHOD GetString(const nsACString & key, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetString(key, _retval); } \
      94             :   NS_IMETHOD GetBoolean(const nsACString & key, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBoolean(key, _retval); } \
      95             :   NS_IMETHOD GetInt(const nsACString & key, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInt(key, _retval); } \
      96             :   NS_IMETHOD GetStringList(const nsACString & key, nsIArray * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringList(key, _retval); } 
      97             : 
      98             : #if 0
      99             : /* Use the code below as a template for the implementation class for this interface. */
     100             : 
     101             : /* Header file */
     102             : class nsGSettingsCollection : public nsIGSettingsCollection
     103             : {
     104             : public:
     105             :   NS_DECL_ISUPPORTS
     106             :   NS_DECL_NSIGSETTINGSCOLLECTION
     107             : 
     108             :   nsGSettingsCollection();
     109             : 
     110             : private:
     111             :   ~nsGSettingsCollection();
     112             : 
     113             : protected:
     114             :   /* additional members */
     115             : };
     116             : 
     117             : /* Implementation file */
     118             : NS_IMPL_ISUPPORTS(nsGSettingsCollection, nsIGSettingsCollection)
     119             : 
     120             : nsGSettingsCollection::nsGSettingsCollection()
     121             : {
     122             :   /* member initializers and constructor code */
     123             : }
     124             : 
     125             : nsGSettingsCollection::~nsGSettingsCollection()
     126             : {
     127             :   /* destructor code */
     128             : }
     129             : 
     130             : /* void setString (in AUTF8String key, in AUTF8String value); */
     131             : NS_IMETHODIMP nsGSettingsCollection::SetString(const nsACString & key, const nsACString & value)
     132             : {
     133             :     return NS_ERROR_NOT_IMPLEMENTED;
     134             : }
     135             : 
     136             : /* void setBoolean (in AUTF8String key, in boolean value); */
     137             : NS_IMETHODIMP nsGSettingsCollection::SetBoolean(const nsACString & key, bool value)
     138             : {
     139             :     return NS_ERROR_NOT_IMPLEMENTED;
     140             : }
     141             : 
     142             : /* void setInt (in AUTF8String key, in long value); */
     143             : NS_IMETHODIMP nsGSettingsCollection::SetInt(const nsACString & key, int32_t value)
     144             : {
     145             :     return NS_ERROR_NOT_IMPLEMENTED;
     146             : }
     147             : 
     148             : /* AUTF8String getString (in AUTF8String key); */
     149             : NS_IMETHODIMP nsGSettingsCollection::GetString(const nsACString & key, nsACString & _retval)
     150             : {
     151             :     return NS_ERROR_NOT_IMPLEMENTED;
     152             : }
     153             : 
     154             : /* boolean getBoolean (in AUTF8String key); */
     155             : NS_IMETHODIMP nsGSettingsCollection::GetBoolean(const nsACString & key, bool *_retval)
     156             : {
     157             :     return NS_ERROR_NOT_IMPLEMENTED;
     158             : }
     159             : 
     160             : /* long getInt (in AUTF8String key); */
     161             : NS_IMETHODIMP nsGSettingsCollection::GetInt(const nsACString & key, int32_t *_retval)
     162             : {
     163             :     return NS_ERROR_NOT_IMPLEMENTED;
     164             : }
     165             : 
     166             : /* nsIArray getStringList (in AUTF8String key); */
     167             : NS_IMETHODIMP nsGSettingsCollection::GetStringList(const nsACString & key, nsIArray * *_retval)
     168             : {
     169             :     return NS_ERROR_NOT_IMPLEMENTED;
     170             : }
     171             : 
     172             : /* End of implementation class template. */
     173             : #endif
     174             : 
     175             : 
     176             : /* starting interface:    nsIGSettingsService */
     177             : #define NS_IGSETTINGSSERVICE_IID_STR "849c088b-57d1-4f24-b7b2-3dc4acb04c0a"
     178             : 
     179             : #define NS_IGSETTINGSSERVICE_IID \
     180             :   {0x849c088b, 0x57d1, 0x4f24, \
     181             :     { 0xb7, 0xb2, 0x3d, 0xc4, 0xac, 0xb0, 0x4c, 0x0a }}
     182             : 
     183           0 : class NS_NO_VTABLE nsIGSettingsService : public nsISupports {
     184             :  public:
     185             : 
     186             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGSETTINGSSERVICE_IID)
     187             : 
     188             :   /* nsIGSettingsCollection getCollectionForSchema (in AUTF8String schema); */
     189             :   NS_IMETHOD GetCollectionForSchema(const nsACString & schema, nsIGSettingsCollection * *_retval) = 0;
     190             : 
     191             : };
     192             : 
     193             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIGSettingsService, NS_IGSETTINGSSERVICE_IID)
     194             : 
     195             : /* Use this macro when declaring classes that implement this interface. */
     196             : #define NS_DECL_NSIGSETTINGSSERVICE \
     197             :   NS_IMETHOD GetCollectionForSchema(const nsACString & schema, nsIGSettingsCollection * *_retval) override; 
     198             : 
     199             : /* Use this macro when declaring the members of this interface when the
     200             :    class doesn't implement the interface. This is useful for forwarding. */
     201             : #define NS_DECL_NON_VIRTUAL_NSIGSETTINGSSERVICE \
     202             :   nsresult GetCollectionForSchema(const nsACString & schema, nsIGSettingsCollection * *_retval); 
     203             : 
     204             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     205             : #define NS_FORWARD_NSIGSETTINGSSERVICE(_to) \
     206             :   NS_IMETHOD GetCollectionForSchema(const nsACString & schema, nsIGSettingsCollection * *_retval) override { return _to GetCollectionForSchema(schema, _retval); } 
     207             : 
     208             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     209             : #define NS_FORWARD_SAFE_NSIGSETTINGSSERVICE(_to) \
     210             :   NS_IMETHOD GetCollectionForSchema(const nsACString & schema, nsIGSettingsCollection * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCollectionForSchema(schema, _retval); } 
     211             : 
     212             : #if 0
     213             : /* Use the code below as a template for the implementation class for this interface. */
     214             : 
     215             : /* Header file */
     216             : class nsGSettingsService : public nsIGSettingsService
     217             : {
     218             : public:
     219             :   NS_DECL_ISUPPORTS
     220             :   NS_DECL_NSIGSETTINGSSERVICE
     221             : 
     222             :   nsGSettingsService();
     223             : 
     224             : private:
     225             :   ~nsGSettingsService();
     226             : 
     227             : protected:
     228             :   /* additional members */
     229             : };
     230             : 
     231             : /* Implementation file */
     232             : NS_IMPL_ISUPPORTS(nsGSettingsService, nsIGSettingsService)
     233             : 
     234             : nsGSettingsService::nsGSettingsService()
     235             : {
     236             :   /* member initializers and constructor code */
     237             : }
     238             : 
     239             : nsGSettingsService::~nsGSettingsService()
     240             : {
     241             :   /* destructor code */
     242             : }
     243             : 
     244             : /* nsIGSettingsCollection getCollectionForSchema (in AUTF8String schema); */
     245             : NS_IMETHODIMP nsGSettingsService::GetCollectionForSchema(const nsACString & schema, nsIGSettingsCollection * *_retval)
     246             : {
     247             :     return NS_ERROR_NOT_IMPLEMENTED;
     248             : }
     249             : 
     250             : /* End of implementation class template. */
     251             : #endif
     252             : 
     253             : #define NS_GSETTINGSSERVICE_CONTRACTID "@mozilla.org/gsettings-service;1"
     254             : 
     255             : #endif /* __gen_nsIGSettingsService_h__ */

Generated by: LCOV version 1.13