LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIWritablePropertyBag.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2012-06-02 Functions: 1 1 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/ds/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           58262 : class NS_NO_VTABLE NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD SetProperty(const nsAString & name, nsIVariant *value) = 0;
      32                 : 
      33                 :   /* void deleteProperty (in AString name); */
      34                 :   NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD SetProperty(const nsAString & name, nsIVariant *value); \
      43                 :   NS_SCRIPTABLE NS_IMETHOD DeleteProperty(const nsAString & name); 
      44                 : 
      45                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      46                 : #define NS_FORWARD_NSIWRITABLEPROPERTYBAG(_to) \
      47                 :   NS_SCRIPTABLE NS_IMETHOD SetProperty(const nsAString & name, nsIVariant *value) { return _to SetProperty(name, value); } \
      48                 :   NS_SCRIPTABLE NS_IMETHOD DeleteProperty(const nsAString & name) { return _to DeleteProperty(name); } 
      49                 : 
      50                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      51                 : #define NS_FORWARD_SAFE_NSIWRITABLEPROPERTYBAG(_to) \
      52                 :   NS_SCRIPTABLE NS_IMETHOD SetProperty(const nsAString & name, nsIVariant *value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProperty(name, value); } \
      53                 :   NS_SCRIPTABLE NS_IMETHOD DeleteProperty(const nsAString & name) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteProperty(name); } 
      54                 : 
      55                 : #if 0
      56                 : /* Use the code below as a template for the implementation class for this interface. */
      57                 : 
      58                 : /* Header file */
      59                 : class nsWritablePropertyBag : public nsIWritablePropertyBag
      60                 : {
      61                 : public:
      62                 :   NS_DECL_ISUPPORTS
      63                 :   NS_DECL_NSIWRITABLEPROPERTYBAG
      64                 : 
      65                 :   nsWritablePropertyBag();
      66                 : 
      67                 : private:
      68                 :   ~nsWritablePropertyBag();
      69                 : 
      70                 : protected:
      71                 :   /* additional members */
      72                 : };
      73                 : 
      74                 : /* Implementation file */
      75                 : NS_IMPL_ISUPPORTS1(nsWritablePropertyBag, nsIWritablePropertyBag)
      76                 : 
      77                 : nsWritablePropertyBag::nsWritablePropertyBag()
      78                 : {
      79                 :   /* member initializers and constructor code */
      80                 : }
      81                 : 
      82                 : nsWritablePropertyBag::~nsWritablePropertyBag()
      83                 : {
      84                 :   /* destructor code */
      85                 : }
      86                 : 
      87                 : /* void setProperty (in AString name, in nsIVariant value); */
      88                 : NS_IMETHODIMP nsWritablePropertyBag::SetProperty(const nsAString & name, nsIVariant *value)
      89                 : {
      90                 :     return NS_ERROR_NOT_IMPLEMENTED;
      91                 : }
      92                 : 
      93                 : /* void deleteProperty (in AString name); */
      94                 : NS_IMETHODIMP nsWritablePropertyBag::DeleteProperty(const nsAString & name)
      95                 : {
      96                 :     return NS_ERROR_NOT_IMPLEMENTED;
      97                 : }
      98                 : 
      99                 : /* End of implementation class template. */
     100                 : #endif
     101                 : 
     102                 : 
     103                 : #endif /* __gen_nsIWritablePropertyBag_h__ */

Generated by: LCOV version 1.7