LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsITransaction.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/nsITransaction.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsITransaction_h__
       6             : #define __gen_nsITransaction_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:    nsITransaction */
      19             : #define NS_ITRANSACTION_IID_STR "58e330c1-7b48-11d2-98b9-00805f297d89"
      20             : 
      21             : #define NS_ITRANSACTION_IID \
      22             :   {0x58e330c1, 0x7b48, 0x11d2, \
      23             :     { 0x98, 0xb9, 0x00, 0x80, 0x5f, 0x29, 0x7d, 0x89 }}
      24             : 
      25           5 : class NS_NO_VTABLE nsITransaction : public nsISupports {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITRANSACTION_IID)
      29             : 
      30             :   /* void doTransaction (); */
      31             :   NS_IMETHOD DoTransaction(void) = 0;
      32             : 
      33             :   /* void undoTransaction (); */
      34             :   NS_IMETHOD UndoTransaction(void) = 0;
      35             : 
      36             :   /* void redoTransaction (); */
      37             :   NS_IMETHOD RedoTransaction(void) = 0;
      38             : 
      39             :   /* readonly attribute boolean isTransient; */
      40             :   NS_IMETHOD GetIsTransient(bool *aIsTransient) = 0;
      41             : 
      42             :   /* boolean merge (in nsITransaction aTransaction); */
      43             :   NS_IMETHOD Merge(nsITransaction *aTransaction, bool *_retval) = 0;
      44             : 
      45             : };
      46             : 
      47             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsITransaction, NS_ITRANSACTION_IID)
      48             : 
      49             : /* Use this macro when declaring classes that implement this interface. */
      50             : #define NS_DECL_NSITRANSACTION \
      51             :   NS_IMETHOD DoTransaction(void) override; \
      52             :   NS_IMETHOD UndoTransaction(void) override; \
      53             :   NS_IMETHOD RedoTransaction(void) override; \
      54             :   NS_IMETHOD GetIsTransient(bool *aIsTransient) override; \
      55             :   NS_IMETHOD Merge(nsITransaction *aTransaction, bool *_retval) override; 
      56             : 
      57             : /* Use this macro when declaring the members of this interface when the
      58             :    class doesn't implement the interface. This is useful for forwarding. */
      59             : #define NS_DECL_NON_VIRTUAL_NSITRANSACTION \
      60             :   nsresult DoTransaction(void); \
      61             :   nsresult UndoTransaction(void); \
      62             :   nsresult RedoTransaction(void); \
      63             :   nsresult GetIsTransient(bool *aIsTransient); \
      64             :   nsresult Merge(nsITransaction *aTransaction, bool *_retval); 
      65             : 
      66             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      67             : #define NS_FORWARD_NSITRANSACTION(_to) \
      68             :   NS_IMETHOD DoTransaction(void) override { return _to DoTransaction(); } \
      69             :   NS_IMETHOD UndoTransaction(void) override { return _to UndoTransaction(); } \
      70             :   NS_IMETHOD RedoTransaction(void) override { return _to RedoTransaction(); } \
      71             :   NS_IMETHOD GetIsTransient(bool *aIsTransient) override { return _to GetIsTransient(aIsTransient); } \
      72             :   NS_IMETHOD Merge(nsITransaction *aTransaction, bool *_retval) override { return _to Merge(aTransaction, _retval); } 
      73             : 
      74             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      75             : #define NS_FORWARD_SAFE_NSITRANSACTION(_to) \
      76             :   NS_IMETHOD DoTransaction(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DoTransaction(); } \
      77             :   NS_IMETHOD UndoTransaction(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UndoTransaction(); } \
      78             :   NS_IMETHOD RedoTransaction(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RedoTransaction(); } \
      79             :   NS_IMETHOD GetIsTransient(bool *aIsTransient) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsTransient(aIsTransient); } \
      80             :   NS_IMETHOD Merge(nsITransaction *aTransaction, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Merge(aTransaction, _retval); } 
      81             : 
      82             : #if 0
      83             : /* Use the code below as a template for the implementation class for this interface. */
      84             : 
      85             : /* Header file */
      86             : class nsTransaction : public nsITransaction
      87             : {
      88             : public:
      89             :   NS_DECL_ISUPPORTS
      90             :   NS_DECL_NSITRANSACTION
      91             : 
      92             :   nsTransaction();
      93             : 
      94             : private:
      95             :   ~nsTransaction();
      96             : 
      97             : protected:
      98             :   /* additional members */
      99             : };
     100             : 
     101             : /* Implementation file */
     102             : NS_IMPL_ISUPPORTS(nsTransaction, nsITransaction)
     103             : 
     104             : nsTransaction::nsTransaction()
     105             : {
     106             :   /* member initializers and constructor code */
     107             : }
     108             : 
     109             : nsTransaction::~nsTransaction()
     110             : {
     111             :   /* destructor code */
     112             : }
     113             : 
     114             : /* void doTransaction (); */
     115             : NS_IMETHODIMP nsTransaction::DoTransaction()
     116             : {
     117             :     return NS_ERROR_NOT_IMPLEMENTED;
     118             : }
     119             : 
     120             : /* void undoTransaction (); */
     121             : NS_IMETHODIMP nsTransaction::UndoTransaction()
     122             : {
     123             :     return NS_ERROR_NOT_IMPLEMENTED;
     124             : }
     125             : 
     126             : /* void redoTransaction (); */
     127             : NS_IMETHODIMP nsTransaction::RedoTransaction()
     128             : {
     129             :     return NS_ERROR_NOT_IMPLEMENTED;
     130             : }
     131             : 
     132             : /* readonly attribute boolean isTransient; */
     133             : NS_IMETHODIMP nsTransaction::GetIsTransient(bool *aIsTransient)
     134             : {
     135             :     return NS_ERROR_NOT_IMPLEMENTED;
     136             : }
     137             : 
     138             : /* boolean merge (in nsITransaction aTransaction); */
     139             : NS_IMETHODIMP nsTransaction::Merge(nsITransaction *aTransaction, bool *_retval)
     140             : {
     141             :     return NS_ERROR_NOT_IMPLEMENTED;
     142             : }
     143             : 
     144             : /* End of implementation class template. */
     145             : #endif
     146             : 
     147             : 
     148             : #endif /* __gen_nsITransaction_h__ */

Generated by: LCOV version 1.13