LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIProgressEventSink.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/nsIProgressEventSink.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIProgressEventSink_h__
       6             : #define __gen_nsIProgressEventSink_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 nsIURI; /* forward declaration */
      18             : 
      19             : class nsIRequest; /* forward declaration */
      20             : 
      21             : 
      22             : /* starting interface:    nsIProgressEventSink */
      23             : #define NS_IPROGRESSEVENTSINK_IID_STR "87d55fba-cb7e-4f38-84c1-5c6c2b2a55e9"
      24             : 
      25             : #define NS_IPROGRESSEVENTSINK_IID \
      26             :   {0x87d55fba, 0xcb7e, 0x4f38, \
      27             :     { 0x84, 0xc1, 0x5c, 0x6c, 0x2b, 0x2a, 0x55, 0xe9 }}
      28             : 
      29          57 : class NS_NO_VTABLE nsIProgressEventSink : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROGRESSEVENTSINK_IID)
      33             : 
      34             :   /* void onProgress (in nsIRequest aRequest, in nsISupports aContext, in long long aProgress, in long long aProgressMax); */
      35             :   NS_IMETHOD OnProgress(nsIRequest *aRequest, nsISupports *aContext, int64_t aProgress, int64_t aProgressMax) = 0;
      36             : 
      37             :   /* void onStatus (in nsIRequest aRequest, in nsISupports aContext, in nsresult aStatus, in wstring aStatusArg); */
      38             :   NS_IMETHOD OnStatus(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus, const char16_t * aStatusArg) = 0;
      39             : 
      40             : };
      41             : 
      42             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIProgressEventSink, NS_IPROGRESSEVENTSINK_IID)
      43             : 
      44             : /* Use this macro when declaring classes that implement this interface. */
      45             : #define NS_DECL_NSIPROGRESSEVENTSINK \
      46             :   NS_IMETHOD OnProgress(nsIRequest *aRequest, nsISupports *aContext, int64_t aProgress, int64_t aProgressMax) override; \
      47             :   NS_IMETHOD OnStatus(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus, const char16_t * aStatusArg) override; 
      48             : 
      49             : /* Use this macro when declaring the members of this interface when the
      50             :    class doesn't implement the interface. This is useful for forwarding. */
      51             : #define NS_DECL_NON_VIRTUAL_NSIPROGRESSEVENTSINK \
      52             :   nsresult OnProgress(nsIRequest *aRequest, nsISupports *aContext, int64_t aProgress, int64_t aProgressMax); \
      53             :   nsresult OnStatus(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus, const char16_t * aStatusArg); 
      54             : 
      55             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      56             : #define NS_FORWARD_NSIPROGRESSEVENTSINK(_to) \
      57             :   NS_IMETHOD OnProgress(nsIRequest *aRequest, nsISupports *aContext, int64_t aProgress, int64_t aProgressMax) override { return _to OnProgress(aRequest, aContext, aProgress, aProgressMax); } \
      58             :   NS_IMETHOD OnStatus(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus, const char16_t * aStatusArg) override { return _to OnStatus(aRequest, aContext, aStatus, aStatusArg); } 
      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_NSIPROGRESSEVENTSINK(_to) \
      62             :   NS_IMETHOD OnProgress(nsIRequest *aRequest, nsISupports *aContext, int64_t aProgress, int64_t aProgressMax) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnProgress(aRequest, aContext, aProgress, aProgressMax); } \
      63             :   NS_IMETHOD OnStatus(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus, const char16_t * aStatusArg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStatus(aRequest, aContext, aStatus, aStatusArg); } 
      64             : 
      65             : #if 0
      66             : /* Use the code below as a template for the implementation class for this interface. */
      67             : 
      68             : /* Header file */
      69             : class nsProgressEventSink : public nsIProgressEventSink
      70             : {
      71             : public:
      72             :   NS_DECL_ISUPPORTS
      73             :   NS_DECL_NSIPROGRESSEVENTSINK
      74             : 
      75             :   nsProgressEventSink();
      76             : 
      77             : private:
      78             :   ~nsProgressEventSink();
      79             : 
      80             : protected:
      81             :   /* additional members */
      82             : };
      83             : 
      84             : /* Implementation file */
      85             : NS_IMPL_ISUPPORTS(nsProgressEventSink, nsIProgressEventSink)
      86             : 
      87             : nsProgressEventSink::nsProgressEventSink()
      88             : {
      89             :   /* member initializers and constructor code */
      90             : }
      91             : 
      92             : nsProgressEventSink::~nsProgressEventSink()
      93             : {
      94             :   /* destructor code */
      95             : }
      96             : 
      97             : /* void onProgress (in nsIRequest aRequest, in nsISupports aContext, in long long aProgress, in long long aProgressMax); */
      98             : NS_IMETHODIMP nsProgressEventSink::OnProgress(nsIRequest *aRequest, nsISupports *aContext, int64_t aProgress, int64_t aProgressMax)
      99             : {
     100             :     return NS_ERROR_NOT_IMPLEMENTED;
     101             : }
     102             : 
     103             : /* void onStatus (in nsIRequest aRequest, in nsISupports aContext, in nsresult aStatus, in wstring aStatusArg); */
     104             : NS_IMETHODIMP nsProgressEventSink::OnStatus(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus, const char16_t * aStatusArg)
     105             : {
     106             :     return NS_ERROR_NOT_IMPLEMENTED;
     107             : }
     108             : 
     109             : /* End of implementation class template. */
     110             : #endif
     111             : 
     112             : 
     113             : #endif /* __gen_nsIProgressEventSink_h__ */

Generated by: LCOV version 1.13