LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIIDBDatabaseException.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/nsIIDBDatabaseException.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIIDBDatabaseException_h__
       6                 : #define __gen_nsIIDBDatabaseException_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                 : 
      18                 : /* starting interface:    nsIIDBDatabaseException */
      19                 : #define NS_IIDBDATABASEEXCEPTION_IID_STR "7aad2542-a5cb-4a57-b20c-c7d16b8582ab"
      20                 : 
      21                 : #define NS_IIDBDATABASEEXCEPTION_IID \
      22                 :   {0x7aad2542, 0xa5cb, 0x4a57, \
      23                 :     { 0xb2, 0x0c, 0xc7, 0xd1, 0x6b, 0x85, 0x82, 0xab }}
      24                 : 
      25             203 : class NS_NO_VTABLE NS_SCRIPTABLE nsIIDBDatabaseException : public nsISupports {
      26                 :  public: 
      27                 : 
      28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIDBDATABASEEXCEPTION_IID)
      29                 : 
      30                 :   enum {
      31                 :     UNKNOWN_ERR = 1U,
      32                 :     NON_TRANSIENT_ERR = 2U,
      33                 :     NOT_FOUND_ERR = 3U,
      34                 :     CONSTRAINT_ERR = 4U,
      35                 :     DATA_ERR = 5U,
      36                 :     NOT_ALLOWED_ERR = 6U,
      37                 :     TRANSACTION_INACTIVE_ERR = 7U,
      38                 :     ABORT_ERR = 8U,
      39                 :     READ_ONLY_ERR = 9U,
      40                 :     TIMEOUT_ERR = 10U,
      41                 :     QUOTA_ERR = 11U,
      42                 :     VERSION_ERR = 12U
      43                 :   };
      44                 : 
      45                 :   /* readonly attribute unsigned short code; */
      46                 :   NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode) = 0;
      47                 : 
      48                 : };
      49                 : 
      50                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIIDBDatabaseException, NS_IIDBDATABASEEXCEPTION_IID)
      51                 : 
      52                 : /* Use this macro when declaring classes that implement this interface. */
      53                 : #define NS_DECL_NSIIDBDATABASEEXCEPTION \
      54                 :   NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode); 
      55                 : 
      56                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      57                 : #define NS_FORWARD_NSIIDBDATABASEEXCEPTION(_to) \
      58                 :   NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode) { return _to GetCode(aCode); } 
      59                 : 
      60                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      61                 : #define NS_FORWARD_SAFE_NSIIDBDATABASEEXCEPTION(_to) \
      62                 :   NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCode(aCode); } 
      63                 : 
      64                 : #if 0
      65                 : /* Use the code below as a template for the implementation class for this interface. */
      66                 : 
      67                 : /* Header file */
      68                 : class nsIDBDatabaseException : public nsIIDBDatabaseException
      69                 : {
      70                 : public:
      71                 :   NS_DECL_ISUPPORTS
      72                 :   NS_DECL_NSIIDBDATABASEEXCEPTION
      73                 : 
      74                 :   nsIDBDatabaseException();
      75                 : 
      76                 : private:
      77                 :   ~nsIDBDatabaseException();
      78                 : 
      79                 : protected:
      80                 :   /* additional members */
      81                 : };
      82                 : 
      83                 : /* Implementation file */
      84                 : NS_IMPL_ISUPPORTS1(nsIDBDatabaseException, nsIIDBDatabaseException)
      85                 : 
      86                 : nsIDBDatabaseException::nsIDBDatabaseException()
      87                 : {
      88                 :   /* member initializers and constructor code */
      89                 : }
      90                 : 
      91                 : nsIDBDatabaseException::~nsIDBDatabaseException()
      92                 : {
      93                 :   /* destructor code */
      94                 : }
      95                 : 
      96                 : /* readonly attribute unsigned short code; */
      97                 : NS_IMETHODIMP nsIDBDatabaseException::GetCode(PRUint16 *aCode)
      98                 : {
      99                 :     return NS_ERROR_NOT_IMPLEMENTED;
     100                 : }
     101                 : 
     102                 : /* End of implementation class template. */
     103                 : #endif
     104                 : 
     105                 : 
     106                 : #endif /* __gen_nsIIDBDatabaseException_h__ */

Generated by: LCOV version 1.7