LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIIDBDatabase.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/nsIIDBDatabase.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIIDBDatabase_h__
       6                 : #define __gen_nsIIDBDatabase_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 nsIIDBObjectStore; /* forward declaration */
      20                 : 
      21                 : class nsIIDBRequest; /* forward declaration */
      22                 : 
      23                 : class nsIIDBTransaction; /* forward declaration */
      24                 : 
      25                 : class nsIDOMDOMStringList; /* forward declaration */
      26                 : 
      27                 : class nsIDOMEventListener; /* forward declaration */
      28                 : 
      29                 : 
      30                 : /* starting interface:    nsIIDBDatabase */
      31                 : #define NS_IIDBDATABASE_IID_STR "bedee48a-f47f-44f2-ba1e-d8fe595bbfee"
      32                 : 
      33                 : #define NS_IIDBDATABASE_IID \
      34                 :   {0xbedee48a, 0xf47f, 0x44f2, \
      35                 :     { 0xba, 0x1e, 0xd8, 0xfe, 0x59, 0x5b, 0xbf, 0xee }}
      36                 : 
      37              75 : class NS_NO_VTABLE NS_SCRIPTABLE nsIIDBDatabase : public nsISupports {
      38                 :  public: 
      39                 : 
      40                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIDBDATABASE_IID)
      41                 : 
      42                 :   /* readonly attribute DOMString name; */
      43                 :   NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) = 0;
      44                 : 
      45                 :   /* readonly attribute unsigned long long version; */
      46                 :   NS_SCRIPTABLE NS_IMETHOD GetVersion(PRUint64 *aVersion) = 0;
      47                 : 
      48                 :   /* readonly attribute nsIDOMDOMStringList objectStoreNames; */
      49                 :   NS_SCRIPTABLE NS_IMETHOD GetObjectStoreNames(nsIDOMDOMStringList * *aObjectStoreNames) = 0;
      50                 : 
      51                 :   /* [implicit_jscontext] nsIIDBObjectStore createObjectStore ([Null (Stringify)] in DOMString name, [optional] in jsval options); */
      52                 :   NS_SCRIPTABLE NS_IMETHOD CreateObjectStore(const nsAString & name, const JS::Value & options, JSContext* cx, nsIIDBObjectStore * *_retval NS_OUTPARAM) = 0;
      53                 : 
      54                 :   /* void deleteObjectStore ([Null (Stringify)] in DOMString name); */
      55                 :   NS_SCRIPTABLE NS_IMETHOD DeleteObjectStore(const nsAString & name) = 0;
      56                 : 
      57                 :   /* [implicit_jscontext,optional_argc] nsIIDBTransaction transaction (in jsval storeNames, [optional] in DOMString mode); */
      58                 :   NS_SCRIPTABLE NS_IMETHOD Transaction(const JS::Value & storeNames, const nsAString & mode, JSContext* cx, PRUint8 _argc, nsIIDBTransaction * *_retval NS_OUTPARAM) = 0;
      59                 : 
      60                 :   /* void close (); */
      61                 :   NS_SCRIPTABLE NS_IMETHOD Close(void) = 0;
      62                 : 
      63                 :   /* attribute nsIDOMEventListener onabort; */
      64                 :   NS_SCRIPTABLE NS_IMETHOD GetOnabort(nsIDOMEventListener * *aOnabort) = 0;
      65                 :   NS_SCRIPTABLE NS_IMETHOD SetOnabort(nsIDOMEventListener *aOnabort) = 0;
      66                 : 
      67                 :   /* attribute nsIDOMEventListener onerror; */
      68                 :   NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror) = 0;
      69                 :   NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener *aOnerror) = 0;
      70                 : 
      71                 :   /* attribute nsIDOMEventListener onversionchange; */
      72                 :   NS_SCRIPTABLE NS_IMETHOD GetOnversionchange(nsIDOMEventListener * *aOnversionchange) = 0;
      73                 :   NS_SCRIPTABLE NS_IMETHOD SetOnversionchange(nsIDOMEventListener *aOnversionchange) = 0;
      74                 : 
      75                 : };
      76                 : 
      77                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIIDBDatabase, NS_IIDBDATABASE_IID)
      78                 : 
      79                 : /* Use this macro when declaring classes that implement this interface. */
      80                 : #define NS_DECL_NSIIDBDATABASE \
      81                 :   NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
      82                 :   NS_SCRIPTABLE NS_IMETHOD GetVersion(PRUint64 *aVersion); \
      83                 :   NS_SCRIPTABLE NS_IMETHOD GetObjectStoreNames(nsIDOMDOMStringList * *aObjectStoreNames); \
      84                 :   NS_SCRIPTABLE NS_IMETHOD CreateObjectStore(const nsAString & name, const JS::Value & options, JSContext* cx, nsIIDBObjectStore * *_retval NS_OUTPARAM); \
      85                 :   NS_SCRIPTABLE NS_IMETHOD DeleteObjectStore(const nsAString & name); \
      86                 :   NS_SCRIPTABLE NS_IMETHOD Transaction(const JS::Value & storeNames, const nsAString & mode, JSContext* cx, PRUint8 _argc, nsIIDBTransaction * *_retval NS_OUTPARAM); \
      87                 :   NS_SCRIPTABLE NS_IMETHOD Close(void); \
      88                 :   NS_SCRIPTABLE NS_IMETHOD GetOnabort(nsIDOMEventListener * *aOnabort); \
      89                 :   NS_SCRIPTABLE NS_IMETHOD SetOnabort(nsIDOMEventListener *aOnabort); \
      90                 :   NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror); \
      91                 :   NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener *aOnerror); \
      92                 :   NS_SCRIPTABLE NS_IMETHOD GetOnversionchange(nsIDOMEventListener * *aOnversionchange); \
      93                 :   NS_SCRIPTABLE NS_IMETHOD SetOnversionchange(nsIDOMEventListener *aOnversionchange); 
      94                 : 
      95                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      96                 : #define NS_FORWARD_NSIIDBDATABASE(_to) \
      97                 :   NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
      98                 :   NS_SCRIPTABLE NS_IMETHOD GetVersion(PRUint64 *aVersion) { return _to GetVersion(aVersion); } \
      99                 :   NS_SCRIPTABLE NS_IMETHOD GetObjectStoreNames(nsIDOMDOMStringList * *aObjectStoreNames) { return _to GetObjectStoreNames(aObjectStoreNames); } \
     100                 :   NS_SCRIPTABLE NS_IMETHOD CreateObjectStore(const nsAString & name, const JS::Value & options, JSContext* cx, nsIIDBObjectStore * *_retval NS_OUTPARAM) { return _to CreateObjectStore(name, options, cx, _retval); } \
     101                 :   NS_SCRIPTABLE NS_IMETHOD DeleteObjectStore(const nsAString & name) { return _to DeleteObjectStore(name); } \
     102                 :   NS_SCRIPTABLE NS_IMETHOD Transaction(const JS::Value & storeNames, const nsAString & mode, JSContext* cx, PRUint8 _argc, nsIIDBTransaction * *_retval NS_OUTPARAM) { return _to Transaction(storeNames, mode, cx, _argc, _retval); } \
     103                 :   NS_SCRIPTABLE NS_IMETHOD Close(void) { return _to Close(); } \
     104                 :   NS_SCRIPTABLE NS_IMETHOD GetOnabort(nsIDOMEventListener * *aOnabort) { return _to GetOnabort(aOnabort); } \
     105                 :   NS_SCRIPTABLE NS_IMETHOD SetOnabort(nsIDOMEventListener *aOnabort) { return _to SetOnabort(aOnabort); } \
     106                 :   NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror) { return _to GetOnerror(aOnerror); } \
     107                 :   NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener *aOnerror) { return _to SetOnerror(aOnerror); } \
     108                 :   NS_SCRIPTABLE NS_IMETHOD GetOnversionchange(nsIDOMEventListener * *aOnversionchange) { return _to GetOnversionchange(aOnversionchange); } \
     109                 :   NS_SCRIPTABLE NS_IMETHOD SetOnversionchange(nsIDOMEventListener *aOnversionchange) { return _to SetOnversionchange(aOnversionchange); } 
     110                 : 
     111                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     112                 : #define NS_FORWARD_SAFE_NSIIDBDATABASE(_to) \
     113                 :   NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
     114                 :   NS_SCRIPTABLE NS_IMETHOD GetVersion(PRUint64 *aVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVersion(aVersion); } \
     115                 :   NS_SCRIPTABLE NS_IMETHOD GetObjectStoreNames(nsIDOMDOMStringList * *aObjectStoreNames) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetObjectStoreNames(aObjectStoreNames); } \
     116                 :   NS_SCRIPTABLE NS_IMETHOD CreateObjectStore(const nsAString & name, const JS::Value & options, JSContext* cx, nsIIDBObjectStore * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateObjectStore(name, options, cx, _retval); } \
     117                 :   NS_SCRIPTABLE NS_IMETHOD DeleteObjectStore(const nsAString & name) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteObjectStore(name); } \
     118                 :   NS_SCRIPTABLE NS_IMETHOD Transaction(const JS::Value & storeNames, const nsAString & mode, JSContext* cx, PRUint8 _argc, nsIIDBTransaction * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Transaction(storeNames, mode, cx, _argc, _retval); } \
     119                 :   NS_SCRIPTABLE NS_IMETHOD Close(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); } \
     120                 :   NS_SCRIPTABLE NS_IMETHOD GetOnabort(nsIDOMEventListener * *aOnabort) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnabort(aOnabort); } \
     121                 :   NS_SCRIPTABLE NS_IMETHOD SetOnabort(nsIDOMEventListener *aOnabort) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnabort(aOnabort); } \
     122                 :   NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnerror(aOnerror); } \
     123                 :   NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener *aOnerror) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnerror(aOnerror); } \
     124                 :   NS_SCRIPTABLE NS_IMETHOD GetOnversionchange(nsIDOMEventListener * *aOnversionchange) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnversionchange(aOnversionchange); } \
     125                 :   NS_SCRIPTABLE NS_IMETHOD SetOnversionchange(nsIDOMEventListener *aOnversionchange) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnversionchange(aOnversionchange); } 
     126                 : 
     127                 : #if 0
     128                 : /* Use the code below as a template for the implementation class for this interface. */
     129                 : 
     130                 : /* Header file */
     131                 : class nsIDBDatabase : public nsIIDBDatabase
     132                 : {
     133                 : public:
     134                 :   NS_DECL_ISUPPORTS
     135                 :   NS_DECL_NSIIDBDATABASE
     136                 : 
     137                 :   nsIDBDatabase();
     138                 : 
     139                 : private:
     140                 :   ~nsIDBDatabase();
     141                 : 
     142                 : protected:
     143                 :   /* additional members */
     144                 : };
     145                 : 
     146                 : /* Implementation file */
     147                 : NS_IMPL_ISUPPORTS1(nsIDBDatabase, nsIIDBDatabase)
     148                 : 
     149                 : nsIDBDatabase::nsIDBDatabase()
     150                 : {
     151                 :   /* member initializers and constructor code */
     152                 : }
     153                 : 
     154                 : nsIDBDatabase::~nsIDBDatabase()
     155                 : {
     156                 :   /* destructor code */
     157                 : }
     158                 : 
     159                 : /* readonly attribute DOMString name; */
     160                 : NS_IMETHODIMP nsIDBDatabase::GetName(nsAString & aName)
     161                 : {
     162                 :     return NS_ERROR_NOT_IMPLEMENTED;
     163                 : }
     164                 : 
     165                 : /* readonly attribute unsigned long long version; */
     166                 : NS_IMETHODIMP nsIDBDatabase::GetVersion(PRUint64 *aVersion)
     167                 : {
     168                 :     return NS_ERROR_NOT_IMPLEMENTED;
     169                 : }
     170                 : 
     171                 : /* readonly attribute nsIDOMDOMStringList objectStoreNames; */
     172                 : NS_IMETHODIMP nsIDBDatabase::GetObjectStoreNames(nsIDOMDOMStringList * *aObjectStoreNames)
     173                 : {
     174                 :     return NS_ERROR_NOT_IMPLEMENTED;
     175                 : }
     176                 : 
     177                 : /* [implicit_jscontext] nsIIDBObjectStore createObjectStore ([Null (Stringify)] in DOMString name, [optional] in jsval options); */
     178                 : NS_IMETHODIMP nsIDBDatabase::CreateObjectStore(const nsAString & name, const JS::Value & options, JSContext* cx, nsIIDBObjectStore * *_retval NS_OUTPARAM)
     179                 : {
     180                 :     return NS_ERROR_NOT_IMPLEMENTED;
     181                 : }
     182                 : 
     183                 : /* void deleteObjectStore ([Null (Stringify)] in DOMString name); */
     184                 : NS_IMETHODIMP nsIDBDatabase::DeleteObjectStore(const nsAString & name)
     185                 : {
     186                 :     return NS_ERROR_NOT_IMPLEMENTED;
     187                 : }
     188                 : 
     189                 : /* [implicit_jscontext,optional_argc] nsIIDBTransaction transaction (in jsval storeNames, [optional] in DOMString mode); */
     190                 : NS_IMETHODIMP nsIDBDatabase::Transaction(const JS::Value & storeNames, const nsAString & mode, JSContext* cx, PRUint8 _argc, nsIIDBTransaction * *_retval NS_OUTPARAM)
     191                 : {
     192                 :     return NS_ERROR_NOT_IMPLEMENTED;
     193                 : }
     194                 : 
     195                 : /* void close (); */
     196                 : NS_IMETHODIMP nsIDBDatabase::Close()
     197                 : {
     198                 :     return NS_ERROR_NOT_IMPLEMENTED;
     199                 : }
     200                 : 
     201                 : /* attribute nsIDOMEventListener onabort; */
     202                 : NS_IMETHODIMP nsIDBDatabase::GetOnabort(nsIDOMEventListener * *aOnabort)
     203                 : {
     204                 :     return NS_ERROR_NOT_IMPLEMENTED;
     205                 : }
     206                 : NS_IMETHODIMP nsIDBDatabase::SetOnabort(nsIDOMEventListener *aOnabort)
     207                 : {
     208                 :     return NS_ERROR_NOT_IMPLEMENTED;
     209                 : }
     210                 : 
     211                 : /* attribute nsIDOMEventListener onerror; */
     212                 : NS_IMETHODIMP nsIDBDatabase::GetOnerror(nsIDOMEventListener * *aOnerror)
     213                 : {
     214                 :     return NS_ERROR_NOT_IMPLEMENTED;
     215                 : }
     216                 : NS_IMETHODIMP nsIDBDatabase::SetOnerror(nsIDOMEventListener *aOnerror)
     217                 : {
     218                 :     return NS_ERROR_NOT_IMPLEMENTED;
     219                 : }
     220                 : 
     221                 : /* attribute nsIDOMEventListener onversionchange; */
     222                 : NS_IMETHODIMP nsIDBDatabase::GetOnversionchange(nsIDOMEventListener * *aOnversionchange)
     223                 : {
     224                 :     return NS_ERROR_NOT_IMPLEMENTED;
     225                 : }
     226                 : NS_IMETHODIMP nsIDBDatabase::SetOnversionchange(nsIDOMEventListener *aOnversionchange)
     227                 : {
     228                 :     return NS_ERROR_NOT_IMPLEMENTED;
     229                 : }
     230                 : 
     231                 : /* End of implementation class template. */
     232                 : #endif
     233                 : 
     234                 : 
     235                 : #endif /* __gen_nsIIDBDatabase_h__ */

Generated by: LCOV version 1.7