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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/mozIStorageVacuumParticipant.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_mozIStorageVacuumParticipant_h__
       6             : #define __gen_mozIStorageVacuumParticipant_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             : class mozIStorageConnection; /* forward declaration */
      18             : 
      19             : 
      20             : /* starting interface:    mozIStorageVacuumParticipant */
      21             : #define MOZISTORAGEVACUUMPARTICIPANT_IID_STR "8f367508-1d9a-4d3f-be0c-ac11b6dd7dbf"
      22             : 
      23             : #define MOZISTORAGEVACUUMPARTICIPANT_IID \
      24             :   {0x8f367508, 0x1d9a, 0x4d3f, \
      25             :     { 0xbe, 0x0c, 0xac, 0x11, 0xb6, 0xdd, 0x7d, 0xbf }}
      26             : 
      27           1 : class NS_NO_VTABLE mozIStorageVacuumParticipant : public nsISupports {
      28             :  public:
      29             : 
      30             :   NS_DECLARE_STATIC_IID_ACCESSOR(MOZISTORAGEVACUUMPARTICIPANT_IID)
      31             : 
      32             :   /* readonly attribute long expectedDatabasePageSize; */
      33             :   NS_IMETHOD GetExpectedDatabasePageSize(int32_t *aExpectedDatabasePageSize) = 0;
      34             : 
      35             :   /* readonly attribute mozIStorageConnection databaseConnection; */
      36             :   NS_IMETHOD GetDatabaseConnection(mozIStorageConnection * *aDatabaseConnection) = 0;
      37             : 
      38             :   /* boolean onBeginVacuum (); */
      39             :   NS_IMETHOD OnBeginVacuum(bool *_retval) = 0;
      40             : 
      41             :   /* void onEndVacuum (in boolean aSucceeded); */
      42             :   NS_IMETHOD OnEndVacuum(bool aSucceeded) = 0;
      43             : 
      44             : };
      45             : 
      46             :   NS_DEFINE_STATIC_IID_ACCESSOR(mozIStorageVacuumParticipant, MOZISTORAGEVACUUMPARTICIPANT_IID)
      47             : 
      48             : /* Use this macro when declaring classes that implement this interface. */
      49             : #define NS_DECL_MOZISTORAGEVACUUMPARTICIPANT \
      50             :   NS_IMETHOD GetExpectedDatabasePageSize(int32_t *aExpectedDatabasePageSize) override; \
      51             :   NS_IMETHOD GetDatabaseConnection(mozIStorageConnection * *aDatabaseConnection) override; \
      52             :   NS_IMETHOD OnBeginVacuum(bool *_retval) override; \
      53             :   NS_IMETHOD OnEndVacuum(bool aSucceeded) override; 
      54             : 
      55             : /* Use this macro when declaring the members of this interface when the
      56             :    class doesn't implement the interface. This is useful for forwarding. */
      57             : #define NS_DECL_NON_VIRTUAL_MOZISTORAGEVACUUMPARTICIPANT \
      58             :   nsresult GetExpectedDatabasePageSize(int32_t *aExpectedDatabasePageSize); \
      59             :   nsresult GetDatabaseConnection(mozIStorageConnection * *aDatabaseConnection); \
      60             :   nsresult OnBeginVacuum(bool *_retval); \
      61             :   nsresult OnEndVacuum(bool aSucceeded); 
      62             : 
      63             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      64             : #define NS_FORWARD_MOZISTORAGEVACUUMPARTICIPANT(_to) \
      65             :   NS_IMETHOD GetExpectedDatabasePageSize(int32_t *aExpectedDatabasePageSize) override { return _to GetExpectedDatabasePageSize(aExpectedDatabasePageSize); } \
      66             :   NS_IMETHOD GetDatabaseConnection(mozIStorageConnection * *aDatabaseConnection) override { return _to GetDatabaseConnection(aDatabaseConnection); } \
      67             :   NS_IMETHOD OnBeginVacuum(bool *_retval) override { return _to OnBeginVacuum(_retval); } \
      68             :   NS_IMETHOD OnEndVacuum(bool aSucceeded) override { return _to OnEndVacuum(aSucceeded); } 
      69             : 
      70             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      71             : #define NS_FORWARD_SAFE_MOZISTORAGEVACUUMPARTICIPANT(_to) \
      72             :   NS_IMETHOD GetExpectedDatabasePageSize(int32_t *aExpectedDatabasePageSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExpectedDatabasePageSize(aExpectedDatabasePageSize); } \
      73             :   NS_IMETHOD GetDatabaseConnection(mozIStorageConnection * *aDatabaseConnection) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDatabaseConnection(aDatabaseConnection); } \
      74             :   NS_IMETHOD OnBeginVacuum(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnBeginVacuum(_retval); } \
      75             :   NS_IMETHOD OnEndVacuum(bool aSucceeded) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnEndVacuum(aSucceeded); } 
      76             : 
      77             : #if 0
      78             : /* Use the code below as a template for the implementation class for this interface. */
      79             : 
      80             : /* Header file */
      81             : class _MYCLASS_ : public mozIStorageVacuumParticipant
      82             : {
      83             : public:
      84             :   NS_DECL_ISUPPORTS
      85             :   NS_DECL_MOZISTORAGEVACUUMPARTICIPANT
      86             : 
      87             :   _MYCLASS_();
      88             : 
      89             : private:
      90             :   ~_MYCLASS_();
      91             : 
      92             : protected:
      93             :   /* additional members */
      94             : };
      95             : 
      96             : /* Implementation file */
      97             : NS_IMPL_ISUPPORTS(_MYCLASS_, mozIStorageVacuumParticipant)
      98             : 
      99             : _MYCLASS_::_MYCLASS_()
     100             : {
     101             :   /* member initializers and constructor code */
     102             : }
     103             : 
     104             : _MYCLASS_::~_MYCLASS_()
     105             : {
     106             :   /* destructor code */
     107             : }
     108             : 
     109             : /* readonly attribute long expectedDatabasePageSize; */
     110             : NS_IMETHODIMP _MYCLASS_::GetExpectedDatabasePageSize(int32_t *aExpectedDatabasePageSize)
     111             : {
     112             :     return NS_ERROR_NOT_IMPLEMENTED;
     113             : }
     114             : 
     115             : /* readonly attribute mozIStorageConnection databaseConnection; */
     116             : NS_IMETHODIMP _MYCLASS_::GetDatabaseConnection(mozIStorageConnection * *aDatabaseConnection)
     117             : {
     118             :     return NS_ERROR_NOT_IMPLEMENTED;
     119             : }
     120             : 
     121             : /* boolean onBeginVacuum (); */
     122             : NS_IMETHODIMP _MYCLASS_::OnBeginVacuum(bool *_retval)
     123             : {
     124             :     return NS_ERROR_NOT_IMPLEMENTED;
     125             : }
     126             : 
     127             : /* void onEndVacuum (in boolean aSucceeded); */
     128             : NS_IMETHODIMP _MYCLASS_::OnEndVacuum(bool aSucceeded)
     129             : {
     130             :     return NS_ERROR_NOT_IMPLEMENTED;
     131             : }
     132             : 
     133             : /* End of implementation class template. */
     134             : #endif
     135             : 
     136             : 
     137             : #endif /* __gen_mozIStorageVacuumParticipant_h__ */

Generated by: LCOV version 1.13