LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - mozIStorageError.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/mozIStorageError.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_mozIStorageError_h__
       6             : #define __gen_mozIStorageError_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             : #ifdef ERROR
      18             : #undef ERROR
      19             : #endif
      20             : 
      21             : /* starting interface:    mozIStorageError */
      22             : #define MOZISTORAGEERROR_IID_STR "1f350f96-7023-434a-8864-40a1c493aac1"
      23             : 
      24             : #define MOZISTORAGEERROR_IID \
      25             :   {0x1f350f96, 0x7023, 0x434a, \
      26             :     { 0x88, 0x64, 0x40, 0xa1, 0xc4, 0x93, 0xaa, 0xc1 }}
      27             : 
      28           0 : class NS_NO_VTABLE mozIStorageError : public nsISupports {
      29             :  public:
      30             : 
      31             :   NS_DECLARE_STATIC_IID_ACCESSOR(MOZISTORAGEERROR_IID)
      32             : 
      33             :   enum {
      34             :     ERROR = 1,
      35             :     INTERNAL = 2,
      36             :     PERM = 3,
      37             :     ABORT = 4,
      38             :     BUSY = 5,
      39             :     LOCKED = 6,
      40             :     NOMEM = 7,
      41             :     READONLY = 8,
      42             :     INTERRUPT = 9,
      43             :     IOERR = 10,
      44             :     CORRUPT = 11,
      45             :     FULL = 13,
      46             :     CANTOPEN = 14,
      47             :     EMPTY = 16,
      48             :     SCHEMA = 17,
      49             :     TOOBIG = 18,
      50             :     CONSTRAINT = 19,
      51             :     MISMATCH = 20,
      52             :     MISUSE = 21,
      53             :     NOLFS = 22,
      54             :     AUTH = 23,
      55             :     FORMAT = 24,
      56             :     RANGE = 25,
      57             :     NOTADB = 26
      58             :   };
      59             : 
      60             :   /* readonly attribute long result; */
      61             :   NS_IMETHOD GetResult(int32_t *aResult) = 0;
      62             : 
      63             :   /* readonly attribute AUTF8String message; */
      64             :   NS_IMETHOD GetMessage(nsACString & aMessage) = 0;
      65             : 
      66             : };
      67             : 
      68             :   NS_DEFINE_STATIC_IID_ACCESSOR(mozIStorageError, MOZISTORAGEERROR_IID)
      69             : 
      70             : /* Use this macro when declaring classes that implement this interface. */
      71             : #define NS_DECL_MOZISTORAGEERROR \
      72             :   NS_IMETHOD GetResult(int32_t *aResult) override; \
      73             :   NS_IMETHOD GetMessage(nsACString & aMessage) override; 
      74             : 
      75             : /* Use this macro when declaring the members of this interface when the
      76             :    class doesn't implement the interface. This is useful for forwarding. */
      77             : #define NS_DECL_NON_VIRTUAL_MOZISTORAGEERROR \
      78             :   nsresult GetResult(int32_t *aResult); \
      79             :   nsresult GetMessage(nsACString & aMessage); 
      80             : 
      81             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      82             : #define NS_FORWARD_MOZISTORAGEERROR(_to) \
      83             :   NS_IMETHOD GetResult(int32_t *aResult) override { return _to GetResult(aResult); } \
      84             :   NS_IMETHOD GetMessage(nsACString & aMessage) override { return _to GetMessage(aMessage); } 
      85             : 
      86             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      87             : #define NS_FORWARD_SAFE_MOZISTORAGEERROR(_to) \
      88             :   NS_IMETHOD GetResult(int32_t *aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResult(aResult); } \
      89             :   NS_IMETHOD GetMessage(nsACString & aMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessage(aMessage); } 
      90             : 
      91             : #if 0
      92             : /* Use the code below as a template for the implementation class for this interface. */
      93             : 
      94             : /* Header file */
      95             : class _MYCLASS_ : public mozIStorageError
      96             : {
      97             : public:
      98             :   NS_DECL_ISUPPORTS
      99             :   NS_DECL_MOZISTORAGEERROR
     100             : 
     101             :   _MYCLASS_();
     102             : 
     103             : private:
     104             :   ~_MYCLASS_();
     105             : 
     106             : protected:
     107             :   /* additional members */
     108             : };
     109             : 
     110             : /* Implementation file */
     111             : NS_IMPL_ISUPPORTS(_MYCLASS_, mozIStorageError)
     112             : 
     113             : _MYCLASS_::_MYCLASS_()
     114             : {
     115             :   /* member initializers and constructor code */
     116             : }
     117             : 
     118             : _MYCLASS_::~_MYCLASS_()
     119             : {
     120             :   /* destructor code */
     121             : }
     122             : 
     123             : /* readonly attribute long result; */
     124             : NS_IMETHODIMP _MYCLASS_::GetResult(int32_t *aResult)
     125             : {
     126             :     return NS_ERROR_NOT_IMPLEMENTED;
     127             : }
     128             : 
     129             : /* readonly attribute AUTF8String message; */
     130             : NS_IMETHODIMP _MYCLASS_::GetMessage(nsACString & aMessage)
     131             : {
     132             :     return NS_ERROR_NOT_IMPLEMENTED;
     133             : }
     134             : 
     135             : /* End of implementation class template. */
     136             : #endif
     137             : 
     138             : 
     139             : #endif /* __gen_mozIStorageError_h__ */

Generated by: LCOV version 1.13