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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPersistentProperties2.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIPersistentProperties2_h__
       6             : #define __gen_nsIPersistentProperties2_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsIProperties_h__
      10             : #include "nsIProperties.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 nsIInputStream; /* forward declaration */
      18             : 
      19             : class nsIOutputStream; /* forward declaration */
      20             : 
      21             : class nsISimpleEnumerator; /* forward declaration */
      22             : 
      23             : 
      24             : /* starting interface:    nsIPropertyElement */
      25             : #define NS_IPROPERTYELEMENT_IID_STR "283ee646-1aef-11d4-98b3-00c04fa0ce9a"
      26             : 
      27             : #define NS_IPROPERTYELEMENT_IID \
      28             :   {0x283ee646, 0x1aef, 0x11d4, \
      29             :     { 0x98, 0xb3, 0x00, 0xc0, 0x4f, 0xa0, 0xce, 0x9a }}
      30             : 
      31           0 : class NS_NO_VTABLE nsIPropertyElement : public nsISupports {
      32             :  public:
      33             : 
      34             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROPERTYELEMENT_IID)
      35             : 
      36             :   /* attribute AUTF8String key; */
      37             :   NS_IMETHOD GetKey(nsACString & aKey) = 0;
      38             :   NS_IMETHOD SetKey(const nsACString & aKey) = 0;
      39             : 
      40             :   /* attribute AString value; */
      41             :   NS_IMETHOD GetValue(nsAString & aValue) = 0;
      42             :   NS_IMETHOD SetValue(const nsAString & aValue) = 0;
      43             : 
      44             : };
      45             : 
      46             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPropertyElement, NS_IPROPERTYELEMENT_IID)
      47             : 
      48             : /* Use this macro when declaring classes that implement this interface. */
      49             : #define NS_DECL_NSIPROPERTYELEMENT \
      50             :   NS_IMETHOD GetKey(nsACString & aKey) override; \
      51             :   NS_IMETHOD SetKey(const nsACString & aKey) override; \
      52             :   NS_IMETHOD GetValue(nsAString & aValue) override; \
      53             :   NS_IMETHOD SetValue(const nsAString & aValue) override; 
      54             : 
      55             : /* Use this macro when declaring the members of this interface when the
      56             :    class doesn't implement the interface. This is useful for forwarding. */
      57             : #define NS_DECL_NON_VIRTUAL_NSIPROPERTYELEMENT \
      58             :   nsresult GetKey(nsACString & aKey); \
      59             :   nsresult SetKey(const nsACString & aKey); \
      60             :   nsresult GetValue(nsAString & aValue); \
      61             :   nsresult SetValue(const nsAString & aValue); 
      62             : 
      63             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      64             : #define NS_FORWARD_NSIPROPERTYELEMENT(_to) \
      65             :   NS_IMETHOD GetKey(nsACString & aKey) override { return _to GetKey(aKey); } \
      66             :   NS_IMETHOD SetKey(const nsACString & aKey) override { return _to SetKey(aKey); } \
      67             :   NS_IMETHOD GetValue(nsAString & aValue) override { return _to GetValue(aValue); } \
      68             :   NS_IMETHOD SetValue(const nsAString & aValue) override { return _to SetValue(aValue); } 
      69             : 
      70             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      71             : #define NS_FORWARD_SAFE_NSIPROPERTYELEMENT(_to) \
      72             :   NS_IMETHOD GetKey(nsACString & aKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKey(aKey); } \
      73             :   NS_IMETHOD SetKey(const nsACString & aKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetKey(aKey); } \
      74             :   NS_IMETHOD GetValue(nsAString & aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
      75             :   NS_IMETHOD SetValue(const nsAString & aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } 
      76             : 
      77             : #if 0
      78             : /* Use the code below as a template for the implementation class for this interface. */
      79             : 
      80             : /* Header file */
      81             : class nsPropertyElement : public nsIPropertyElement
      82             : {
      83             : public:
      84             :   NS_DECL_ISUPPORTS
      85             :   NS_DECL_NSIPROPERTYELEMENT
      86             : 
      87             :   nsPropertyElement();
      88             : 
      89             : private:
      90             :   ~nsPropertyElement();
      91             : 
      92             : protected:
      93             :   /* additional members */
      94             : };
      95             : 
      96             : /* Implementation file */
      97             : NS_IMPL_ISUPPORTS(nsPropertyElement, nsIPropertyElement)
      98             : 
      99             : nsPropertyElement::nsPropertyElement()
     100             : {
     101             :   /* member initializers and constructor code */
     102             : }
     103             : 
     104             : nsPropertyElement::~nsPropertyElement()
     105             : {
     106             :   /* destructor code */
     107             : }
     108             : 
     109             : /* attribute AUTF8String key; */
     110             : NS_IMETHODIMP nsPropertyElement::GetKey(nsACString & aKey)
     111             : {
     112             :     return NS_ERROR_NOT_IMPLEMENTED;
     113             : }
     114             : NS_IMETHODIMP nsPropertyElement::SetKey(const nsACString & aKey)
     115             : {
     116             :     return NS_ERROR_NOT_IMPLEMENTED;
     117             : }
     118             : 
     119             : /* attribute AString value; */
     120             : NS_IMETHODIMP nsPropertyElement::GetValue(nsAString & aValue)
     121             : {
     122             :     return NS_ERROR_NOT_IMPLEMENTED;
     123             : }
     124             : NS_IMETHODIMP nsPropertyElement::SetValue(const nsAString & aValue)
     125             : {
     126             :     return NS_ERROR_NOT_IMPLEMENTED;
     127             : }
     128             : 
     129             : /* End of implementation class template. */
     130             : #endif
     131             : 
     132             : 
     133             : /* starting interface:    nsIPersistentProperties */
     134             : #define NS_IPERSISTENTPROPERTIES_IID_STR "706867af-0400-4faa-beb1-0dae87308784"
     135             : 
     136             : #define NS_IPERSISTENTPROPERTIES_IID \
     137             :   {0x706867af, 0x0400, 0x4faa, \
     138             :     { 0xbe, 0xb1, 0x0d, 0xae, 0x87, 0x30, 0x87, 0x84 }}
     139             : 
     140          21 : class NS_NO_VTABLE nsIPersistentProperties : public nsIProperties {
     141             :  public:
     142             : 
     143             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPERSISTENTPROPERTIES_IID)
     144             : 
     145             :   /* void load (in nsIInputStream input); */
     146             :   NS_IMETHOD Load(nsIInputStream *input) = 0;
     147             : 
     148             :   /* void save (in nsIOutputStream output, in AUTF8String header); */
     149             :   NS_IMETHOD Save(nsIOutputStream *output, const nsACString & header) = 0;
     150             : 
     151             :   /* nsISimpleEnumerator enumerate (); */
     152             :   NS_IMETHOD Enumerate(nsISimpleEnumerator * *_retval) = 0;
     153             : 
     154             :   /* AString getStringProperty (in AUTF8String key); */
     155             :   NS_IMETHOD GetStringProperty(const nsACString & key, nsAString & _retval) = 0;
     156             : 
     157             :   /* AString setStringProperty (in AUTF8String key, in AString value); */
     158             :   NS_IMETHOD SetStringProperty(const nsACString & key, const nsAString & value, nsAString & _retval) = 0;
     159             : 
     160             : };
     161             : 
     162             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPersistentProperties, NS_IPERSISTENTPROPERTIES_IID)
     163             : 
     164             : /* Use this macro when declaring classes that implement this interface. */
     165             : #define NS_DECL_NSIPERSISTENTPROPERTIES \
     166             :   NS_IMETHOD Load(nsIInputStream *input) override; \
     167             :   NS_IMETHOD Save(nsIOutputStream *output, const nsACString & header) override; \
     168             :   NS_IMETHOD Enumerate(nsISimpleEnumerator * *_retval) override; \
     169             :   NS_IMETHOD GetStringProperty(const nsACString & key, nsAString & _retval) override; \
     170             :   NS_IMETHOD SetStringProperty(const nsACString & key, const nsAString & value, nsAString & _retval) override; 
     171             : 
     172             : /* Use this macro when declaring the members of this interface when the
     173             :    class doesn't implement the interface. This is useful for forwarding. */
     174             : #define NS_DECL_NON_VIRTUAL_NSIPERSISTENTPROPERTIES \
     175             :   nsresult Load(nsIInputStream *input); \
     176             :   nsresult Save(nsIOutputStream *output, const nsACString & header); \
     177             :   nsresult Enumerate(nsISimpleEnumerator * *_retval); \
     178             :   nsresult GetStringProperty(const nsACString & key, nsAString & _retval); \
     179             :   nsresult SetStringProperty(const nsACString & key, const nsAString & value, nsAString & _retval); 
     180             : 
     181             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     182             : #define NS_FORWARD_NSIPERSISTENTPROPERTIES(_to) \
     183             :   NS_IMETHOD Load(nsIInputStream *input) override { return _to Load(input); } \
     184             :   NS_IMETHOD Save(nsIOutputStream *output, const nsACString & header) override { return _to Save(output, header); } \
     185             :   NS_IMETHOD Enumerate(nsISimpleEnumerator * *_retval) override { return _to Enumerate(_retval); } \
     186             :   NS_IMETHOD GetStringProperty(const nsACString & key, nsAString & _retval) override { return _to GetStringProperty(key, _retval); } \
     187             :   NS_IMETHOD SetStringProperty(const nsACString & key, const nsAString & value, nsAString & _retval) override { return _to SetStringProperty(key, value, _retval); } 
     188             : 
     189             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     190             : #define NS_FORWARD_SAFE_NSIPERSISTENTPROPERTIES(_to) \
     191             :   NS_IMETHOD Load(nsIInputStream *input) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Load(input); } \
     192             :   NS_IMETHOD Save(nsIOutputStream *output, const nsACString & header) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Save(output, header); } \
     193             :   NS_IMETHOD Enumerate(nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Enumerate(_retval); } \
     194             :   NS_IMETHOD GetStringProperty(const nsACString & key, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringProperty(key, _retval); } \
     195             :   NS_IMETHOD SetStringProperty(const nsACString & key, const nsAString & value, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStringProperty(key, value, _retval); } 
     196             : 
     197             : #if 0
     198             : /* Use the code below as a template for the implementation class for this interface. */
     199             : 
     200             : /* Header file */
     201             : class nsPersistentProperties : public nsIPersistentProperties
     202             : {
     203             : public:
     204             :   NS_DECL_ISUPPORTS
     205             :   NS_DECL_NSIPERSISTENTPROPERTIES
     206             : 
     207             :   nsPersistentProperties();
     208             : 
     209             : private:
     210             :   ~nsPersistentProperties();
     211             : 
     212             : protected:
     213             :   /* additional members */
     214             : };
     215             : 
     216             : /* Implementation file */
     217             : NS_IMPL_ISUPPORTS(nsPersistentProperties, nsIPersistentProperties)
     218             : 
     219             : nsPersistentProperties::nsPersistentProperties()
     220             : {
     221             :   /* member initializers and constructor code */
     222             : }
     223             : 
     224             : nsPersistentProperties::~nsPersistentProperties()
     225             : {
     226             :   /* destructor code */
     227             : }
     228             : 
     229             : /* void load (in nsIInputStream input); */
     230             : NS_IMETHODIMP nsPersistentProperties::Load(nsIInputStream *input)
     231             : {
     232             :     return NS_ERROR_NOT_IMPLEMENTED;
     233             : }
     234             : 
     235             : /* void save (in nsIOutputStream output, in AUTF8String header); */
     236             : NS_IMETHODIMP nsPersistentProperties::Save(nsIOutputStream *output, const nsACString & header)
     237             : {
     238             :     return NS_ERROR_NOT_IMPLEMENTED;
     239             : }
     240             : 
     241             : /* nsISimpleEnumerator enumerate (); */
     242             : NS_IMETHODIMP nsPersistentProperties::Enumerate(nsISimpleEnumerator * *_retval)
     243             : {
     244             :     return NS_ERROR_NOT_IMPLEMENTED;
     245             : }
     246             : 
     247             : /* AString getStringProperty (in AUTF8String key); */
     248             : NS_IMETHODIMP nsPersistentProperties::GetStringProperty(const nsACString & key, nsAString & _retval)
     249             : {
     250             :     return NS_ERROR_NOT_IMPLEMENTED;
     251             : }
     252             : 
     253             : /* AString setStringProperty (in AUTF8String key, in AString value); */
     254             : NS_IMETHODIMP nsPersistentProperties::SetStringProperty(const nsACString & key, const nsAString & value, nsAString & _retval)
     255             : {
     256             :     return NS_ERROR_NOT_IMPLEMENTED;
     257             : }
     258             : 
     259             : /* End of implementation class template. */
     260             : #endif
     261             : 
     262             : 
     263             : #define NS_IPERSISTENTPROPERTIES_CID \
     264             : { 0x2245e573, 0x9464, 0x11d2, \
     265             :   { 0x9b, 0x8b, 0x0, 0x80, 0x5f, 0x8a, 0x16, 0xd9 } }
     266             : #define NS_PERSISTENTPROPERTIES_CONTRACTID "@mozilla.org/persistent-properties;1"
     267             : 
     268             : #endif /* __gen_nsIPersistentProperties2_h__ */

Generated by: LCOV version 1.13