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

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

Generated by: LCOV version 1.13