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

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

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-aurora-lnx-codecoverage/build/storage/public/mozIStorageStatementCallback.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_mozIStorageStatementCallback_h__
           6                 : #define __gen_mozIStorageStatementCallback_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 mozIStorageResultSet; /* forward declaration */
          18                 :
          19                 : class mozIStorageError; /* forward declaration */
          20                 :
          21                 :
          22                 : /* starting interface:    mozIStorageStatementCallback */
          23                 : #define MOZISTORAGESTATEMENTCALLBACK_IID_STR "29383d00-d8c4-4ddd-9f8b-c2feb0f2fcfa"
          24                 :
          25                 : #define MOZISTORAGESTATEMENTCALLBACK_IID \
          26                 :   {0x29383d00, 0xd8c4, 0x4ddd, \
          27                 :     { 0x9f, 0x8b, 0xc2, 0xfe, 0xb0, 0xf2, 0xfc, 0xfa }}
          28                 :
          29            8118 : class NS_NO_VTABLE NS_SCRIPTABLE mozIStorageStatementCallback : public nsISupports {
          30                 :  public:
          31                 :
          32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(MOZISTORAGESTATEMENTCALLBACK_IID)
          33                 :
          34                 :   /* void handleResult (in mozIStorageResultSet aResultSet); */
          35                 :   NS_SCRIPTABLE NS_IMETHOD HandleResult(mozIStorageResultSet *aResultSet) = 0;
          36                 :
          37                 :   /* void handleError (in mozIStorageError aError); */
          38                 :   NS_SCRIPTABLE NS_IMETHOD HandleError(mozIStorageError *aError) = 0;
          39                 :
          40                 :   enum {
          41                 :     REASON_FINISHED = 0U,
          42                 :     REASON_CANCELED = 1U,
          43                 :     REASON_ERROR = 2U
          44                 :   };
          45                 :
          46                 :   /* void handleCompletion (in unsigned short aReason); */
          47                 :   NS_SCRIPTABLE NS_IMETHOD HandleCompletion(PRUint16 aReason) = 0;
          48                 :
          49                 : };
          50                 :
          51                 :   NS_DEFINE_STATIC_IID_ACCESSOR(mozIStorageStatementCallback, MOZISTORAGESTATEMENTCALLBACK_IID)
          52                 :
          53                 : /* Use this macro when declaring classes that implement this interface. */
          54                 : #define NS_DECL_MOZISTORAGESTATEMENTCALLBACK \
          55                 :   NS_SCRIPTABLE NS_IMETHOD HandleResult(mozIStorageResultSet *aResultSet); \
          56                 :   NS_SCRIPTABLE NS_IMETHOD HandleError(mozIStorageError *aError); \
          57                 :   NS_SCRIPTABLE NS_IMETHOD HandleCompletion(PRUint16 aReason);
          58                 :
          59                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          60                 : #define NS_FORWARD_MOZISTORAGESTATEMENTCALLBACK(_to) \
          61                 :   NS_SCRIPTABLE NS_IMETHOD HandleResult(mozIStorageResultSet *aResultSet) { return _to HandleResult(aResultSet); } \
          62                 :   NS_SCRIPTABLE NS_IMETHOD HandleError(mozIStorageError *aError) { return _to HandleError(aError); } \
          63                 :   NS_SCRIPTABLE NS_IMETHOD HandleCompletion(PRUint16 aReason) { return _to HandleCompletion(aReason); }
          64                 :
          65                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
          66                 : #define NS_FORWARD_SAFE_MOZISTORAGESTATEMENTCALLBACK(_to) \
          67                 :   NS_SCRIPTABLE NS_IMETHOD HandleResult(mozIStorageResultSet *aResultSet) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleResult(aResultSet); } \
          68                 :   NS_SCRIPTABLE NS_IMETHOD HandleError(mozIStorageError *aError) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleError(aError); } \
          69                 :   NS_SCRIPTABLE NS_IMETHOD HandleCompletion(PRUint16 aReason) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleCompletion(aReason); }
          70                 :
          71                 : #if 0
          72                 : /* Use the code below as a template for the implementation class for this interface. */
          73                 :
          74                 : /* Header file */
          75                 : class _MYCLASS_ : public mozIStorageStatementCallback
          76                 : {
          77                 : public:
          78                 :   NS_DECL_ISUPPORTS
          79                 :   NS_DECL_MOZISTORAGESTATEMENTCALLBACK
          80                 :
          81                 :   _MYCLASS_();
          82                 :
          83                 : private:
          84                 :   ~_MYCLASS_();
          85                 :
          86                 : protected:
          87                 :   /* additional members */
          88                 : };
          89                 :
          90                 : /* Implementation file */
          91                 : NS_IMPL_ISUPPORTS1(_MYCLASS_, mozIStorageStatementCallback)
          92                 :
          93                 : _MYCLASS_::_MYCLASS_()
          94                 : {
          95                 :   /* member initializers and constructor code */
          96                 : }
          97                 :
          98                 : _MYCLASS_::~_MYCLASS_()
          99                 : {
         100                 :   /* destructor code */
         101                 : }
         102                 :
         103                 : /* void handleResult (in mozIStorageResultSet aResultSet); */
         104                 : NS_IMETHODIMP _MYCLASS_::HandleResult(mozIStorageResultSet *aResultSet)
         105                 : {
         106                 :     return NS_ERROR_NOT_IMPLEMENTED;
         107                 : }
         108                 :
         109                 : /* void handleError (in mozIStorageError aError); */
         110                 : NS_IMETHODIMP _MYCLASS_::HandleError(mozIStorageError *aError)
         111                 : {
         112                 :     return NS_ERROR_NOT_IMPLEMENTED;
         113                 : }
         114                 :
         115                 : /* void handleCompletion (in unsigned short aReason); */
         116                 : NS_IMETHODIMP _MYCLASS_::HandleCompletion(PRUint16 aReason)
         117                 : {
         118                 :     return NS_ERROR_NOT_IMPLEMENTED;
         119                 : }
         120                 :
         121                 : /* End of implementation class template. */
         122                 : #endif
         123                 :
         124                 :
         125                 : #endif /* __gen_mozIStorageStatementCallback_h__ */

Generated by: LCOV version 1.7