LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIPropertyBag2.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/nsIPropertyBag2.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIPropertyBag2_h__
       6             : #define __gen_nsIPropertyBag2_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:    nsIPropertyBag2 */
      19             : #define NS_IPROPERTYBAG2_IID_STR "625cfd1e-da1e-4417-9ee9-dbc8e0b3fd79"
      20             : 
      21             : #define NS_IPROPERTYBAG2_IID \
      22             :   {0x625cfd1e, 0xda1e, 0x4417, \
      23             :     { 0x9e, 0xe9, 0xdb, 0xc8, 0xe0, 0xb3, 0xfd, 0x79 }}
      24             : 
      25        1194 : class NS_NO_VTABLE nsIPropertyBag2 : public nsIPropertyBag {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROPERTYBAG2_IID)
      29             : 
      30             :   /* int32_t getPropertyAsInt32 (in AString prop); */
      31             :   NS_IMETHOD GetPropertyAsInt32(const nsAString & prop, int32_t *_retval) = 0;
      32             : 
      33             :   /* uint32_t getPropertyAsUint32 (in AString prop); */
      34             :   NS_IMETHOD GetPropertyAsUint32(const nsAString & prop, uint32_t *_retval) = 0;
      35             : 
      36             :   /* int64_t getPropertyAsInt64 (in AString prop); */
      37             :   NS_IMETHOD GetPropertyAsInt64(const nsAString & prop, int64_t *_retval) = 0;
      38             : 
      39             :   /* uint64_t getPropertyAsUint64 (in AString prop); */
      40             :   NS_IMETHOD GetPropertyAsUint64(const nsAString & prop, uint64_t *_retval) = 0;
      41             : 
      42             :   /* double getPropertyAsDouble (in AString prop); */
      43             :   NS_IMETHOD GetPropertyAsDouble(const nsAString & prop, double *_retval) = 0;
      44             : 
      45             :   /* AString getPropertyAsAString (in AString prop); */
      46             :   NS_IMETHOD GetPropertyAsAString(const nsAString & prop, nsAString & _retval) = 0;
      47             : 
      48             :   /* ACString getPropertyAsACString (in AString prop); */
      49             :   NS_IMETHOD GetPropertyAsACString(const nsAString & prop, nsACString & _retval) = 0;
      50             : 
      51             :   /* AUTF8String getPropertyAsAUTF8String (in AString prop); */
      52             :   NS_IMETHOD GetPropertyAsAUTF8String(const nsAString & prop, nsACString & _retval) = 0;
      53             : 
      54             :   /* boolean getPropertyAsBool (in AString prop); */
      55             :   NS_IMETHOD GetPropertyAsBool(const nsAString & prop, bool *_retval) = 0;
      56             : 
      57             :   /* void getPropertyAsInterface (in AString prop, in nsIIDRef iid, [iid_is (iid), retval] out nsQIResult result); */
      58             :   NS_IMETHOD GetPropertyAsInterface(const nsAString & prop, const nsIID & iid, void **result) = 0;
      59             : 
      60             :   /* nsIVariant get (in AString prop); */
      61             :   NS_IMETHOD Get(const nsAString & prop, nsIVariant * *_retval) = 0;
      62             : 
      63             :   /* boolean hasKey (in AString prop); */
      64             :   NS_IMETHOD HasKey(const nsAString & prop, bool *_retval) = 0;
      65             : 
      66             : };
      67             : 
      68             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPropertyBag2, NS_IPROPERTYBAG2_IID)
      69             : 
      70             : /* Use this macro when declaring classes that implement this interface. */
      71             : #define NS_DECL_NSIPROPERTYBAG2 \
      72             :   NS_IMETHOD GetPropertyAsInt32(const nsAString & prop, int32_t *_retval) override; \
      73             :   NS_IMETHOD GetPropertyAsUint32(const nsAString & prop, uint32_t *_retval) override; \
      74             :   NS_IMETHOD GetPropertyAsInt64(const nsAString & prop, int64_t *_retval) override; \
      75             :   NS_IMETHOD GetPropertyAsUint64(const nsAString & prop, uint64_t *_retval) override; \
      76             :   NS_IMETHOD GetPropertyAsDouble(const nsAString & prop, double *_retval) override; \
      77             :   NS_IMETHOD GetPropertyAsAString(const nsAString & prop, nsAString & _retval) override; \
      78             :   NS_IMETHOD GetPropertyAsACString(const nsAString & prop, nsACString & _retval) override; \
      79             :   NS_IMETHOD GetPropertyAsAUTF8String(const nsAString & prop, nsACString & _retval) override; \
      80             :   NS_IMETHOD GetPropertyAsBool(const nsAString & prop, bool *_retval) override; \
      81             :   NS_IMETHOD GetPropertyAsInterface(const nsAString & prop, const nsIID & iid, void **result) override; \
      82             :   NS_IMETHOD Get(const nsAString & prop, nsIVariant * *_retval) override; \
      83             :   NS_IMETHOD HasKey(const nsAString & prop, bool *_retval) override; 
      84             : 
      85             : /* Use this macro when declaring the members of this interface when the
      86             :    class doesn't implement the interface. This is useful for forwarding. */
      87             : #define NS_DECL_NON_VIRTUAL_NSIPROPERTYBAG2 \
      88             :   nsresult GetPropertyAsInt32(const nsAString & prop, int32_t *_retval); \
      89             :   nsresult GetPropertyAsUint32(const nsAString & prop, uint32_t *_retval); \
      90             :   nsresult GetPropertyAsInt64(const nsAString & prop, int64_t *_retval); \
      91             :   nsresult GetPropertyAsUint64(const nsAString & prop, uint64_t *_retval); \
      92             :   nsresult GetPropertyAsDouble(const nsAString & prop, double *_retval); \
      93             :   nsresult GetPropertyAsAString(const nsAString & prop, nsAString & _retval); \
      94             :   nsresult GetPropertyAsACString(const nsAString & prop, nsACString & _retval); \
      95             :   nsresult GetPropertyAsAUTF8String(const nsAString & prop, nsACString & _retval); \
      96             :   nsresult GetPropertyAsBool(const nsAString & prop, bool *_retval); \
      97             :   nsresult GetPropertyAsInterface(const nsAString & prop, const nsIID & iid, void **result); \
      98             :   nsresult Get(const nsAString & prop, nsIVariant * *_retval); \
      99             :   nsresult HasKey(const nsAString & prop, bool *_retval); 
     100             : 
     101             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     102             : #define NS_FORWARD_NSIPROPERTYBAG2(_to) \
     103             :   NS_IMETHOD GetPropertyAsInt32(const nsAString & prop, int32_t *_retval) override { return _to GetPropertyAsInt32(prop, _retval); } \
     104             :   NS_IMETHOD GetPropertyAsUint32(const nsAString & prop, uint32_t *_retval) override { return _to GetPropertyAsUint32(prop, _retval); } \
     105             :   NS_IMETHOD GetPropertyAsInt64(const nsAString & prop, int64_t *_retval) override { return _to GetPropertyAsInt64(prop, _retval); } \
     106             :   NS_IMETHOD GetPropertyAsUint64(const nsAString & prop, uint64_t *_retval) override { return _to GetPropertyAsUint64(prop, _retval); } \
     107             :   NS_IMETHOD GetPropertyAsDouble(const nsAString & prop, double *_retval) override { return _to GetPropertyAsDouble(prop, _retval); } \
     108             :   NS_IMETHOD GetPropertyAsAString(const nsAString & prop, nsAString & _retval) override { return _to GetPropertyAsAString(prop, _retval); } \
     109             :   NS_IMETHOD GetPropertyAsACString(const nsAString & prop, nsACString & _retval) override { return _to GetPropertyAsACString(prop, _retval); } \
     110             :   NS_IMETHOD GetPropertyAsAUTF8String(const nsAString & prop, nsACString & _retval) override { return _to GetPropertyAsAUTF8String(prop, _retval); } \
     111             :   NS_IMETHOD GetPropertyAsBool(const nsAString & prop, bool *_retval) override { return _to GetPropertyAsBool(prop, _retval); } \
     112             :   NS_IMETHOD GetPropertyAsInterface(const nsAString & prop, const nsIID & iid, void **result) override { return _to GetPropertyAsInterface(prop, iid, result); } \
     113             :   NS_IMETHOD Get(const nsAString & prop, nsIVariant * *_retval) override { return _to Get(prop, _retval); } \
     114             :   NS_IMETHOD HasKey(const nsAString & prop, bool *_retval) override { return _to HasKey(prop, _retval); } 
     115             : 
     116             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     117             : #define NS_FORWARD_SAFE_NSIPROPERTYBAG2(_to) \
     118             :   NS_IMETHOD GetPropertyAsInt32(const nsAString & prop, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsInt32(prop, _retval); } \
     119             :   NS_IMETHOD GetPropertyAsUint32(const nsAString & prop, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsUint32(prop, _retval); } \
     120             :   NS_IMETHOD GetPropertyAsInt64(const nsAString & prop, int64_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsInt64(prop, _retval); } \
     121             :   NS_IMETHOD GetPropertyAsUint64(const nsAString & prop, uint64_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsUint64(prop, _retval); } \
     122             :   NS_IMETHOD GetPropertyAsDouble(const nsAString & prop, double *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsDouble(prop, _retval); } \
     123             :   NS_IMETHOD GetPropertyAsAString(const nsAString & prop, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsAString(prop, _retval); } \
     124             :   NS_IMETHOD GetPropertyAsACString(const nsAString & prop, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsACString(prop, _retval); } \
     125             :   NS_IMETHOD GetPropertyAsAUTF8String(const nsAString & prop, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsAUTF8String(prop, _retval); } \
     126             :   NS_IMETHOD GetPropertyAsBool(const nsAString & prop, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsBool(prop, _retval); } \
     127             :   NS_IMETHOD GetPropertyAsInterface(const nsAString & prop, const nsIID & iid, void **result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsInterface(prop, iid, result); } \
     128             :   NS_IMETHOD Get(const nsAString & prop, nsIVariant * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Get(prop, _retval); } \
     129             :   NS_IMETHOD HasKey(const nsAString & prop, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasKey(prop, _retval); } 
     130             : 
     131             : #if 0
     132             : /* Use the code below as a template for the implementation class for this interface. */
     133             : 
     134             : /* Header file */
     135             : class nsPropertyBag2 : public nsIPropertyBag2
     136             : {
     137             : public:
     138             :   NS_DECL_ISUPPORTS
     139             :   NS_DECL_NSIPROPERTYBAG2
     140             : 
     141             :   nsPropertyBag2();
     142             : 
     143             : private:
     144             :   ~nsPropertyBag2();
     145             : 
     146             : protected:
     147             :   /* additional members */
     148             : };
     149             : 
     150             : /* Implementation file */
     151             : NS_IMPL_ISUPPORTS(nsPropertyBag2, nsIPropertyBag2)
     152             : 
     153             : nsPropertyBag2::nsPropertyBag2()
     154             : {
     155             :   /* member initializers and constructor code */
     156             : }
     157             : 
     158             : nsPropertyBag2::~nsPropertyBag2()
     159             : {
     160             :   /* destructor code */
     161             : }
     162             : 
     163             : /* int32_t getPropertyAsInt32 (in AString prop); */
     164             : NS_IMETHODIMP nsPropertyBag2::GetPropertyAsInt32(const nsAString & prop, int32_t *_retval)
     165             : {
     166             :     return NS_ERROR_NOT_IMPLEMENTED;
     167             : }
     168             : 
     169             : /* uint32_t getPropertyAsUint32 (in AString prop); */
     170             : NS_IMETHODIMP nsPropertyBag2::GetPropertyAsUint32(const nsAString & prop, uint32_t *_retval)
     171             : {
     172             :     return NS_ERROR_NOT_IMPLEMENTED;
     173             : }
     174             : 
     175             : /* int64_t getPropertyAsInt64 (in AString prop); */
     176             : NS_IMETHODIMP nsPropertyBag2::GetPropertyAsInt64(const nsAString & prop, int64_t *_retval)
     177             : {
     178             :     return NS_ERROR_NOT_IMPLEMENTED;
     179             : }
     180             : 
     181             : /* uint64_t getPropertyAsUint64 (in AString prop); */
     182             : NS_IMETHODIMP nsPropertyBag2::GetPropertyAsUint64(const nsAString & prop, uint64_t *_retval)
     183             : {
     184             :     return NS_ERROR_NOT_IMPLEMENTED;
     185             : }
     186             : 
     187             : /* double getPropertyAsDouble (in AString prop); */
     188             : NS_IMETHODIMP nsPropertyBag2::GetPropertyAsDouble(const nsAString & prop, double *_retval)
     189             : {
     190             :     return NS_ERROR_NOT_IMPLEMENTED;
     191             : }
     192             : 
     193             : /* AString getPropertyAsAString (in AString prop); */
     194             : NS_IMETHODIMP nsPropertyBag2::GetPropertyAsAString(const nsAString & prop, nsAString & _retval)
     195             : {
     196             :     return NS_ERROR_NOT_IMPLEMENTED;
     197             : }
     198             : 
     199             : /* ACString getPropertyAsACString (in AString prop); */
     200             : NS_IMETHODIMP nsPropertyBag2::GetPropertyAsACString(const nsAString & prop, nsACString & _retval)
     201             : {
     202             :     return NS_ERROR_NOT_IMPLEMENTED;
     203             : }
     204             : 
     205             : /* AUTF8String getPropertyAsAUTF8String (in AString prop); */
     206             : NS_IMETHODIMP nsPropertyBag2::GetPropertyAsAUTF8String(const nsAString & prop, nsACString & _retval)
     207             : {
     208             :     return NS_ERROR_NOT_IMPLEMENTED;
     209             : }
     210             : 
     211             : /* boolean getPropertyAsBool (in AString prop); */
     212             : NS_IMETHODIMP nsPropertyBag2::GetPropertyAsBool(const nsAString & prop, bool *_retval)
     213             : {
     214             :     return NS_ERROR_NOT_IMPLEMENTED;
     215             : }
     216             : 
     217             : /* void getPropertyAsInterface (in AString prop, in nsIIDRef iid, [iid_is (iid), retval] out nsQIResult result); */
     218             : NS_IMETHODIMP nsPropertyBag2::GetPropertyAsInterface(const nsAString & prop, const nsIID & iid, void **result)
     219             : {
     220             :     return NS_ERROR_NOT_IMPLEMENTED;
     221             : }
     222             : 
     223             : /* nsIVariant get (in AString prop); */
     224             : NS_IMETHODIMP nsPropertyBag2::Get(const nsAString & prop, nsIVariant * *_retval)
     225             : {
     226             :     return NS_ERROR_NOT_IMPLEMENTED;
     227             : }
     228             : 
     229             : /* boolean hasKey (in AString prop); */
     230             : NS_IMETHODIMP nsPropertyBag2::HasKey(const nsAString & prop, bool *_retval)
     231             : {
     232             :     return NS_ERROR_NOT_IMPLEMENTED;
     233             : }
     234             : 
     235             : /* End of implementation class template. */
     236             : #endif
     237             : 
     238             : 
     239             : #endif /* __gen_nsIPropertyBag2_h__ */

Generated by: LCOV version 1.13