LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIIDBRequest.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/dom/indexedDB/nsIIDBRequest.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIIDBRequest_h__
       6                 : #define __gen_nsIIDBRequest_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : #include "jspubtd.h"
      14                 : 
      15                 : /* For IDL files that don't want to include root IDL files. */
      16                 : #ifndef NS_NO_VTABLE
      17                 : #define NS_NO_VTABLE
      18                 : #endif
      19                 : class nsIDOMEventListener; /* forward declaration */
      20                 : 
      21                 : class nsIIDBTransaction; /* forward declaration */
      22                 : 
      23                 : 
      24                 : /* starting interface:    nsIIDBRequest */
      25                 : #define NS_IIDBREQUEST_IID_STR "fe30ca60-bb90-4d68-af2f-4735f9228a54"
      26                 : 
      27                 : #define NS_IIDBREQUEST_IID \
      28                 :   {0xfe30ca60, 0xbb90, 0x4d68, \
      29                 :     { 0xaf, 0x2f, 0x47, 0x35, 0xf9, 0x22, 0x8a, 0x54 }}
      30                 : 
      31            2464 : class NS_NO_VTABLE NS_SCRIPTABLE nsIIDBRequest : public nsISupports {
      32                 :  public: 
      33                 : 
      34                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIDBREQUEST_IID)
      35                 : 
      36                 :   /* readonly attribute DOMString readyState; */
      37                 :   NS_SCRIPTABLE NS_IMETHOD GetReadyState(nsAString & aReadyState) = 0;
      38                 : 
      39                 :   /* readonly attribute nsISupports source; */
      40                 :   NS_SCRIPTABLE NS_IMETHOD GetSource(nsISupports * *aSource) = 0;
      41                 : 
      42                 :   /* readonly attribute nsIIDBTransaction transaction; */
      43                 :   NS_SCRIPTABLE NS_IMETHOD GetTransaction(nsIIDBTransaction * *aTransaction) = 0;
      44                 : 
      45                 :   /* readonly attribute jsval result; */
      46                 :   NS_SCRIPTABLE NS_IMETHOD GetResult(JS::Value *aResult) = 0;
      47                 : 
      48                 :   /* readonly attribute unsigned short errorCode; */
      49                 :   NS_SCRIPTABLE NS_IMETHOD GetErrorCode(PRUint16 *aErrorCode) = 0;
      50                 : 
      51                 :   /* attribute nsIDOMEventListener onsuccess; */
      52                 :   NS_SCRIPTABLE NS_IMETHOD GetOnsuccess(nsIDOMEventListener * *aOnsuccess) = 0;
      53                 :   NS_SCRIPTABLE NS_IMETHOD SetOnsuccess(nsIDOMEventListener *aOnsuccess) = 0;
      54                 : 
      55                 :   /* attribute nsIDOMEventListener onerror; */
      56                 :   NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror) = 0;
      57                 :   NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener *aOnerror) = 0;
      58                 : 
      59                 : };
      60                 : 
      61                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIIDBRequest, NS_IIDBREQUEST_IID)
      62                 : 
      63                 : /* Use this macro when declaring classes that implement this interface. */
      64                 : #define NS_DECL_NSIIDBREQUEST \
      65                 :   NS_SCRIPTABLE NS_IMETHOD GetReadyState(nsAString & aReadyState); \
      66                 :   NS_SCRIPTABLE NS_IMETHOD GetSource(nsISupports * *aSource); \
      67                 :   NS_SCRIPTABLE NS_IMETHOD GetTransaction(nsIIDBTransaction * *aTransaction); \
      68                 :   NS_SCRIPTABLE NS_IMETHOD GetResult(JS::Value *aResult); \
      69                 :   NS_SCRIPTABLE NS_IMETHOD GetErrorCode(PRUint16 *aErrorCode); \
      70                 :   NS_SCRIPTABLE NS_IMETHOD GetOnsuccess(nsIDOMEventListener * *aOnsuccess); \
      71                 :   NS_SCRIPTABLE NS_IMETHOD SetOnsuccess(nsIDOMEventListener *aOnsuccess); \
      72                 :   NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror); \
      73                 :   NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener *aOnerror); 
      74                 : 
      75                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      76                 : #define NS_FORWARD_NSIIDBREQUEST(_to) \
      77                 :   NS_SCRIPTABLE NS_IMETHOD GetReadyState(nsAString & aReadyState) { return _to GetReadyState(aReadyState); } \
      78                 :   NS_SCRIPTABLE NS_IMETHOD GetSource(nsISupports * *aSource) { return _to GetSource(aSource); } \
      79                 :   NS_SCRIPTABLE NS_IMETHOD GetTransaction(nsIIDBTransaction * *aTransaction) { return _to GetTransaction(aTransaction); } \
      80                 :   NS_SCRIPTABLE NS_IMETHOD GetResult(JS::Value *aResult) { return _to GetResult(aResult); } \
      81                 :   NS_SCRIPTABLE NS_IMETHOD GetErrorCode(PRUint16 *aErrorCode) { return _to GetErrorCode(aErrorCode); } \
      82                 :   NS_SCRIPTABLE NS_IMETHOD GetOnsuccess(nsIDOMEventListener * *aOnsuccess) { return _to GetOnsuccess(aOnsuccess); } \
      83                 :   NS_SCRIPTABLE NS_IMETHOD SetOnsuccess(nsIDOMEventListener *aOnsuccess) { return _to SetOnsuccess(aOnsuccess); } \
      84                 :   NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror) { return _to GetOnerror(aOnerror); } \
      85                 :   NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener *aOnerror) { return _to SetOnerror(aOnerror); } 
      86                 : 
      87                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      88                 : #define NS_FORWARD_SAFE_NSIIDBREQUEST(_to) \
      89                 :   NS_SCRIPTABLE NS_IMETHOD GetReadyState(nsAString & aReadyState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadyState(aReadyState); } \
      90                 :   NS_SCRIPTABLE NS_IMETHOD GetSource(nsISupports * *aSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSource(aSource); } \
      91                 :   NS_SCRIPTABLE NS_IMETHOD GetTransaction(nsIIDBTransaction * *aTransaction) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTransaction(aTransaction); } \
      92                 :   NS_SCRIPTABLE NS_IMETHOD GetResult(JS::Value *aResult) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResult(aResult); } \
      93                 :   NS_SCRIPTABLE NS_IMETHOD GetErrorCode(PRUint16 *aErrorCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorCode(aErrorCode); } \
      94                 :   NS_SCRIPTABLE NS_IMETHOD GetOnsuccess(nsIDOMEventListener * *aOnsuccess) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnsuccess(aOnsuccess); } \
      95                 :   NS_SCRIPTABLE NS_IMETHOD SetOnsuccess(nsIDOMEventListener *aOnsuccess) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnsuccess(aOnsuccess); } \
      96                 :   NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnerror(aOnerror); } \
      97                 :   NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener *aOnerror) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnerror(aOnerror); } 
      98                 : 
      99                 : #if 0
     100                 : /* Use the code below as a template for the implementation class for this interface. */
     101                 : 
     102                 : /* Header file */
     103                 : class nsIDBRequest : public nsIIDBRequest
     104                 : {
     105                 : public:
     106                 :   NS_DECL_ISUPPORTS
     107                 :   NS_DECL_NSIIDBREQUEST
     108                 : 
     109                 :   nsIDBRequest();
     110                 : 
     111                 : private:
     112                 :   ~nsIDBRequest();
     113                 : 
     114                 : protected:
     115                 :   /* additional members */
     116                 : };
     117                 : 
     118                 : /* Implementation file */
     119                 : NS_IMPL_ISUPPORTS1(nsIDBRequest, nsIIDBRequest)
     120                 : 
     121                 : nsIDBRequest::nsIDBRequest()
     122                 : {
     123                 :   /* member initializers and constructor code */
     124                 : }
     125                 : 
     126                 : nsIDBRequest::~nsIDBRequest()
     127                 : {
     128                 :   /* destructor code */
     129                 : }
     130                 : 
     131                 : /* readonly attribute DOMString readyState; */
     132                 : NS_IMETHODIMP nsIDBRequest::GetReadyState(nsAString & aReadyState)
     133                 : {
     134                 :     return NS_ERROR_NOT_IMPLEMENTED;
     135                 : }
     136                 : 
     137                 : /* readonly attribute nsISupports source; */
     138                 : NS_IMETHODIMP nsIDBRequest::GetSource(nsISupports * *aSource)
     139                 : {
     140                 :     return NS_ERROR_NOT_IMPLEMENTED;
     141                 : }
     142                 : 
     143                 : /* readonly attribute nsIIDBTransaction transaction; */
     144                 : NS_IMETHODIMP nsIDBRequest::GetTransaction(nsIIDBTransaction * *aTransaction)
     145                 : {
     146                 :     return NS_ERROR_NOT_IMPLEMENTED;
     147                 : }
     148                 : 
     149                 : /* readonly attribute jsval result; */
     150                 : NS_IMETHODIMP nsIDBRequest::GetResult(JS::Value *aResult)
     151                 : {
     152                 :     return NS_ERROR_NOT_IMPLEMENTED;
     153                 : }
     154                 : 
     155                 : /* readonly attribute unsigned short errorCode; */
     156                 : NS_IMETHODIMP nsIDBRequest::GetErrorCode(PRUint16 *aErrorCode)
     157                 : {
     158                 :     return NS_ERROR_NOT_IMPLEMENTED;
     159                 : }
     160                 : 
     161                 : /* attribute nsIDOMEventListener onsuccess; */
     162                 : NS_IMETHODIMP nsIDBRequest::GetOnsuccess(nsIDOMEventListener * *aOnsuccess)
     163                 : {
     164                 :     return NS_ERROR_NOT_IMPLEMENTED;
     165                 : }
     166                 : NS_IMETHODIMP nsIDBRequest::SetOnsuccess(nsIDOMEventListener *aOnsuccess)
     167                 : {
     168                 :     return NS_ERROR_NOT_IMPLEMENTED;
     169                 : }
     170                 : 
     171                 : /* attribute nsIDOMEventListener onerror; */
     172                 : NS_IMETHODIMP nsIDBRequest::GetOnerror(nsIDOMEventListener * *aOnerror)
     173                 : {
     174                 :     return NS_ERROR_NOT_IMPLEMENTED;
     175                 : }
     176                 : NS_IMETHODIMP nsIDBRequest::SetOnerror(nsIDOMEventListener *aOnerror)
     177                 : {
     178                 :     return NS_ERROR_NOT_IMPLEMENTED;
     179                 : }
     180                 : 
     181                 : /* End of implementation class template. */
     182                 : #endif
     183                 : 
     184                 : 
     185                 : #endif /* __gen_nsIIDBRequest_h__ */

Generated by: LCOV version 1.7