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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIWritablePropertyBag2.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIWritablePropertyBag2_h__
       6             : #define __gen_nsIWritablePropertyBag2_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsIPropertyBag2_h__
      10             : #include "nsIPropertyBag2.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             : 
      18             : /* starting interface:    nsIWritablePropertyBag2 */
      19             : #define NS_IWRITABLEPROPERTYBAG2_IID_STR "9cfd1587-360e-4957-a58f-4c2b1c5e7ed9"
      20             : 
      21             : #define NS_IWRITABLEPROPERTYBAG2_IID \
      22             :   {0x9cfd1587, 0x360e, 0x4957, \
      23             :     { 0xa5, 0x8f, 0x4c, 0x2b, 0x1c, 0x5e, 0x7e, 0xd9 }}
      24             : 
      25        1194 : class NS_NO_VTABLE nsIWritablePropertyBag2 : public nsIPropertyBag2 {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWRITABLEPROPERTYBAG2_IID)
      29             : 
      30             :   /* void setPropertyAsInt32 (in AString prop, in int32_t value); */
      31             :   NS_IMETHOD SetPropertyAsInt32(const nsAString & prop, int32_t value) = 0;
      32             : 
      33             :   /* void setPropertyAsUint32 (in AString prop, in uint32_t value); */
      34             :   NS_IMETHOD SetPropertyAsUint32(const nsAString & prop, uint32_t value) = 0;
      35             : 
      36             :   /* void setPropertyAsInt64 (in AString prop, in int64_t value); */
      37             :   NS_IMETHOD SetPropertyAsInt64(const nsAString & prop, int64_t value) = 0;
      38             : 
      39             :   /* void setPropertyAsUint64 (in AString prop, in uint64_t value); */
      40             :   NS_IMETHOD SetPropertyAsUint64(const nsAString & prop, uint64_t value) = 0;
      41             : 
      42             :   /* void setPropertyAsDouble (in AString prop, in double value); */
      43             :   NS_IMETHOD SetPropertyAsDouble(const nsAString & prop, double value) = 0;
      44             : 
      45             :   /* void setPropertyAsAString (in AString prop, in AString value); */
      46             :   NS_IMETHOD SetPropertyAsAString(const nsAString & prop, const nsAString & value) = 0;
      47             : 
      48             :   /* void setPropertyAsACString (in AString prop, in ACString value); */
      49             :   NS_IMETHOD SetPropertyAsACString(const nsAString & prop, const nsACString & value) = 0;
      50             : 
      51             :   /* void setPropertyAsAUTF8String (in AString prop, in AUTF8String value); */
      52             :   NS_IMETHOD SetPropertyAsAUTF8String(const nsAString & prop, const nsACString & value) = 0;
      53             : 
      54             :   /* void setPropertyAsBool (in AString prop, in boolean value); */
      55             :   NS_IMETHOD SetPropertyAsBool(const nsAString & prop, bool value) = 0;
      56             : 
      57             :   /* void setPropertyAsInterface (in AString prop, in nsISupports value); */
      58             :   NS_IMETHOD SetPropertyAsInterface(const nsAString & prop, nsISupports *value) = 0;
      59             : 
      60             : };
      61             : 
      62             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIWritablePropertyBag2, NS_IWRITABLEPROPERTYBAG2_IID)
      63             : 
      64             : /* Use this macro when declaring classes that implement this interface. */
      65             : #define NS_DECL_NSIWRITABLEPROPERTYBAG2 \
      66             :   NS_IMETHOD SetPropertyAsInt32(const nsAString & prop, int32_t value) override; \
      67             :   NS_IMETHOD SetPropertyAsUint32(const nsAString & prop, uint32_t value) override; \
      68             :   NS_IMETHOD SetPropertyAsInt64(const nsAString & prop, int64_t value) override; \
      69             :   NS_IMETHOD SetPropertyAsUint64(const nsAString & prop, uint64_t value) override; \
      70             :   NS_IMETHOD SetPropertyAsDouble(const nsAString & prop, double value) override; \
      71             :   NS_IMETHOD SetPropertyAsAString(const nsAString & prop, const nsAString & value) override; \
      72             :   NS_IMETHOD SetPropertyAsACString(const nsAString & prop, const nsACString & value) override; \
      73             :   NS_IMETHOD SetPropertyAsAUTF8String(const nsAString & prop, const nsACString & value) override; \
      74             :   NS_IMETHOD SetPropertyAsBool(const nsAString & prop, bool value) override; \
      75             :   NS_IMETHOD SetPropertyAsInterface(const nsAString & prop, nsISupports *value) override; 
      76             : 
      77             : /* Use this macro when declaring the members of this interface when the
      78             :    class doesn't implement the interface. This is useful for forwarding. */
      79             : #define NS_DECL_NON_VIRTUAL_NSIWRITABLEPROPERTYBAG2 \
      80             :   nsresult SetPropertyAsInt32(const nsAString & prop, int32_t value); \
      81             :   nsresult SetPropertyAsUint32(const nsAString & prop, uint32_t value); \
      82             :   nsresult SetPropertyAsInt64(const nsAString & prop, int64_t value); \
      83             :   nsresult SetPropertyAsUint64(const nsAString & prop, uint64_t value); \
      84             :   nsresult SetPropertyAsDouble(const nsAString & prop, double value); \
      85             :   nsresult SetPropertyAsAString(const nsAString & prop, const nsAString & value); \
      86             :   nsresult SetPropertyAsACString(const nsAString & prop, const nsACString & value); \
      87             :   nsresult SetPropertyAsAUTF8String(const nsAString & prop, const nsACString & value); \
      88             :   nsresult SetPropertyAsBool(const nsAString & prop, bool value); \
      89             :   nsresult SetPropertyAsInterface(const nsAString & prop, nsISupports *value); 
      90             : 
      91             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      92             : #define NS_FORWARD_NSIWRITABLEPROPERTYBAG2(_to) \
      93             :   NS_IMETHOD SetPropertyAsInt32(const nsAString & prop, int32_t value) override { return _to SetPropertyAsInt32(prop, value); } \
      94             :   NS_IMETHOD SetPropertyAsUint32(const nsAString & prop, uint32_t value) override { return _to SetPropertyAsUint32(prop, value); } \
      95             :   NS_IMETHOD SetPropertyAsInt64(const nsAString & prop, int64_t value) override { return _to SetPropertyAsInt64(prop, value); } \
      96             :   NS_IMETHOD SetPropertyAsUint64(const nsAString & prop, uint64_t value) override { return _to SetPropertyAsUint64(prop, value); } \
      97             :   NS_IMETHOD SetPropertyAsDouble(const nsAString & prop, double value) override { return _to SetPropertyAsDouble(prop, value); } \
      98             :   NS_IMETHOD SetPropertyAsAString(const nsAString & prop, const nsAString & value) override { return _to SetPropertyAsAString(prop, value); } \
      99             :   NS_IMETHOD SetPropertyAsACString(const nsAString & prop, const nsACString & value) override { return _to SetPropertyAsACString(prop, value); } \
     100             :   NS_IMETHOD SetPropertyAsAUTF8String(const nsAString & prop, const nsACString & value) override { return _to SetPropertyAsAUTF8String(prop, value); } \
     101             :   NS_IMETHOD SetPropertyAsBool(const nsAString & prop, bool value) override { return _to SetPropertyAsBool(prop, value); } \
     102             :   NS_IMETHOD SetPropertyAsInterface(const nsAString & prop, nsISupports *value) override { return _to SetPropertyAsInterface(prop, value); } 
     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_NSIWRITABLEPROPERTYBAG2(_to) \
     106             :   NS_IMETHOD SetPropertyAsInt32(const nsAString & prop, int32_t value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsInt32(prop, value); } \
     107             :   NS_IMETHOD SetPropertyAsUint32(const nsAString & prop, uint32_t value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsUint32(prop, value); } \
     108             :   NS_IMETHOD SetPropertyAsInt64(const nsAString & prop, int64_t value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsInt64(prop, value); } \
     109             :   NS_IMETHOD SetPropertyAsUint64(const nsAString & prop, uint64_t value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsUint64(prop, value); } \
     110             :   NS_IMETHOD SetPropertyAsDouble(const nsAString & prop, double value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsDouble(prop, value); } \
     111             :   NS_IMETHOD SetPropertyAsAString(const nsAString & prop, const nsAString & value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsAString(prop, value); } \
     112             :   NS_IMETHOD SetPropertyAsACString(const nsAString & prop, const nsACString & value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsACString(prop, value); } \
     113             :   NS_IMETHOD SetPropertyAsAUTF8String(const nsAString & prop, const nsACString & value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsAUTF8String(prop, value); } \
     114             :   NS_IMETHOD SetPropertyAsBool(const nsAString & prop, bool value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsBool(prop, value); } \
     115             :   NS_IMETHOD SetPropertyAsInterface(const nsAString & prop, nsISupports *value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsInterface(prop, value); } 
     116             : 
     117             : #if 0
     118             : /* Use the code below as a template for the implementation class for this interface. */
     119             : 
     120             : /* Header file */
     121             : class nsWritablePropertyBag2 : public nsIWritablePropertyBag2
     122             : {
     123             : public:
     124             :   NS_DECL_ISUPPORTS
     125             :   NS_DECL_NSIWRITABLEPROPERTYBAG2
     126             : 
     127             :   nsWritablePropertyBag2();
     128             : 
     129             : private:
     130             :   ~nsWritablePropertyBag2();
     131             : 
     132             : protected:
     133             :   /* additional members */
     134             : };
     135             : 
     136             : /* Implementation file */
     137             : NS_IMPL_ISUPPORTS(nsWritablePropertyBag2, nsIWritablePropertyBag2)
     138             : 
     139             : nsWritablePropertyBag2::nsWritablePropertyBag2()
     140             : {
     141             :   /* member initializers and constructor code */
     142             : }
     143             : 
     144             : nsWritablePropertyBag2::~nsWritablePropertyBag2()
     145             : {
     146             :   /* destructor code */
     147             : }
     148             : 
     149             : /* void setPropertyAsInt32 (in AString prop, in int32_t value); */
     150             : NS_IMETHODIMP nsWritablePropertyBag2::SetPropertyAsInt32(const nsAString & prop, int32_t value)
     151             : {
     152             :     return NS_ERROR_NOT_IMPLEMENTED;
     153             : }
     154             : 
     155             : /* void setPropertyAsUint32 (in AString prop, in uint32_t value); */
     156             : NS_IMETHODIMP nsWritablePropertyBag2::SetPropertyAsUint32(const nsAString & prop, uint32_t value)
     157             : {
     158             :     return NS_ERROR_NOT_IMPLEMENTED;
     159             : }
     160             : 
     161             : /* void setPropertyAsInt64 (in AString prop, in int64_t value); */
     162             : NS_IMETHODIMP nsWritablePropertyBag2::SetPropertyAsInt64(const nsAString & prop, int64_t value)
     163             : {
     164             :     return NS_ERROR_NOT_IMPLEMENTED;
     165             : }
     166             : 
     167             : /* void setPropertyAsUint64 (in AString prop, in uint64_t value); */
     168             : NS_IMETHODIMP nsWritablePropertyBag2::SetPropertyAsUint64(const nsAString & prop, uint64_t value)
     169             : {
     170             :     return NS_ERROR_NOT_IMPLEMENTED;
     171             : }
     172             : 
     173             : /* void setPropertyAsDouble (in AString prop, in double value); */
     174             : NS_IMETHODIMP nsWritablePropertyBag2::SetPropertyAsDouble(const nsAString & prop, double value)
     175             : {
     176             :     return NS_ERROR_NOT_IMPLEMENTED;
     177             : }
     178             : 
     179             : /* void setPropertyAsAString (in AString prop, in AString value); */
     180             : NS_IMETHODIMP nsWritablePropertyBag2::SetPropertyAsAString(const nsAString & prop, const nsAString & value)
     181             : {
     182             :     return NS_ERROR_NOT_IMPLEMENTED;
     183             : }
     184             : 
     185             : /* void setPropertyAsACString (in AString prop, in ACString value); */
     186             : NS_IMETHODIMP nsWritablePropertyBag2::SetPropertyAsACString(const nsAString & prop, const nsACString & value)
     187             : {
     188             :     return NS_ERROR_NOT_IMPLEMENTED;
     189             : }
     190             : 
     191             : /* void setPropertyAsAUTF8String (in AString prop, in AUTF8String value); */
     192             : NS_IMETHODIMP nsWritablePropertyBag2::SetPropertyAsAUTF8String(const nsAString & prop, const nsACString & value)
     193             : {
     194             :     return NS_ERROR_NOT_IMPLEMENTED;
     195             : }
     196             : 
     197             : /* void setPropertyAsBool (in AString prop, in boolean value); */
     198             : NS_IMETHODIMP nsWritablePropertyBag2::SetPropertyAsBool(const nsAString & prop, bool value)
     199             : {
     200             :     return NS_ERROR_NOT_IMPLEMENTED;
     201             : }
     202             : 
     203             : /* void setPropertyAsInterface (in AString prop, in nsISupports value); */
     204             : NS_IMETHODIMP nsWritablePropertyBag2::SetPropertyAsInterface(const nsAString & prop, nsISupports *value)
     205             : {
     206             :     return NS_ERROR_NOT_IMPLEMENTED;
     207             : }
     208             : 
     209             : /* End of implementation class template. */
     210             : #endif
     211             : 
     212             : 
     213             : #endif /* __gen_nsIWritablePropertyBag2_h__ */

Generated by: LCOV version 1.13