LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIIDBFactory.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/nsIIDBFactory.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIIDBFactory_h__
       6                 : #define __gen_nsIIDBFactory_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 nsIIDBKeyRange; /* forward declaration */
      20                 : 
      21                 : class nsIIDBOpenDBRequest; /* forward declaration */
      22                 : 
      23                 : 
      24                 : /* starting interface:    nsIIDBFactory */
      25                 : #define NS_IIDBFACTORY_IID_STR "885abbb7-cf81-4945-b5f1-07fed07ada82"
      26                 : 
      27                 : #define NS_IIDBFACTORY_IID \
      28                 :   {0x885abbb7, 0xcf81, 0x4945, \
      29                 :     { 0xb5, 0xf1, 0x07, 0xfe, 0xd0, 0x7a, 0xda, 0x82 }}
      30                 : 
      31              50 : class NS_NO_VTABLE NS_SCRIPTABLE nsIIDBFactory : public nsISupports {
      32                 :  public: 
      33                 : 
      34                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIDBFACTORY_IID)
      35                 : 
      36                 :   /* [optional_argc] nsIIDBOpenDBRequest open ([Null (Stringify)] in DOMString name, [optional] in long long version); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD Open(const nsAString & name, PRInt64 version, PRUint8 _argc, nsIIDBOpenDBRequest * *_retval NS_OUTPARAM) = 0;
      38                 : 
      39                 :   /* nsIIDBOpenDBRequest deleteDatabase (in AString name); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD DeleteDatabase(const nsAString & name, nsIIDBOpenDBRequest * *_retval NS_OUTPARAM) = 0;
      41                 : 
      42                 :   /* [implicit_jscontext] short cmp (in jsval first, in jsval second); */
      43                 :   NS_SCRIPTABLE NS_IMETHOD Cmp(const JS::Value & first, const JS::Value & second, JSContext* cx, PRInt16 *_retval NS_OUTPARAM) = 0;
      44                 : 
      45                 : };
      46                 : 
      47                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIIDBFactory, NS_IIDBFACTORY_IID)
      48                 : 
      49                 : /* Use this macro when declaring classes that implement this interface. */
      50                 : #define NS_DECL_NSIIDBFACTORY \
      51                 :   NS_SCRIPTABLE NS_IMETHOD Open(const nsAString & name, PRInt64 version, PRUint8 _argc, nsIIDBOpenDBRequest * *_retval NS_OUTPARAM); \
      52                 :   NS_SCRIPTABLE NS_IMETHOD DeleteDatabase(const nsAString & name, nsIIDBOpenDBRequest * *_retval NS_OUTPARAM); \
      53                 :   NS_SCRIPTABLE NS_IMETHOD Cmp(const JS::Value & first, const JS::Value & second, JSContext* cx, PRInt16 *_retval NS_OUTPARAM); 
      54                 : 
      55                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      56                 : #define NS_FORWARD_NSIIDBFACTORY(_to) \
      57                 :   NS_SCRIPTABLE NS_IMETHOD Open(const nsAString & name, PRInt64 version, PRUint8 _argc, nsIIDBOpenDBRequest * *_retval NS_OUTPARAM) { return _to Open(name, version, _argc, _retval); } \
      58                 :   NS_SCRIPTABLE NS_IMETHOD DeleteDatabase(const nsAString & name, nsIIDBOpenDBRequest * *_retval NS_OUTPARAM) { return _to DeleteDatabase(name, _retval); } \
      59                 :   NS_SCRIPTABLE NS_IMETHOD Cmp(const JS::Value & first, const JS::Value & second, JSContext* cx, PRInt16 *_retval NS_OUTPARAM) { return _to Cmp(first, second, cx, _retval); } 
      60                 : 
      61                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      62                 : #define NS_FORWARD_SAFE_NSIIDBFACTORY(_to) \
      63                 :   NS_SCRIPTABLE NS_IMETHOD Open(const nsAString & name, PRInt64 version, PRUint8 _argc, nsIIDBOpenDBRequest * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(name, version, _argc, _retval); } \
      64                 :   NS_SCRIPTABLE NS_IMETHOD DeleteDatabase(const nsAString & name, nsIIDBOpenDBRequest * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteDatabase(name, _retval); } \
      65                 :   NS_SCRIPTABLE NS_IMETHOD Cmp(const JS::Value & first, const JS::Value & second, JSContext* cx, PRInt16 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Cmp(first, second, cx, _retval); } 
      66                 : 
      67                 : #if 0
      68                 : /* Use the code below as a template for the implementation class for this interface. */
      69                 : 
      70                 : /* Header file */
      71                 : class nsIDBFactory : public nsIIDBFactory
      72                 : {
      73                 : public:
      74                 :   NS_DECL_ISUPPORTS
      75                 :   NS_DECL_NSIIDBFACTORY
      76                 : 
      77                 :   nsIDBFactory();
      78                 : 
      79                 : private:
      80                 :   ~nsIDBFactory();
      81                 : 
      82                 : protected:
      83                 :   /* additional members */
      84                 : };
      85                 : 
      86                 : /* Implementation file */
      87                 : NS_IMPL_ISUPPORTS1(nsIDBFactory, nsIIDBFactory)
      88                 : 
      89                 : nsIDBFactory::nsIDBFactory()
      90                 : {
      91                 :   /* member initializers and constructor code */
      92                 : }
      93                 : 
      94                 : nsIDBFactory::~nsIDBFactory()
      95                 : {
      96                 :   /* destructor code */
      97                 : }
      98                 : 
      99                 : /* [optional_argc] nsIIDBOpenDBRequest open ([Null (Stringify)] in DOMString name, [optional] in long long version); */
     100                 : NS_IMETHODIMP nsIDBFactory::Open(const nsAString & name, PRInt64 version, PRUint8 _argc, nsIIDBOpenDBRequest * *_retval NS_OUTPARAM)
     101                 : {
     102                 :     return NS_ERROR_NOT_IMPLEMENTED;
     103                 : }
     104                 : 
     105                 : /* nsIIDBOpenDBRequest deleteDatabase (in AString name); */
     106                 : NS_IMETHODIMP nsIDBFactory::DeleteDatabase(const nsAString & name, nsIIDBOpenDBRequest * *_retval NS_OUTPARAM)
     107                 : {
     108                 :     return NS_ERROR_NOT_IMPLEMENTED;
     109                 : }
     110                 : 
     111                 : /* [implicit_jscontext] short cmp (in jsval first, in jsval second); */
     112                 : NS_IMETHODIMP nsIDBFactory::Cmp(const JS::Value & first, const JS::Value & second, JSContext* cx, PRInt16 *_retval NS_OUTPARAM)
     113                 : {
     114                 :     return NS_ERROR_NOT_IMPLEMENTED;
     115                 : }
     116                 : 
     117                 : /* End of implementation class template. */
     118                 : #endif
     119                 : 
     120                 : 
     121                 : #endif /* __gen_nsIIDBFactory_h__ */

Generated by: LCOV version 1.7