LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIProgressEventSink.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2012-06-02 Functions: 1 1 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/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 "d974c99e-4148-4df9-8d98-de834a2f6462"
      24                 : 
      25                 : #define NS_IPROGRESSEVENTSINK_IID \
      26                 :   {0xd974c99e, 0x4148, 0x4df9, \
      27                 :     { 0x8d, 0x98, 0xde, 0x83, 0x4a, 0x2f, 0x64, 0x62 }}
      28                 : 
      29            2348 : class NS_NO_VTABLE NS_SCRIPTABLE 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 unsigned long long aProgress, in unsigned long long aProgressMax); */
      35                 :   NS_SCRIPTABLE NS_IMETHOD OnProgress(nsIRequest *aRequest, nsISupports *aContext, PRUint64 aProgress, PRUint64 aProgressMax) = 0;
      36                 : 
      37                 :   /* void onStatus (in nsIRequest aRequest, in nsISupports aContext, in nsresult aStatus, in wstring aStatusArg); */
      38                 :   NS_SCRIPTABLE NS_IMETHOD OnStatus(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus, const PRUnichar * 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_SCRIPTABLE NS_IMETHOD OnProgress(nsIRequest *aRequest, nsISupports *aContext, PRUint64 aProgress, PRUint64 aProgressMax); \
      47                 :   NS_SCRIPTABLE NS_IMETHOD OnStatus(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus, const PRUnichar * aStatusArg); 
      48                 : 
      49                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      50                 : #define NS_FORWARD_NSIPROGRESSEVENTSINK(_to) \
      51                 :   NS_SCRIPTABLE NS_IMETHOD OnProgress(nsIRequest *aRequest, nsISupports *aContext, PRUint64 aProgress, PRUint64 aProgressMax) { return _to OnProgress(aRequest, aContext, aProgress, aProgressMax); } \
      52                 :   NS_SCRIPTABLE NS_IMETHOD OnStatus(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus, const PRUnichar * aStatusArg) { return _to OnStatus(aRequest, aContext, aStatus, aStatusArg); } 
      53                 : 
      54                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      55                 : #define NS_FORWARD_SAFE_NSIPROGRESSEVENTSINK(_to) \
      56                 :   NS_SCRIPTABLE NS_IMETHOD OnProgress(nsIRequest *aRequest, nsISupports *aContext, PRUint64 aProgress, PRUint64 aProgressMax) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnProgress(aRequest, aContext, aProgress, aProgressMax); } \
      57                 :   NS_SCRIPTABLE NS_IMETHOD OnStatus(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus, const PRUnichar * aStatusArg) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStatus(aRequest, aContext, aStatus, aStatusArg); } 
      58                 : 
      59                 : #if 0
      60                 : /* Use the code below as a template for the implementation class for this interface. */
      61                 : 
      62                 : /* Header file */
      63                 : class nsProgressEventSink : public nsIProgressEventSink
      64                 : {
      65                 : public:
      66                 :   NS_DECL_ISUPPORTS
      67                 :   NS_DECL_NSIPROGRESSEVENTSINK
      68                 : 
      69                 :   nsProgressEventSink();
      70                 : 
      71                 : private:
      72                 :   ~nsProgressEventSink();
      73                 : 
      74                 : protected:
      75                 :   /* additional members */
      76                 : };
      77                 : 
      78                 : /* Implementation file */
      79                 : NS_IMPL_ISUPPORTS1(nsProgressEventSink, nsIProgressEventSink)
      80                 : 
      81                 : nsProgressEventSink::nsProgressEventSink()
      82                 : {
      83                 :   /* member initializers and constructor code */
      84                 : }
      85                 : 
      86                 : nsProgressEventSink::~nsProgressEventSink()
      87                 : {
      88                 :   /* destructor code */
      89                 : }
      90                 : 
      91                 : /* void onProgress (in nsIRequest aRequest, in nsISupports aContext, in unsigned long long aProgress, in unsigned long long aProgressMax); */
      92                 : NS_IMETHODIMP nsProgressEventSink::OnProgress(nsIRequest *aRequest, nsISupports *aContext, PRUint64 aProgress, PRUint64 aProgressMax)
      93                 : {
      94                 :     return NS_ERROR_NOT_IMPLEMENTED;
      95                 : }
      96                 : 
      97                 : /* void onStatus (in nsIRequest aRequest, in nsISupports aContext, in nsresult aStatus, in wstring aStatusArg); */
      98                 : NS_IMETHODIMP nsProgressEventSink::OnStatus(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus, const PRUnichar * aStatusArg)
      99                 : {
     100                 :     return NS_ERROR_NOT_IMPLEMENTED;
     101                 : }
     102                 : 
     103                 : /* End of implementation class template. */
     104                 : #endif
     105                 : 
     106                 : 
     107                 : #endif /* __gen_nsIProgressEventSink_h__ */

Generated by: LCOV version 1.7