LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIWritablePropertyBag.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/nsIWritablePropertyBag.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIWritablePropertyBag_h__
       6             : #define __gen_nsIWritablePropertyBag_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsIPropertyBag_h__
      10             : #include "nsIPropertyBag.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:    nsIWritablePropertyBag */
      19             : #define NS_IWRITABLEPROPERTYBAG_IID_STR "96fc4671-eeb4-4823-9421-e50fb70ad353"
      20             : 
      21             : #define NS_IWRITABLEPROPERTYBAG_IID \
      22             :   {0x96fc4671, 0xeeb4, 0x4823, \
      23             :     { 0x94, 0x21, 0xe5, 0x0f, 0xb7, 0x0a, 0xd3, 0x53 }}
      24             : 
      25        1194 : class NS_NO_VTABLE nsIWritablePropertyBag : public nsIPropertyBag {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWRITABLEPROPERTYBAG_IID)
      29             : 
      30             :   /* void setProperty (in AString name, in nsIVariant value); */
      31             :   NS_IMETHOD SetProperty(const nsAString & name, nsIVariant *value) = 0;
      32             : 
      33             :   /* void deleteProperty (in AString name); */
      34             :   NS_IMETHOD DeleteProperty(const nsAString & name) = 0;
      35             : 
      36             : };
      37             : 
      38             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIWritablePropertyBag, NS_IWRITABLEPROPERTYBAG_IID)
      39             : 
      40             : /* Use this macro when declaring classes that implement this interface. */
      41             : #define NS_DECL_NSIWRITABLEPROPERTYBAG \
      42             :   NS_IMETHOD SetProperty(const nsAString & name, nsIVariant *value) override; \
      43             :   NS_IMETHOD DeleteProperty(const nsAString & name) override; 
      44             : 
      45             : /* Use this macro when declaring the members of this interface when the
      46             :    class doesn't implement the interface. This is useful for forwarding. */
      47             : #define NS_DECL_NON_VIRTUAL_NSIWRITABLEPROPERTYBAG \
      48             :   nsresult SetProperty(const nsAString & name, nsIVariant *value); \
      49             :   nsresult DeleteProperty(const nsAString & name); 
      50             : 
      51             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      52             : #define NS_FORWARD_NSIWRITABLEPROPERTYBAG(_to) \
      53             :   NS_IMETHOD SetProperty(const nsAString & name, nsIVariant *value) override { return _to SetProperty(name, value); } \
      54             :   NS_IMETHOD DeleteProperty(const nsAString & name) override { return _to DeleteProperty(name); } 
      55             : 
      56             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      57             : #define NS_FORWARD_SAFE_NSIWRITABLEPROPERTYBAG(_to) \
      58             :   NS_IMETHOD SetProperty(const nsAString & name, nsIVariant *value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProperty(name, value); } \
      59             :   NS_IMETHOD DeleteProperty(const nsAString & name) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteProperty(name); } 
      60             : 
      61             : #if 0
      62             : /* Use the code below as a template for the implementation class for this interface. */
      63             : 
      64             : /* Header file */
      65             : class nsWritablePropertyBag : public nsIWritablePropertyBag
      66             : {
      67             : public:
      68             :   NS_DECL_ISUPPORTS
      69             :   NS_DECL_NSIWRITABLEPROPERTYBAG
      70             : 
      71             :   nsWritablePropertyBag();
      72             : 
      73             : private:
      74             :   ~nsWritablePropertyBag();
      75             : 
      76             : protected:
      77             :   /* additional members */
      78             : };
      79             : 
      80             : /* Implementation file */
      81             : NS_IMPL_ISUPPORTS(nsWritablePropertyBag, nsIWritablePropertyBag)
      82             : 
      83             : nsWritablePropertyBag::nsWritablePropertyBag()
      84             : {
      85             :   /* member initializers and constructor code */
      86             : }
      87             : 
      88             : nsWritablePropertyBag::~nsWritablePropertyBag()
      89             : {
      90             :   /* destructor code */
      91             : }
      92             : 
      93             : /* void setProperty (in AString name, in nsIVariant value); */
      94             : NS_IMETHODIMP nsWritablePropertyBag::SetProperty(const nsAString & name, nsIVariant *value)
      95             : {
      96             :     return NS_ERROR_NOT_IMPLEMENTED;
      97             : }
      98             : 
      99             : /* void deleteProperty (in AString name); */
     100             : NS_IMETHODIMP nsWritablePropertyBag::DeleteProperty(const nsAString & name)
     101             : {
     102             :     return NS_ERROR_NOT_IMPLEMENTED;
     103             : }
     104             : 
     105             : /* End of implementation class template. */
     106             : #endif
     107             : 
     108             : 
     109             : #endif /* __gen_nsIWritablePropertyBag_h__ */

Generated by: LCOV version 1.13