LCOV - code coverage report
Current view: directory - objdir/dist/include - mozIStorageBindingParams.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/storage/public/mozIStorageBindingParams.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_mozIStorageBindingParams_h__
       6                 : #define __gen_mozIStorageBindingParams_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.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                 : class nsIVariant; /* forward declaration */
      18                 : 
      19                 : 
      20                 : /* starting interface:    mozIStorageBindingParams */
      21                 : #define MOZISTORAGEBINDINGPARAMS_IID_STR "a8d4827c-641c-45e3-a9ea-493570b4106b"
      22                 : 
      23                 : #define MOZISTORAGEBINDINGPARAMS_IID \
      24                 :   {0xa8d4827c, 0x641c, 0x45e3, \
      25                 :     { 0xa9, 0xea, 0x49, 0x35, 0x70, 0xb4, 0x10, 0x6b }}
      26                 : 
      27          164646 : class NS_NO_VTABLE NS_SCRIPTABLE mozIStorageBindingParams : public nsISupports {
      28                 :  public: 
      29                 : 
      30                 :   NS_DECLARE_STATIC_IID_ACCESSOR(MOZISTORAGEBINDINGPARAMS_IID)
      31                 : 
      32                 :   /* void bindByName (in AUTF8String aName, in nsIVariant aValue); */
      33                 :   NS_SCRIPTABLE NS_IMETHOD BindByName(const nsACString & aName, nsIVariant *aValue) = 0;
      34                 : 
      35                 :   /* [noscript] void bindUTF8StringByName (in AUTF8String aName, in AUTF8String aValue); */
      36                 :   NS_IMETHOD BindUTF8StringByName(const nsACString & aName, const nsACString & aValue) = 0;
      37                 : 
      38                 :   /* [noscript] void bindStringByName (in AUTF8String aName, in AString aValue); */
      39                 :   NS_IMETHOD BindStringByName(const nsACString & aName, const nsAString & aValue) = 0;
      40                 : 
      41                 :   /* [noscript] void bindDoubleByName (in AUTF8String aName, in double aValue); */
      42                 :   NS_IMETHOD BindDoubleByName(const nsACString & aName, double aValue) = 0;
      43                 : 
      44                 :   /* [noscript] void bindInt32ByName (in AUTF8String aName, in long aValue); */
      45                 :   NS_IMETHOD BindInt32ByName(const nsACString & aName, PRInt32 aValue) = 0;
      46                 : 
      47                 :   /* [noscript] void bindInt64ByName (in AUTF8String aName, in long long aValue); */
      48                 :   NS_IMETHOD BindInt64ByName(const nsACString & aName, PRInt64 aValue) = 0;
      49                 : 
      50                 :   /* [noscript] void bindNullByName (in AUTF8String aName); */
      51                 :   NS_IMETHOD BindNullByName(const nsACString & aName) = 0;
      52                 : 
      53                 :   /* void bindBlobByName (in AUTF8String aName, [array, size_is (aValueSize), const] in octet aValue, in unsigned long aValueSize); */
      54                 :   NS_SCRIPTABLE NS_IMETHOD BindBlobByName(const nsACString & aName, const PRUint8 *aValue, PRUint32 aValueSize) = 0;
      55                 : 
      56                 :   /* void bindByIndex (in unsigned long aIndex, in nsIVariant aValue); */
      57                 :   NS_SCRIPTABLE NS_IMETHOD BindByIndex(PRUint32 aIndex, nsIVariant *aValue) = 0;
      58                 : 
      59                 :   /* [noscript] void bindUTF8StringByIndex (in unsigned long aIndex, in AUTF8String aValue); */
      60                 :   NS_IMETHOD BindUTF8StringByIndex(PRUint32 aIndex, const nsACString & aValue) = 0;
      61                 : 
      62                 :   /* [noscript] void bindStringByIndex (in unsigned long aIndex, in AString aValue); */
      63                 :   NS_IMETHOD BindStringByIndex(PRUint32 aIndex, const nsAString & aValue) = 0;
      64                 : 
      65                 :   /* [noscript] void bindDoubleByIndex (in unsigned long aIndex, in double aValue); */
      66                 :   NS_IMETHOD BindDoubleByIndex(PRUint32 aIndex, double aValue) = 0;
      67                 : 
      68                 :   /* [noscript] void bindInt32ByIndex (in unsigned long aIndex, in long aValue); */
      69                 :   NS_IMETHOD BindInt32ByIndex(PRUint32 aIndex, PRInt32 aValue) = 0;
      70                 : 
      71                 :   /* [noscript] void bindInt64ByIndex (in unsigned long aIndex, in long long aValue); */
      72                 :   NS_IMETHOD BindInt64ByIndex(PRUint32 aIndex, PRInt64 aValue) = 0;
      73                 : 
      74                 :   /* [noscript] void bindNullByIndex (in unsigned long aIndex); */
      75                 :   NS_IMETHOD BindNullByIndex(PRUint32 aIndex) = 0;
      76                 : 
      77                 :   /* void bindBlobByIndex (in unsigned long aIndex, [array, size_is (aValueSize), const] in octet aValue, in unsigned long aValueSize); */
      78                 :   NS_SCRIPTABLE NS_IMETHOD BindBlobByIndex(PRUint32 aIndex, const PRUint8 *aValue, PRUint32 aValueSize) = 0;
      79                 : 
      80                 : };
      81                 : 
      82                 :   NS_DEFINE_STATIC_IID_ACCESSOR(mozIStorageBindingParams, MOZISTORAGEBINDINGPARAMS_IID)
      83                 : 
      84                 : /* Use this macro when declaring classes that implement this interface. */
      85                 : #define NS_DECL_MOZISTORAGEBINDINGPARAMS \
      86                 :   NS_SCRIPTABLE NS_IMETHOD BindByName(const nsACString & aName, nsIVariant *aValue); \
      87                 :   NS_IMETHOD BindUTF8StringByName(const nsACString & aName, const nsACString & aValue); \
      88                 :   NS_IMETHOD BindStringByName(const nsACString & aName, const nsAString & aValue); \
      89                 :   NS_IMETHOD BindDoubleByName(const nsACString & aName, double aValue); \
      90                 :   NS_IMETHOD BindInt32ByName(const nsACString & aName, PRInt32 aValue); \
      91                 :   NS_IMETHOD BindInt64ByName(const nsACString & aName, PRInt64 aValue); \
      92                 :   NS_IMETHOD BindNullByName(const nsACString & aName); \
      93                 :   NS_SCRIPTABLE NS_IMETHOD BindBlobByName(const nsACString & aName, const PRUint8 *aValue, PRUint32 aValueSize); \
      94                 :   NS_SCRIPTABLE NS_IMETHOD BindByIndex(PRUint32 aIndex, nsIVariant *aValue); \
      95                 :   NS_IMETHOD BindUTF8StringByIndex(PRUint32 aIndex, const nsACString & aValue); \
      96                 :   NS_IMETHOD BindStringByIndex(PRUint32 aIndex, const nsAString & aValue); \
      97                 :   NS_IMETHOD BindDoubleByIndex(PRUint32 aIndex, double aValue); \
      98                 :   NS_IMETHOD BindInt32ByIndex(PRUint32 aIndex, PRInt32 aValue); \
      99                 :   NS_IMETHOD BindInt64ByIndex(PRUint32 aIndex, PRInt64 aValue); \
     100                 :   NS_IMETHOD BindNullByIndex(PRUint32 aIndex); \
     101                 :   NS_SCRIPTABLE NS_IMETHOD BindBlobByIndex(PRUint32 aIndex, const PRUint8 *aValue, PRUint32 aValueSize); 
     102                 : 
     103                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     104                 : #define NS_FORWARD_MOZISTORAGEBINDINGPARAMS(_to) \
     105                 :   NS_SCRIPTABLE NS_IMETHOD BindByName(const nsACString & aName, nsIVariant *aValue) { return _to BindByName(aName, aValue); } \
     106                 :   NS_IMETHOD BindUTF8StringByName(const nsACString & aName, const nsACString & aValue) { return _to BindUTF8StringByName(aName, aValue); } \
     107                 :   NS_IMETHOD BindStringByName(const nsACString & aName, const nsAString & aValue) { return _to BindStringByName(aName, aValue); } \
     108                 :   NS_IMETHOD BindDoubleByName(const nsACString & aName, double aValue) { return _to BindDoubleByName(aName, aValue); } \
     109                 :   NS_IMETHOD BindInt32ByName(const nsACString & aName, PRInt32 aValue) { return _to BindInt32ByName(aName, aValue); } \
     110                 :   NS_IMETHOD BindInt64ByName(const nsACString & aName, PRInt64 aValue) { return _to BindInt64ByName(aName, aValue); } \
     111                 :   NS_IMETHOD BindNullByName(const nsACString & aName) { return _to BindNullByName(aName); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD BindBlobByName(const nsACString & aName, const PRUint8 *aValue, PRUint32 aValueSize) { return _to BindBlobByName(aName, aValue, aValueSize); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD BindByIndex(PRUint32 aIndex, nsIVariant *aValue) { return _to BindByIndex(aIndex, aValue); } \
     114                 :   NS_IMETHOD BindUTF8StringByIndex(PRUint32 aIndex, const nsACString & aValue) { return _to BindUTF8StringByIndex(aIndex, aValue); } \
     115                 :   NS_IMETHOD BindStringByIndex(PRUint32 aIndex, const nsAString & aValue) { return _to BindStringByIndex(aIndex, aValue); } \
     116                 :   NS_IMETHOD BindDoubleByIndex(PRUint32 aIndex, double aValue) { return _to BindDoubleByIndex(aIndex, aValue); } \
     117                 :   NS_IMETHOD BindInt32ByIndex(PRUint32 aIndex, PRInt32 aValue) { return _to BindInt32ByIndex(aIndex, aValue); } \
     118                 :   NS_IMETHOD BindInt64ByIndex(PRUint32 aIndex, PRInt64 aValue) { return _to BindInt64ByIndex(aIndex, aValue); } \
     119                 :   NS_IMETHOD BindNullByIndex(PRUint32 aIndex) { return _to BindNullByIndex(aIndex); } \
     120                 :   NS_SCRIPTABLE NS_IMETHOD BindBlobByIndex(PRUint32 aIndex, const PRUint8 *aValue, PRUint32 aValueSize) { return _to BindBlobByIndex(aIndex, aValue, aValueSize); } 
     121                 : 
     122                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     123                 : #define NS_FORWARD_SAFE_MOZISTORAGEBINDINGPARAMS(_to) \
     124                 :   NS_SCRIPTABLE NS_IMETHOD BindByName(const nsACString & aName, nsIVariant *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindByName(aName, aValue); } \
     125                 :   NS_IMETHOD BindUTF8StringByName(const nsACString & aName, const nsACString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindUTF8StringByName(aName, aValue); } \
     126                 :   NS_IMETHOD BindStringByName(const nsACString & aName, const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindStringByName(aName, aValue); } \
     127                 :   NS_IMETHOD BindDoubleByName(const nsACString & aName, double aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindDoubleByName(aName, aValue); } \
     128                 :   NS_IMETHOD BindInt32ByName(const nsACString & aName, PRInt32 aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindInt32ByName(aName, aValue); } \
     129                 :   NS_IMETHOD BindInt64ByName(const nsACString & aName, PRInt64 aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindInt64ByName(aName, aValue); } \
     130                 :   NS_IMETHOD BindNullByName(const nsACString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindNullByName(aName); } \
     131                 :   NS_SCRIPTABLE NS_IMETHOD BindBlobByName(const nsACString & aName, const PRUint8 *aValue, PRUint32 aValueSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindBlobByName(aName, aValue, aValueSize); } \
     132                 :   NS_SCRIPTABLE NS_IMETHOD BindByIndex(PRUint32 aIndex, nsIVariant *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindByIndex(aIndex, aValue); } \
     133                 :   NS_IMETHOD BindUTF8StringByIndex(PRUint32 aIndex, const nsACString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindUTF8StringByIndex(aIndex, aValue); } \
     134                 :   NS_IMETHOD BindStringByIndex(PRUint32 aIndex, const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindStringByIndex(aIndex, aValue); } \
     135                 :   NS_IMETHOD BindDoubleByIndex(PRUint32 aIndex, double aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindDoubleByIndex(aIndex, aValue); } \
     136                 :   NS_IMETHOD BindInt32ByIndex(PRUint32 aIndex, PRInt32 aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindInt32ByIndex(aIndex, aValue); } \
     137                 :   NS_IMETHOD BindInt64ByIndex(PRUint32 aIndex, PRInt64 aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindInt64ByIndex(aIndex, aValue); } \
     138                 :   NS_IMETHOD BindNullByIndex(PRUint32 aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindNullByIndex(aIndex); } \
     139                 :   NS_SCRIPTABLE NS_IMETHOD BindBlobByIndex(PRUint32 aIndex, const PRUint8 *aValue, PRUint32 aValueSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindBlobByIndex(aIndex, aValue, aValueSize); } 
     140                 : 
     141                 : #if 0
     142                 : /* Use the code below as a template for the implementation class for this interface. */
     143                 : 
     144                 : /* Header file */
     145                 : class _MYCLASS_ : public mozIStorageBindingParams
     146                 : {
     147                 : public:
     148                 :   NS_DECL_ISUPPORTS
     149                 :   NS_DECL_MOZISTORAGEBINDINGPARAMS
     150                 : 
     151                 :   _MYCLASS_();
     152                 : 
     153                 : private:
     154                 :   ~_MYCLASS_();
     155                 : 
     156                 : protected:
     157                 :   /* additional members */
     158                 : };
     159                 : 
     160                 : /* Implementation file */
     161                 : NS_IMPL_ISUPPORTS1(_MYCLASS_, mozIStorageBindingParams)
     162                 : 
     163                 : _MYCLASS_::_MYCLASS_()
     164                 : {
     165                 :   /* member initializers and constructor code */
     166                 : }
     167                 : 
     168                 : _MYCLASS_::~_MYCLASS_()
     169                 : {
     170                 :   /* destructor code */
     171                 : }
     172                 : 
     173                 : /* void bindByName (in AUTF8String aName, in nsIVariant aValue); */
     174                 : NS_IMETHODIMP _MYCLASS_::BindByName(const nsACString & aName, nsIVariant *aValue)
     175                 : {
     176                 :     return NS_ERROR_NOT_IMPLEMENTED;
     177                 : }
     178                 : 
     179                 : /* [noscript] void bindUTF8StringByName (in AUTF8String aName, in AUTF8String aValue); */
     180                 : NS_IMETHODIMP _MYCLASS_::BindUTF8StringByName(const nsACString & aName, const nsACString & aValue)
     181                 : {
     182                 :     return NS_ERROR_NOT_IMPLEMENTED;
     183                 : }
     184                 : 
     185                 : /* [noscript] void bindStringByName (in AUTF8String aName, in AString aValue); */
     186                 : NS_IMETHODIMP _MYCLASS_::BindStringByName(const nsACString & aName, const nsAString & aValue)
     187                 : {
     188                 :     return NS_ERROR_NOT_IMPLEMENTED;
     189                 : }
     190                 : 
     191                 : /* [noscript] void bindDoubleByName (in AUTF8String aName, in double aValue); */
     192                 : NS_IMETHODIMP _MYCLASS_::BindDoubleByName(const nsACString & aName, double aValue)
     193                 : {
     194                 :     return NS_ERROR_NOT_IMPLEMENTED;
     195                 : }
     196                 : 
     197                 : /* [noscript] void bindInt32ByName (in AUTF8String aName, in long aValue); */
     198                 : NS_IMETHODIMP _MYCLASS_::BindInt32ByName(const nsACString & aName, PRInt32 aValue)
     199                 : {
     200                 :     return NS_ERROR_NOT_IMPLEMENTED;
     201                 : }
     202                 : 
     203                 : /* [noscript] void bindInt64ByName (in AUTF8String aName, in long long aValue); */
     204                 : NS_IMETHODIMP _MYCLASS_::BindInt64ByName(const nsACString & aName, PRInt64 aValue)
     205                 : {
     206                 :     return NS_ERROR_NOT_IMPLEMENTED;
     207                 : }
     208                 : 
     209                 : /* [noscript] void bindNullByName (in AUTF8String aName); */
     210                 : NS_IMETHODIMP _MYCLASS_::BindNullByName(const nsACString & aName)
     211                 : {
     212                 :     return NS_ERROR_NOT_IMPLEMENTED;
     213                 : }
     214                 : 
     215                 : /* void bindBlobByName (in AUTF8String aName, [array, size_is (aValueSize), const] in octet aValue, in unsigned long aValueSize); */
     216                 : NS_IMETHODIMP _MYCLASS_::BindBlobByName(const nsACString & aName, const PRUint8 *aValue, PRUint32 aValueSize)
     217                 : {
     218                 :     return NS_ERROR_NOT_IMPLEMENTED;
     219                 : }
     220                 : 
     221                 : /* void bindByIndex (in unsigned long aIndex, in nsIVariant aValue); */
     222                 : NS_IMETHODIMP _MYCLASS_::BindByIndex(PRUint32 aIndex, nsIVariant *aValue)
     223                 : {
     224                 :     return NS_ERROR_NOT_IMPLEMENTED;
     225                 : }
     226                 : 
     227                 : /* [noscript] void bindUTF8StringByIndex (in unsigned long aIndex, in AUTF8String aValue); */
     228                 : NS_IMETHODIMP _MYCLASS_::BindUTF8StringByIndex(PRUint32 aIndex, const nsACString & aValue)
     229                 : {
     230                 :     return NS_ERROR_NOT_IMPLEMENTED;
     231                 : }
     232                 : 
     233                 : /* [noscript] void bindStringByIndex (in unsigned long aIndex, in AString aValue); */
     234                 : NS_IMETHODIMP _MYCLASS_::BindStringByIndex(PRUint32 aIndex, const nsAString & aValue)
     235                 : {
     236                 :     return NS_ERROR_NOT_IMPLEMENTED;
     237                 : }
     238                 : 
     239                 : /* [noscript] void bindDoubleByIndex (in unsigned long aIndex, in double aValue); */
     240                 : NS_IMETHODIMP _MYCLASS_::BindDoubleByIndex(PRUint32 aIndex, double aValue)
     241                 : {
     242                 :     return NS_ERROR_NOT_IMPLEMENTED;
     243                 : }
     244                 : 
     245                 : /* [noscript] void bindInt32ByIndex (in unsigned long aIndex, in long aValue); */
     246                 : NS_IMETHODIMP _MYCLASS_::BindInt32ByIndex(PRUint32 aIndex, PRInt32 aValue)
     247                 : {
     248                 :     return NS_ERROR_NOT_IMPLEMENTED;
     249                 : }
     250                 : 
     251                 : /* [noscript] void bindInt64ByIndex (in unsigned long aIndex, in long long aValue); */
     252                 : NS_IMETHODIMP _MYCLASS_::BindInt64ByIndex(PRUint32 aIndex, PRInt64 aValue)
     253                 : {
     254                 :     return NS_ERROR_NOT_IMPLEMENTED;
     255                 : }
     256                 : 
     257                 : /* [noscript] void bindNullByIndex (in unsigned long aIndex); */
     258                 : NS_IMETHODIMP _MYCLASS_::BindNullByIndex(PRUint32 aIndex)
     259                 : {
     260                 :     return NS_ERROR_NOT_IMPLEMENTED;
     261                 : }
     262                 : 
     263                 : /* void bindBlobByIndex (in unsigned long aIndex, [array, size_is (aValueSize), const] in octet aValue, in unsigned long aValueSize); */
     264                 : NS_IMETHODIMP _MYCLASS_::BindBlobByIndex(PRUint32 aIndex, const PRUint8 *aValue, PRUint32 aValueSize)
     265                 : {
     266                 :     return NS_ERROR_NOT_IMPLEMENTED;
     267                 : }
     268                 : 
     269                 : /* End of implementation class template. */
     270                 : #endif
     271                 : 
     272                 : 
     273                 : #endif /* __gen_mozIStorageBindingParams_h__ */

Generated by: LCOV version 1.7