LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIDownloader.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/nsIDownloader.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIDownloader_h__
       6             : #define __gen_nsIDownloader_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsIStreamListener_h__
      10             : #include "nsIStreamListener.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 nsIFile; /* forward declaration */
      18             : 
      19             : class nsIDownloadObserver; /* forward declaration */
      20             : 
      21             : 
      22             : /* starting interface:    nsIDownloader */
      23             : #define NS_IDOWNLOADER_IID_STR "fafe41a9-a531-4d6d-89bc-588a6522fb4e"
      24             : 
      25             : #define NS_IDOWNLOADER_IID \
      26             :   {0xfafe41a9, 0xa531, 0x4d6d, \
      27             :     { 0x89, 0xbc, 0x58, 0x8a, 0x65, 0x22, 0xfb, 0x4e }}
      28             : 
      29           0 : class NS_NO_VTABLE nsIDownloader : public nsIStreamListener {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOWNLOADER_IID)
      33             : 
      34             :   /* void init (in nsIDownloadObserver observer, in nsIFile downloadLocation); */
      35             :   NS_IMETHOD Init(nsIDownloadObserver *observer, nsIFile *downloadLocation) = 0;
      36             : 
      37             : };
      38             : 
      39             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDownloader, NS_IDOWNLOADER_IID)
      40             : 
      41             : /* Use this macro when declaring classes that implement this interface. */
      42             : #define NS_DECL_NSIDOWNLOADER \
      43             :   NS_IMETHOD Init(nsIDownloadObserver *observer, nsIFile *downloadLocation) override; 
      44             : 
      45             : /* Use this macro when declaring the members of this interface when the
      46             :    class doesn't implement the interface. This is useful for forwarding. */
      47             : #define NS_DECL_NON_VIRTUAL_NSIDOWNLOADER \
      48             :   nsresult Init(nsIDownloadObserver *observer, nsIFile *downloadLocation); 
      49             : 
      50             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      51             : #define NS_FORWARD_NSIDOWNLOADER(_to) \
      52             :   NS_IMETHOD Init(nsIDownloadObserver *observer, nsIFile *downloadLocation) override { return _to Init(observer, downloadLocation); } 
      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_NSIDOWNLOADER(_to) \
      56             :   NS_IMETHOD Init(nsIDownloadObserver *observer, nsIFile *downloadLocation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(observer, downloadLocation); } 
      57             : 
      58             : #if 0
      59             : /* Use the code below as a template for the implementation class for this interface. */
      60             : 
      61             : /* Header file */
      62             : class nsDownloader : public nsIDownloader
      63             : {
      64             : public:
      65             :   NS_DECL_ISUPPORTS
      66             :   NS_DECL_NSIDOWNLOADER
      67             : 
      68             :   nsDownloader();
      69             : 
      70             : private:
      71             :   ~nsDownloader();
      72             : 
      73             : protected:
      74             :   /* additional members */
      75             : };
      76             : 
      77             : /* Implementation file */
      78             : NS_IMPL_ISUPPORTS(nsDownloader, nsIDownloader)
      79             : 
      80             : nsDownloader::nsDownloader()
      81             : {
      82             :   /* member initializers and constructor code */
      83             : }
      84             : 
      85             : nsDownloader::~nsDownloader()
      86             : {
      87             :   /* destructor code */
      88             : }
      89             : 
      90             : /* void init (in nsIDownloadObserver observer, in nsIFile downloadLocation); */
      91             : NS_IMETHODIMP nsDownloader::Init(nsIDownloadObserver *observer, nsIFile *downloadLocation)
      92             : {
      93             :     return NS_ERROR_NOT_IMPLEMENTED;
      94             : }
      95             : 
      96             : /* End of implementation class template. */
      97             : #endif
      98             : 
      99             : 
     100             : /* starting interface:    nsIDownloadObserver */
     101             : #define NS_IDOWNLOADOBSERVER_IID_STR "44b3153e-a54e-4077-a527-b0325e40924e"
     102             : 
     103             : #define NS_IDOWNLOADOBSERVER_IID \
     104             :   {0x44b3153e, 0xa54e, 0x4077, \
     105             :     { 0xa5, 0x27, 0xb0, 0x32, 0x5e, 0x40, 0x92, 0x4e }}
     106             : 
     107             : class NS_NO_VTABLE nsIDownloadObserver : public nsISupports {
     108             :  public:
     109             : 
     110             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOWNLOADOBSERVER_IID)
     111             : 
     112             :   /* void onDownloadComplete (in nsIDownloader downloader, in nsIRequest request, in nsISupports ctxt, in nsresult status, in nsIFile result); */
     113             :   NS_IMETHOD OnDownloadComplete(nsIDownloader *downloader, nsIRequest *request, nsISupports *ctxt, nsresult status, nsIFile *result) = 0;
     114             : 
     115             : };
     116             : 
     117             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDownloadObserver, NS_IDOWNLOADOBSERVER_IID)
     118             : 
     119             : /* Use this macro when declaring classes that implement this interface. */
     120             : #define NS_DECL_NSIDOWNLOADOBSERVER \
     121             :   NS_IMETHOD OnDownloadComplete(nsIDownloader *downloader, nsIRequest *request, nsISupports *ctxt, nsresult status, nsIFile *result) override; 
     122             : 
     123             : /* Use this macro when declaring the members of this interface when the
     124             :    class doesn't implement the interface. This is useful for forwarding. */
     125             : #define NS_DECL_NON_VIRTUAL_NSIDOWNLOADOBSERVER \
     126             :   nsresult OnDownloadComplete(nsIDownloader *downloader, nsIRequest *request, nsISupports *ctxt, nsresult status, nsIFile *result); 
     127             : 
     128             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     129             : #define NS_FORWARD_NSIDOWNLOADOBSERVER(_to) \
     130             :   NS_IMETHOD OnDownloadComplete(nsIDownloader *downloader, nsIRequest *request, nsISupports *ctxt, nsresult status, nsIFile *result) override { return _to OnDownloadComplete(downloader, request, ctxt, status, result); } 
     131             : 
     132             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     133             : #define NS_FORWARD_SAFE_NSIDOWNLOADOBSERVER(_to) \
     134             :   NS_IMETHOD OnDownloadComplete(nsIDownloader *downloader, nsIRequest *request, nsISupports *ctxt, nsresult status, nsIFile *result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDownloadComplete(downloader, request, ctxt, status, result); } 
     135             : 
     136             : #if 0
     137             : /* Use the code below as a template for the implementation class for this interface. */
     138             : 
     139             : /* Header file */
     140             : class nsDownloadObserver : public nsIDownloadObserver
     141             : {
     142             : public:
     143             :   NS_DECL_ISUPPORTS
     144             :   NS_DECL_NSIDOWNLOADOBSERVER
     145             : 
     146             :   nsDownloadObserver();
     147             : 
     148             : private:
     149             :   ~nsDownloadObserver();
     150             : 
     151             : protected:
     152             :   /* additional members */
     153             : };
     154             : 
     155             : /* Implementation file */
     156             : NS_IMPL_ISUPPORTS(nsDownloadObserver, nsIDownloadObserver)
     157             : 
     158             : nsDownloadObserver::nsDownloadObserver()
     159             : {
     160             :   /* member initializers and constructor code */
     161             : }
     162             : 
     163             : nsDownloadObserver::~nsDownloadObserver()
     164             : {
     165             :   /* destructor code */
     166             : }
     167             : 
     168             : /* void onDownloadComplete (in nsIDownloader downloader, in nsIRequest request, in nsISupports ctxt, in nsresult status, in nsIFile result); */
     169             : NS_IMETHODIMP nsDownloadObserver::OnDownloadComplete(nsIDownloader *downloader, nsIRequest *request, nsISupports *ctxt, nsresult status, nsIFile *result)
     170             : {
     171             :     return NS_ERROR_NOT_IMPLEMENTED;
     172             : }
     173             : 
     174             : /* End of implementation class template. */
     175             : #endif
     176             : 
     177             : 
     178             : #endif /* __gen_nsIDownloader_h__ */

Generated by: LCOV version 1.13