LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIPropertyBag2.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/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           58263 : class NS_NO_VTABLE NS_SCRIPTABLE nsIPropertyBag2 : public nsIPropertyBag {
      26                 :  public: 
      27                 : 
      28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROPERTYBAG2_IID)
      29                 : 
      30                 :   /* PRInt32 getPropertyAsInt32 (in AString prop); */
      31                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsInt32(const nsAString & prop, PRInt32 *_retval NS_OUTPARAM) = 0;
      32                 : 
      33                 :   /* PRUint32 getPropertyAsUint32 (in AString prop); */
      34                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsUint32(const nsAString & prop, PRUint32 *_retval NS_OUTPARAM) = 0;
      35                 : 
      36                 :   /* PRInt64 getPropertyAsInt64 (in AString prop); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsInt64(const nsAString & prop, PRInt64 *_retval NS_OUTPARAM) = 0;
      38                 : 
      39                 :   /* PRUint64 getPropertyAsUint64 (in AString prop); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsUint64(const nsAString & prop, PRUint64 *_retval NS_OUTPARAM) = 0;
      41                 : 
      42                 :   /* double getPropertyAsDouble (in AString prop); */
      43                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsDouble(const nsAString & prop, double *_retval NS_OUTPARAM) = 0;
      44                 : 
      45                 :   /* AString getPropertyAsAString (in AString prop); */
      46                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsAString(const nsAString & prop, nsAString & _retval NS_OUTPARAM) = 0;
      47                 : 
      48                 :   /* ACString getPropertyAsACString (in AString prop); */
      49                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsACString(const nsAString & prop, nsACString & _retval NS_OUTPARAM) = 0;
      50                 : 
      51                 :   /* AUTF8String getPropertyAsAUTF8String (in AString prop); */
      52                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsAUTF8String(const nsAString & prop, nsACString & _retval NS_OUTPARAM) = 0;
      53                 : 
      54                 :   /* boolean getPropertyAsBool (in AString prop); */
      55                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsBool(const nsAString & prop, bool *_retval NS_OUTPARAM) = 0;
      56                 : 
      57                 :   /* void getPropertyAsInterface (in AString prop, in nsIIDRef iid, [iid_is (iid), retval] out nsQIResult result); */
      58                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsInterface(const nsAString & prop, const nsIID & iid, void **result NS_OUTPARAM) = 0;
      59                 : 
      60                 :   /* nsIVariant get (in AString prop); */
      61                 :   NS_SCRIPTABLE NS_IMETHOD Get(const nsAString & prop, nsIVariant * *_retval NS_OUTPARAM) = 0;
      62                 : 
      63                 :   /* boolean hasKey (in AString prop); */
      64                 :   NS_SCRIPTABLE NS_IMETHOD HasKey(const nsAString & prop, bool *_retval NS_OUTPARAM) = 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_SCRIPTABLE NS_IMETHOD GetPropertyAsInt32(const nsAString & prop, PRInt32 *_retval NS_OUTPARAM); \
      73                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsUint32(const nsAString & prop, PRUint32 *_retval NS_OUTPARAM); \
      74                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsInt64(const nsAString & prop, PRInt64 *_retval NS_OUTPARAM); \
      75                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsUint64(const nsAString & prop, PRUint64 *_retval NS_OUTPARAM); \
      76                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsDouble(const nsAString & prop, double *_retval NS_OUTPARAM); \
      77                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsAString(const nsAString & prop, nsAString & _retval NS_OUTPARAM); \
      78                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsACString(const nsAString & prop, nsACString & _retval NS_OUTPARAM); \
      79                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsAUTF8String(const nsAString & prop, nsACString & _retval NS_OUTPARAM); \
      80                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsBool(const nsAString & prop, bool *_retval NS_OUTPARAM); \
      81                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsInterface(const nsAString & prop, const nsIID & iid, void **result NS_OUTPARAM); \
      82                 :   NS_SCRIPTABLE NS_IMETHOD Get(const nsAString & prop, nsIVariant * *_retval NS_OUTPARAM); \
      83                 :   NS_SCRIPTABLE NS_IMETHOD HasKey(const nsAString & prop, bool *_retval NS_OUTPARAM); 
      84                 : 
      85                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      86                 : #define NS_FORWARD_NSIPROPERTYBAG2(_to) \
      87                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsInt32(const nsAString & prop, PRInt32 *_retval NS_OUTPARAM) { return _to GetPropertyAsInt32(prop, _retval); } \
      88                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsUint32(const nsAString & prop, PRUint32 *_retval NS_OUTPARAM) { return _to GetPropertyAsUint32(prop, _retval); } \
      89                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsInt64(const nsAString & prop, PRInt64 *_retval NS_OUTPARAM) { return _to GetPropertyAsInt64(prop, _retval); } \
      90                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsUint64(const nsAString & prop, PRUint64 *_retval NS_OUTPARAM) { return _to GetPropertyAsUint64(prop, _retval); } \
      91                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsDouble(const nsAString & prop, double *_retval NS_OUTPARAM) { return _to GetPropertyAsDouble(prop, _retval); } \
      92                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsAString(const nsAString & prop, nsAString & _retval NS_OUTPARAM) { return _to GetPropertyAsAString(prop, _retval); } \
      93                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsACString(const nsAString & prop, nsACString & _retval NS_OUTPARAM) { return _to GetPropertyAsACString(prop, _retval); } \
      94                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsAUTF8String(const nsAString & prop, nsACString & _retval NS_OUTPARAM) { return _to GetPropertyAsAUTF8String(prop, _retval); } \
      95                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsBool(const nsAString & prop, bool *_retval NS_OUTPARAM) { return _to GetPropertyAsBool(prop, _retval); } \
      96                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsInterface(const nsAString & prop, const nsIID & iid, void **result NS_OUTPARAM) { return _to GetPropertyAsInterface(prop, iid, result); } \
      97                 :   NS_SCRIPTABLE NS_IMETHOD Get(const nsAString & prop, nsIVariant * *_retval NS_OUTPARAM) { return _to Get(prop, _retval); } \
      98                 :   NS_SCRIPTABLE NS_IMETHOD HasKey(const nsAString & prop, bool *_retval NS_OUTPARAM) { return _to HasKey(prop, _retval); } 
      99                 : 
     100                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     101                 : #define NS_FORWARD_SAFE_NSIPROPERTYBAG2(_to) \
     102                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsInt32(const nsAString & prop, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsInt32(prop, _retval); } \
     103                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsUint32(const nsAString & prop, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsUint32(prop, _retval); } \
     104                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsInt64(const nsAString & prop, PRInt64 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsInt64(prop, _retval); } \
     105                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsUint64(const nsAString & prop, PRUint64 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsUint64(prop, _retval); } \
     106                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsDouble(const nsAString & prop, double *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsDouble(prop, _retval); } \
     107                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsAString(const nsAString & prop, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsAString(prop, _retval); } \
     108                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsACString(const nsAString & prop, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsACString(prop, _retval); } \
     109                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsAUTF8String(const nsAString & prop, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsAUTF8String(prop, _retval); } \
     110                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsBool(const nsAString & prop, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsBool(prop, _retval); } \
     111                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsInterface(const nsAString & prop, const nsIID & iid, void **result NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsInterface(prop, iid, result); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD Get(const nsAString & prop, nsIVariant * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Get(prop, _retval); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD HasKey(const nsAString & prop, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasKey(prop, _retval); } 
     114                 : 
     115                 : #if 0
     116                 : /* Use the code below as a template for the implementation class for this interface. */
     117                 : 
     118                 : /* Header file */
     119                 : class nsPropertyBag2 : public nsIPropertyBag2
     120                 : {
     121                 : public:
     122                 :   NS_DECL_ISUPPORTS
     123                 :   NS_DECL_NSIPROPERTYBAG2
     124                 : 
     125                 :   nsPropertyBag2();
     126                 : 
     127                 : private:
     128                 :   ~nsPropertyBag2();
     129                 : 
     130                 : protected:
     131                 :   /* additional members */
     132                 : };
     133                 : 
     134                 : /* Implementation file */
     135                 : NS_IMPL_ISUPPORTS1(nsPropertyBag2, nsIPropertyBag2)
     136                 : 
     137                 : nsPropertyBag2::nsPropertyBag2()
     138                 : {
     139                 :   /* member initializers and constructor code */
     140                 : }
     141                 : 
     142                 : nsPropertyBag2::~nsPropertyBag2()
     143                 : {
     144                 :   /* destructor code */
     145                 : }
     146                 : 
     147                 : /* PRInt32 getPropertyAsInt32 (in AString prop); */
     148                 : NS_IMETHODIMP nsPropertyBag2::GetPropertyAsInt32(const nsAString & prop, PRInt32 *_retval NS_OUTPARAM)
     149                 : {
     150                 :     return NS_ERROR_NOT_IMPLEMENTED;
     151                 : }
     152                 : 
     153                 : /* PRUint32 getPropertyAsUint32 (in AString prop); */
     154                 : NS_IMETHODIMP nsPropertyBag2::GetPropertyAsUint32(const nsAString & prop, PRUint32 *_retval NS_OUTPARAM)
     155                 : {
     156                 :     return NS_ERROR_NOT_IMPLEMENTED;
     157                 : }
     158                 : 
     159                 : /* PRInt64 getPropertyAsInt64 (in AString prop); */
     160                 : NS_IMETHODIMP nsPropertyBag2::GetPropertyAsInt64(const nsAString & prop, PRInt64 *_retval NS_OUTPARAM)
     161                 : {
     162                 :     return NS_ERROR_NOT_IMPLEMENTED;
     163                 : }
     164                 : 
     165                 : /* PRUint64 getPropertyAsUint64 (in AString prop); */
     166                 : NS_IMETHODIMP nsPropertyBag2::GetPropertyAsUint64(const nsAString & prop, PRUint64 *_retval NS_OUTPARAM)
     167                 : {
     168                 :     return NS_ERROR_NOT_IMPLEMENTED;
     169                 : }
     170                 : 
     171                 : /* double getPropertyAsDouble (in AString prop); */
     172                 : NS_IMETHODIMP nsPropertyBag2::GetPropertyAsDouble(const nsAString & prop, double *_retval NS_OUTPARAM)
     173                 : {
     174                 :     return NS_ERROR_NOT_IMPLEMENTED;
     175                 : }
     176                 : 
     177                 : /* AString getPropertyAsAString (in AString prop); */
     178                 : NS_IMETHODIMP nsPropertyBag2::GetPropertyAsAString(const nsAString & prop, nsAString & _retval NS_OUTPARAM)
     179                 : {
     180                 :     return NS_ERROR_NOT_IMPLEMENTED;
     181                 : }
     182                 : 
     183                 : /* ACString getPropertyAsACString (in AString prop); */
     184                 : NS_IMETHODIMP nsPropertyBag2::GetPropertyAsACString(const nsAString & prop, nsACString & _retval NS_OUTPARAM)
     185                 : {
     186                 :     return NS_ERROR_NOT_IMPLEMENTED;
     187                 : }
     188                 : 
     189                 : /* AUTF8String getPropertyAsAUTF8String (in AString prop); */
     190                 : NS_IMETHODIMP nsPropertyBag2::GetPropertyAsAUTF8String(const nsAString & prop, nsACString & _retval NS_OUTPARAM)
     191                 : {
     192                 :     return NS_ERROR_NOT_IMPLEMENTED;
     193                 : }
     194                 : 
     195                 : /* boolean getPropertyAsBool (in AString prop); */
     196                 : NS_IMETHODIMP nsPropertyBag2::GetPropertyAsBool(const nsAString & prop, bool *_retval NS_OUTPARAM)
     197                 : {
     198                 :     return NS_ERROR_NOT_IMPLEMENTED;
     199                 : }
     200                 : 
     201                 : /* void getPropertyAsInterface (in AString prop, in nsIIDRef iid, [iid_is (iid), retval] out nsQIResult result); */
     202                 : NS_IMETHODIMP nsPropertyBag2::GetPropertyAsInterface(const nsAString & prop, const nsIID & iid, void **result NS_OUTPARAM)
     203                 : {
     204                 :     return NS_ERROR_NOT_IMPLEMENTED;
     205                 : }
     206                 : 
     207                 : /* nsIVariant get (in AString prop); */
     208                 : NS_IMETHODIMP nsPropertyBag2::Get(const nsAString & prop, nsIVariant * *_retval NS_OUTPARAM)
     209                 : {
     210                 :     return NS_ERROR_NOT_IMPLEMENTED;
     211                 : }
     212                 : 
     213                 : /* boolean hasKey (in AString prop); */
     214                 : NS_IMETHODIMP nsPropertyBag2::HasKey(const nsAString & prop, bool *_retval NS_OUTPARAM)
     215                 : {
     216                 :     return NS_ERROR_NOT_IMPLEMENTED;
     217                 : }
     218                 : 
     219                 : /* End of implementation class template. */
     220                 : #endif
     221                 : 
     222                 : 
     223                 : #endif /* __gen_nsIPropertyBag2_h__ */

Generated by: LCOV version 1.7