LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - xpctest_returncode.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/xpctest_returncode.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_xpctest_returncode_h__
       6             : #define __gen_xpctest_returncode_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:    nsIXPCTestReturnCodeParent */
      19             : #define NS_IXPCTESTRETURNCODEPARENT_IID_STR "479e4532-95cf-48b8-a99b-8a5881e47138"
      20             : 
      21             : #define NS_IXPCTESTRETURNCODEPARENT_IID \
      22             :   {0x479e4532, 0x95cf, 0x48b8, \
      23             :     { 0xa9, 0x9b, 0x8a, 0x58, 0x81, 0xe4, 0x71, 0x38 }}
      24             : 
      25           0 : class NS_NO_VTABLE nsIXPCTestReturnCodeParent : public nsISupports {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCTESTRETURNCODEPARENT_IID)
      29             : 
      30             :   /* nsresult callChild (in long childBehavior); */
      31             :   NS_IMETHOD CallChild(int32_t childBehavior, nsresult *_retval) = 0;
      32             : 
      33             : };
      34             : 
      35             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCTestReturnCodeParent, NS_IXPCTESTRETURNCODEPARENT_IID)
      36             : 
      37             : /* Use this macro when declaring classes that implement this interface. */
      38             : #define NS_DECL_NSIXPCTESTRETURNCODEPARENT \
      39             :   NS_IMETHOD CallChild(int32_t childBehavior, nsresult *_retval) override; 
      40             : 
      41             : /* Use this macro when declaring the members of this interface when the
      42             :    class doesn't implement the interface. This is useful for forwarding. */
      43             : #define NS_DECL_NON_VIRTUAL_NSIXPCTESTRETURNCODEPARENT \
      44             :   nsresult CallChild(int32_t childBehavior, nsresult *_retval); 
      45             : 
      46             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      47             : #define NS_FORWARD_NSIXPCTESTRETURNCODEPARENT(_to) \
      48             :   NS_IMETHOD CallChild(int32_t childBehavior, nsresult *_retval) override { return _to CallChild(childBehavior, _retval); } 
      49             : 
      50             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      51             : #define NS_FORWARD_SAFE_NSIXPCTESTRETURNCODEPARENT(_to) \
      52             :   NS_IMETHOD CallChild(int32_t childBehavior, nsresult *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CallChild(childBehavior, _retval); } 
      53             : 
      54             : #if 0
      55             : /* Use the code below as a template for the implementation class for this interface. */
      56             : 
      57             : /* Header file */
      58             : class nsXPCTestReturnCodeParent : public nsIXPCTestReturnCodeParent
      59             : {
      60             : public:
      61             :   NS_DECL_ISUPPORTS
      62             :   NS_DECL_NSIXPCTESTRETURNCODEPARENT
      63             : 
      64             :   nsXPCTestReturnCodeParent();
      65             : 
      66             : private:
      67             :   ~nsXPCTestReturnCodeParent();
      68             : 
      69             : protected:
      70             :   /* additional members */
      71             : };
      72             : 
      73             : /* Implementation file */
      74             : NS_IMPL_ISUPPORTS(nsXPCTestReturnCodeParent, nsIXPCTestReturnCodeParent)
      75             : 
      76             : nsXPCTestReturnCodeParent::nsXPCTestReturnCodeParent()
      77             : {
      78             :   /* member initializers and constructor code */
      79             : }
      80             : 
      81             : nsXPCTestReturnCodeParent::~nsXPCTestReturnCodeParent()
      82             : {
      83             :   /* destructor code */
      84             : }
      85             : 
      86             : /* nsresult callChild (in long childBehavior); */
      87             : NS_IMETHODIMP nsXPCTestReturnCodeParent::CallChild(int32_t childBehavior, nsresult *_retval)
      88             : {
      89             :     return NS_ERROR_NOT_IMPLEMENTED;
      90             : }
      91             : 
      92             : /* End of implementation class template. */
      93             : #endif
      94             : 
      95             : 
      96             : /* starting interface:    nsIXPCTestReturnCodeChild */
      97             : #define NS_IXPCTESTRETURNCODECHILD_IID_STR "672cfd34-1fd1-455d-9901-d879fa6fdb95"
      98             : 
      99             : #define NS_IXPCTESTRETURNCODECHILD_IID \
     100             :   {0x672cfd34, 0x1fd1, 0x455d, \
     101             :     { 0x99, 0x01, 0xd8, 0x79, 0xfa, 0x6f, 0xdb, 0x95 }}
     102             : 
     103             : class NS_NO_VTABLE nsIXPCTestReturnCodeChild : public nsISupports {
     104             :  public:
     105             : 
     106             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCTESTRETURNCODECHILD_IID)
     107             : 
     108             :   /* void doIt (in long behavior); */
     109             :   NS_IMETHOD DoIt(int32_t behavior) = 0;
     110             : 
     111             :   enum {
     112             :     CHILD_SHOULD_THROW = 0,
     113             :     CHILD_SHOULD_RETURN_SUCCESS = 1,
     114             :     CHILD_SHOULD_RETURN_RESULTCODE = 2,
     115             :     CHILD_SHOULD_NEST_RESULTCODES = 3
     116             :   };
     117             : 
     118             : };
     119             : 
     120             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCTestReturnCodeChild, NS_IXPCTESTRETURNCODECHILD_IID)
     121             : 
     122             : /* Use this macro when declaring classes that implement this interface. */
     123             : #define NS_DECL_NSIXPCTESTRETURNCODECHILD \
     124             :   NS_IMETHOD DoIt(int32_t behavior) override; \
     125             : 
     126             : /* Use this macro when declaring the members of this interface when the
     127             :    class doesn't implement the interface. This is useful for forwarding. */
     128             : #define NS_DECL_NON_VIRTUAL_NSIXPCTESTRETURNCODECHILD \
     129             :   nsresult DoIt(int32_t behavior); \
     130             : 
     131             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     132             : #define NS_FORWARD_NSIXPCTESTRETURNCODECHILD(_to) \
     133             :   NS_IMETHOD DoIt(int32_t behavior) override { return _to DoIt(behavior); } \
     134             : 
     135             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     136             : #define NS_FORWARD_SAFE_NSIXPCTESTRETURNCODECHILD(_to) \
     137             :   NS_IMETHOD DoIt(int32_t behavior) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DoIt(behavior); } \
     138             : 
     139             : #if 0
     140             : /* Use the code below as a template for the implementation class for this interface. */
     141             : 
     142             : /* Header file */
     143             : class nsXPCTestReturnCodeChild : public nsIXPCTestReturnCodeChild
     144             : {
     145             : public:
     146             :   NS_DECL_ISUPPORTS
     147             :   NS_DECL_NSIXPCTESTRETURNCODECHILD
     148             : 
     149             :   nsXPCTestReturnCodeChild();
     150             : 
     151             : private:
     152             :   ~nsXPCTestReturnCodeChild();
     153             : 
     154             : protected:
     155             :   /* additional members */
     156             : };
     157             : 
     158             : /* Implementation file */
     159             : NS_IMPL_ISUPPORTS(nsXPCTestReturnCodeChild, nsIXPCTestReturnCodeChild)
     160             : 
     161             : nsXPCTestReturnCodeChild::nsXPCTestReturnCodeChild()
     162             : {
     163             :   /* member initializers and constructor code */
     164             : }
     165             : 
     166             : nsXPCTestReturnCodeChild::~nsXPCTestReturnCodeChild()
     167             : {
     168             :   /* destructor code */
     169             : }
     170             : 
     171             : /* void doIt (in long behavior); */
     172             : NS_IMETHODIMP nsXPCTestReturnCodeChild::DoIt(int32_t behavior)
     173             : {
     174             :     return NS_ERROR_NOT_IMPLEMENTED;
     175             : }
     176             : 
     177             : /* End of implementation class template. */
     178             : #endif
     179             : 
     180             : 
     181             : #endif /* __gen_xpctest_returncode_h__ */

Generated by: LCOV version 1.13