LCOV - app.info - objdir/dist/include/mozIStorageBaseStatement.h

LCOV - code coverage report
| Current view: | directory - objdir/dist/include - mozIStorageBaseStatement.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/mozIStorageBaseStatement.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_mozIStorageBaseStatement_h__
           6                 : #define __gen_mozIStorageBaseStatement_h__
           7                 :
           8                 :
           9                 : #ifndef __gen_nsISupports_h__
          10                 : #include "nsISupports.h"
          11                 : #endif
          12                 :
          13                 : #ifndef __gen_mozIStorageBindingParams_h__
          14                 : #include "mozIStorageBindingParams.h"
          15                 : #endif
          16                 :
          17                 : /* For IDL files that don't want to include root IDL files. */
          18                 : #ifndef NS_NO_VTABLE
          19                 : #define NS_NO_VTABLE
          20                 : #endif
          21                 : class mozIStorageConnection; /* forward declaration */
          22                 :
          23                 : class mozIStorageStatementCallback; /* forward declaration */
          24                 :
          25                 : class mozIStoragePendingStatement; /* forward declaration */
          26                 :
          27                 : class mozIStorageBindingParams; /* forward declaration */
          28                 :
          29                 : class mozIStorageBindingParamsArray; /* forward declaration */
          30                 :
          31                 :
          32                 : /* starting interface:    mozIStorageBaseStatement */
          33                 : #define MOZISTORAGEBASESTATEMENT_IID_STR "da2ec336-fbbb-4ba1-9778-8c9825980d01"
          34                 :
          35                 : #define MOZISTORAGEBASESTATEMENT_IID \
          36                 :   {0xda2ec336, 0xfbbb, 0x4ba1, \
          37                 :     { 0x97, 0x78, 0x8c, 0x98, 0x25, 0x98, 0x0d, 0x01 }}
          38                 :
          39           42729 : class NS_NO_VTABLE NS_SCRIPTABLE mozIStorageBaseStatement : public mozIStorageBindingParams {
          40                 :  public:
          41                 :
          42                 :   NS_DECLARE_STATIC_IID_ACCESSOR(MOZISTORAGEBASESTATEMENT_IID)
          43                 :
          44                 :   /* void finalize (); */
          45                 :   NS_SCRIPTABLE NS_IMETHOD Finalize(void) = 0;
          46                 :
          47                 :   /* [deprecated] void bindUTF8StringParameter (in unsigned long aParamIndex, in AUTF8String aValue); */
          48                 :   NS_SCRIPTABLE NS_IMETHOD BindUTF8StringParameter(PRUint32 aParamIndex, const nsACString & aValue) = 0;
          49                 :
          50                 :   /* [deprecated] void bindStringParameter (in unsigned long aParamIndex, in AString aValue); */
          51                 :   NS_SCRIPTABLE NS_IMETHOD BindStringParameter(PRUint32 aParamIndex, const nsAString & aValue) = 0;
          52                 :
          53                 :   /* [deprecated] void bindDoubleParameter (in unsigned long aParamIndex, in double aValue); */
          54                 :   NS_SCRIPTABLE NS_IMETHOD BindDoubleParameter(PRUint32 aParamIndex, double aValue) = 0;
          55                 :
          56                 :   /* [deprecated] void bindInt32Parameter (in unsigned long aParamIndex, in long aValue); */
          57                 :   NS_SCRIPTABLE NS_IMETHOD BindInt32Parameter(PRUint32 aParamIndex, PRInt32 aValue) = 0;
          58                 :
          59                 :   /* [deprecated] void bindInt64Parameter (in unsigned long aParamIndex, in long long aValue); */
          60                 :   NS_SCRIPTABLE NS_IMETHOD BindInt64Parameter(PRUint32 aParamIndex, PRInt64 aValue) = 0;
          61                 :
          62                 :   /* [deprecated] void bindNullParameter (in unsigned long aParamIndex); */
          63                 :   NS_SCRIPTABLE NS_IMETHOD BindNullParameter(PRUint32 aParamIndex) = 0;
          64                 :
          65                 :   /* [deprecated] void bindBlobParameter (in unsigned long aParamIndex, [array, size_is (aValueSize), const] in octet aValue, in unsigned long aValueSize); */
          66                 :   NS_SCRIPTABLE NS_IMETHOD BindBlobParameter(PRUint32 aParamIndex, const PRUint8 *aValue, PRUint32 aValueSize) = 0;
          67                 :
          68                 :   /* void bindParameters (in mozIStorageBindingParamsArray aParameters); */
          69                 :   NS_SCRIPTABLE NS_IMETHOD BindParameters(mozIStorageBindingParamsArray *aParameters) = 0;
          70                 :
          71                 :   /* mozIStorageBindingParamsArray newBindingParamsArray (); */
          72                 :   NS_SCRIPTABLE NS_IMETHOD NewBindingParamsArray(mozIStorageBindingParamsArray * *_retval NS_OUTPARAM) = 0;
          73                 :
          74                 :   /* mozIStoragePendingStatement executeAsync ([optional] in mozIStorageStatementCallback aCallback); */
          75                 :   NS_SCRIPTABLE NS_IMETHOD ExecuteAsync(mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval NS_OUTPARAM) = 0;
          76                 :
          77                 :   enum {
          78                 :     MOZ_STORAGE_STATEMENT_INVALID = 0,
          79                 :     MOZ_STORAGE_STATEMENT_READY = 1,
          80                 :     MOZ_STORAGE_STATEMENT_EXECUTING = 2
          81                 :   };
          82                 :
          83                 :   /* readonly attribute long state; */
          84                 :   NS_SCRIPTABLE NS_IMETHOD GetState(PRInt32 *aState) = 0;
          85                 :
          86                 :   /* AString escapeStringForLIKE (in AString aValue, in wchar aEscapeChar); */
          87                 :   NS_SCRIPTABLE NS_IMETHOD EscapeStringForLIKE(const nsAString & aValue, PRUnichar aEscapeChar, nsAString & _retval NS_OUTPARAM) = 0;
          88                 :
          89                 : };
          90                 :
          91                 :   NS_DEFINE_STATIC_IID_ACCESSOR(mozIStorageBaseStatement, MOZISTORAGEBASESTATEMENT_IID)
          92                 :
          93                 : /* Use this macro when declaring classes that implement this interface. */
          94                 : #define NS_DECL_MOZISTORAGEBASESTATEMENT \
          95                 :   NS_SCRIPTABLE NS_IMETHOD Finalize(void); \
          96                 :   NS_SCRIPTABLE NS_IMETHOD BindUTF8StringParameter(PRUint32 aParamIndex, const nsACString & aValue); \
          97                 :   NS_SCRIPTABLE NS_IMETHOD BindStringParameter(PRUint32 aParamIndex, const nsAString & aValue); \
          98                 :   NS_SCRIPTABLE NS_IMETHOD BindDoubleParameter(PRUint32 aParamIndex, double aValue); \
          99                 :   NS_SCRIPTABLE NS_IMETHOD BindInt32Parameter(PRUint32 aParamIndex, PRInt32 aValue); \
         100                 :   NS_SCRIPTABLE NS_IMETHOD BindInt64Parameter(PRUint32 aParamIndex, PRInt64 aValue); \
         101                 :   NS_SCRIPTABLE NS_IMETHOD BindNullParameter(PRUint32 aParamIndex); \
         102                 :   NS_SCRIPTABLE NS_IMETHOD BindBlobParameter(PRUint32 aParamIndex, const PRUint8 *aValue, PRUint32 aValueSize); \
         103                 :   NS_SCRIPTABLE NS_IMETHOD BindParameters(mozIStorageBindingParamsArray *aParameters); \
         104                 :   NS_SCRIPTABLE NS_IMETHOD NewBindingParamsArray(mozIStorageBindingParamsArray * *_retval NS_OUTPARAM); \
         105                 :   NS_SCRIPTABLE NS_IMETHOD ExecuteAsync(mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval NS_OUTPARAM); \
         106                 :   NS_SCRIPTABLE NS_IMETHOD GetState(PRInt32 *aState); \
         107                 :   NS_SCRIPTABLE NS_IMETHOD EscapeStringForLIKE(const nsAString & aValue, PRUnichar aEscapeChar, nsAString & _retval NS_OUTPARAM);
         108                 :
         109                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
         110                 : #define NS_FORWARD_MOZISTORAGEBASESTATEMENT(_to) \
         111                 :   NS_SCRIPTABLE NS_IMETHOD Finalize(void) { return _to Finalize(); } \
         112                 :   NS_SCRIPTABLE NS_IMETHOD BindUTF8StringParameter(PRUint32 aParamIndex, const nsACString & aValue) { return _to BindUTF8StringParameter(aParamIndex, aValue); } \
         113                 :   NS_SCRIPTABLE NS_IMETHOD BindStringParameter(PRUint32 aParamIndex, const nsAString & aValue) { return _to BindStringParameter(aParamIndex, aValue); } \
         114                 :   NS_SCRIPTABLE NS_IMETHOD BindDoubleParameter(PRUint32 aParamIndex, double aValue) { return _to BindDoubleParameter(aParamIndex, aValue); } \
         115                 :   NS_SCRIPTABLE NS_IMETHOD BindInt32Parameter(PRUint32 aParamIndex, PRInt32 aValue) { return _to BindInt32Parameter(aParamIndex, aValue); } \
         116                 :   NS_SCRIPTABLE NS_IMETHOD BindInt64Parameter(PRUint32 aParamIndex, PRInt64 aValue) { return _to BindInt64Parameter(aParamIndex, aValue); } \
         117                 :   NS_SCRIPTABLE NS_IMETHOD BindNullParameter(PRUint32 aParamIndex) { return _to BindNullParameter(aParamIndex); } \
         118                 :   NS_SCRIPTABLE NS_IMETHOD BindBlobParameter(PRUint32 aParamIndex, const PRUint8 *aValue, PRUint32 aValueSize) { return _to BindBlobParameter(aParamIndex, aValue, aValueSize); } \
         119                 :   NS_SCRIPTABLE NS_IMETHOD BindParameters(mozIStorageBindingParamsArray *aParameters) { return _to BindParameters(aParameters); } \
         120                 :   NS_SCRIPTABLE NS_IMETHOD NewBindingParamsArray(mozIStorageBindingParamsArray * *_retval NS_OUTPARAM) { return _to NewBindingParamsArray(_retval); } \
         121                 :   NS_SCRIPTABLE NS_IMETHOD ExecuteAsync(mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval NS_OUTPARAM) { return _to ExecuteAsync(aCallback, _retval); } \
         122                 :   NS_SCRIPTABLE NS_IMETHOD GetState(PRInt32 *aState) { return _to GetState(aState); } \
         123                 :   NS_SCRIPTABLE NS_IMETHOD EscapeStringForLIKE(const nsAString & aValue, PRUnichar aEscapeChar, nsAString & _retval NS_OUTPARAM) { return _to EscapeStringForLIKE(aValue, aEscapeChar, _retval); }
         124                 :
         125                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
         126                 : #define NS_FORWARD_SAFE_MOZISTORAGEBASESTATEMENT(_to) \
         127                 :   NS_SCRIPTABLE NS_IMETHOD Finalize(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Finalize(); } \
         128                 :   NS_SCRIPTABLE NS_IMETHOD BindUTF8StringParameter(PRUint32 aParamIndex, const nsACString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindUTF8StringParameter(aParamIndex, aValue); } \
         129                 :   NS_SCRIPTABLE NS_IMETHOD BindStringParameter(PRUint32 aParamIndex, const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindStringParameter(aParamIndex, aValue); } \
         130                 :   NS_SCRIPTABLE NS_IMETHOD BindDoubleParameter(PRUint32 aParamIndex, double aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindDoubleParameter(aParamIndex, aValue); } \
         131                 :   NS_SCRIPTABLE NS_IMETHOD BindInt32Parameter(PRUint32 aParamIndex, PRInt32 aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindInt32Parameter(aParamIndex, aValue); } \
         132                 :   NS_SCRIPTABLE NS_IMETHOD BindInt64Parameter(PRUint32 aParamIndex, PRInt64 aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindInt64Parameter(aParamIndex, aValue); } \
         133                 :   NS_SCRIPTABLE NS_IMETHOD BindNullParameter(PRUint32 aParamIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindNullParameter(aParamIndex); } \
         134                 :   NS_SCRIPTABLE NS_IMETHOD BindBlobParameter(PRUint32 aParamIndex, const PRUint8 *aValue, PRUint32 aValueSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindBlobParameter(aParamIndex, aValue, aValueSize); } \
         135                 :   NS_SCRIPTABLE NS_IMETHOD BindParameters(mozIStorageBindingParamsArray *aParameters) { return !_to ? NS_ERROR_NULL_POINTER : _to->BindParameters(aParameters); } \
         136                 :   NS_SCRIPTABLE NS_IMETHOD NewBindingParamsArray(mozIStorageBindingParamsArray * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->NewBindingParamsArray(_retval); } \
         137                 :   NS_SCRIPTABLE NS_IMETHOD ExecuteAsync(mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ExecuteAsync(aCallback, _retval); } \
         138                 :   NS_SCRIPTABLE NS_IMETHOD GetState(PRInt32 *aState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetState(aState); } \
         139                 :   NS_SCRIPTABLE NS_IMETHOD EscapeStringForLIKE(const nsAString & aValue, PRUnichar aEscapeChar, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->EscapeStringForLIKE(aValue, aEscapeChar, _retval); }
         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 mozIStorageBaseStatement
         146                 : {
         147                 : public:
         148                 :   NS_DECL_ISUPPORTS
         149                 :   NS_DECL_MOZISTORAGEBASESTATEMENT
         150                 :
         151                 :   _MYCLASS_();
         152                 :
         153                 : private:
         154                 :   ~_MYCLASS_();
         155                 :
         156                 : protected:
         157                 :   /* additional members */
         158                 : };
         159                 :
         160                 : /* Implementation file */
         161                 : NS_IMPL_ISUPPORTS1(_MYCLASS_, mozIStorageBaseStatement)
         162                 :
         163                 : _MYCLASS_::_MYCLASS_()
         164                 : {
         165                 :   /* member initializers and constructor code */
         166                 : }
         167                 :
         168                 : _MYCLASS_::~_MYCLASS_()
         169                 : {
         170                 :   /* destructor code */
         171                 : }
         172                 :
         173                 : /* void finalize (); */
         174                 : NS_IMETHODIMP _MYCLASS_::Finalize()
         175                 : {
         176                 :     return NS_ERROR_NOT_IMPLEMENTED;
         177                 : }
         178                 :
         179                 : /* [deprecated] void bindUTF8StringParameter (in unsigned long aParamIndex, in AUTF8String aValue); */
         180                 : NS_IMETHODIMP _MYCLASS_::BindUTF8StringParameter(PRUint32 aParamIndex, const nsACString & aValue)
         181                 : {
         182                 :     return NS_ERROR_NOT_IMPLEMENTED;
         183                 : }
         184                 :
         185                 : /* [deprecated] void bindStringParameter (in unsigned long aParamIndex, in AString aValue); */
         186                 : NS_IMETHODIMP _MYCLASS_::BindStringParameter(PRUint32 aParamIndex, const nsAString & aValue)
         187                 : {
         188                 :     return NS_ERROR_NOT_IMPLEMENTED;
         189                 : }
         190                 :
         191                 : /* [deprecated] void bindDoubleParameter (in unsigned long aParamIndex, in double aValue); */
         192                 : NS_IMETHODIMP _MYCLASS_::BindDoubleParameter(PRUint32 aParamIndex, double aValue)
         193                 : {
         194                 :     return NS_ERROR_NOT_IMPLEMENTED;
         195                 : }
         196                 :
         197                 : /* [deprecated] void bindInt32Parameter (in unsigned long aParamIndex, in long aValue); */
         198                 : NS_IMETHODIMP _MYCLASS_::BindInt32Parameter(PRUint32 aParamIndex, PRInt32 aValue)
         199                 : {
         200                 :     return NS_ERROR_NOT_IMPLEMENTED;
         201                 : }
         202                 :
         203                 : /* [deprecated] void bindInt64Parameter (in unsigned long aParamIndex, in long long aValue); */
         204                 : NS_IMETHODIMP _MYCLASS_::BindInt64Parameter(PRUint32 aParamIndex, PRInt64 aValue)
         205                 : {
         206                 :     return NS_ERROR_NOT_IMPLEMENTED;
         207                 : }
         208                 :
         209                 : /* [deprecated] void bindNullParameter (in unsigned long aParamIndex); */
         210                 : NS_IMETHODIMP _MYCLASS_::BindNullParameter(PRUint32 aParamIndex)
         211                 : {
         212                 :     return NS_ERROR_NOT_IMPLEMENTED;
         213                 : }
         214                 :
         215                 : /* [deprecated] void bindBlobParameter (in unsigned long aParamIndex, [array, size_is (aValueSize), const] in octet aValue, in unsigned long aValueSize); */
         216                 : NS_IMETHODIMP _MYCLASS_::BindBlobParameter(PRUint32 aParamIndex, const PRUint8 *aValue, PRUint32 aValueSize)
         217                 : {
         218                 :     return NS_ERROR_NOT_IMPLEMENTED;
         219                 : }
         220                 :
         221                 : /* void bindParameters (in mozIStorageBindingParamsArray aParameters); */
         222                 : NS_IMETHODIMP _MYCLASS_::BindParameters(mozIStorageBindingParamsArray *aParameters)
         223                 : {
         224                 :     return NS_ERROR_NOT_IMPLEMENTED;
         225                 : }
         226                 :
         227                 : /* mozIStorageBindingParamsArray newBindingParamsArray (); */
         228                 : NS_IMETHODIMP _MYCLASS_::NewBindingParamsArray(mozIStorageBindingParamsArray * *_retval NS_OUTPARAM)
         229                 : {
         230                 :     return NS_ERROR_NOT_IMPLEMENTED;
         231                 : }
         232                 :
         233                 : /* mozIStoragePendingStatement executeAsync ([optional] in mozIStorageStatementCallback aCallback); */
         234                 : NS_IMETHODIMP _MYCLASS_::ExecuteAsync(mozIStorageStatementCallback *aCallback, mozIStoragePendingStatement * *_retval NS_OUTPARAM)
         235                 : {
         236                 :     return NS_ERROR_NOT_IMPLEMENTED;
         237                 : }
         238                 :
         239                 : /* readonly attribute long state; */
         240                 : NS_IMETHODIMP _MYCLASS_::GetState(PRInt32 *aState)
         241                 : {
         242                 :     return NS_ERROR_NOT_IMPLEMENTED;
         243                 : }
         244                 :
         245                 : /* AString escapeStringForLIKE (in AString aValue, in wchar aEscapeChar); */
         246                 : NS_IMETHODIMP _MYCLASS_::EscapeStringForLIKE(const nsAString & aValue, PRUnichar aEscapeChar, nsAString & _retval NS_OUTPARAM)
         247                 : {
         248                 :     return NS_ERROR_NOT_IMPLEMENTED;
         249                 : }
         250                 :
         251                 : /* End of implementation class template. */
         252                 : #endif
         253                 :
         254                 :
         255                 : #endif /* __gen_mozIStorageBaseStatement_h__ */

Generated by: LCOV version 1.7