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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/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               2 : class NS_NO_VTABLE NS_SCRIPTABLE 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_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD Init(nsIDownloadObserver *observer, nsIFile *downloadLocation); 
      44                 : 
      45                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      46                 : #define NS_FORWARD_NSIDOWNLOADER(_to) \
      47                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIDownloadObserver *observer, nsIFile *downloadLocation) { return _to Init(observer, downloadLocation); } 
      48                 : 
      49                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      50                 : #define NS_FORWARD_SAFE_NSIDOWNLOADER(_to) \
      51                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIDownloadObserver *observer, nsIFile *downloadLocation) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(observer, downloadLocation); } 
      52                 : 
      53                 : #if 0
      54                 : /* Use the code below as a template for the implementation class for this interface. */
      55                 : 
      56                 : /* Header file */
      57                 : class nsDownloader : public nsIDownloader
      58                 : {
      59                 : public:
      60                 :   NS_DECL_ISUPPORTS
      61                 :   NS_DECL_NSIDOWNLOADER
      62                 : 
      63                 :   nsDownloader();
      64                 : 
      65                 : private:
      66                 :   ~nsDownloader();
      67                 : 
      68                 : protected:
      69                 :   /* additional members */
      70                 : };
      71                 : 
      72                 : /* Implementation file */
      73                 : NS_IMPL_ISUPPORTS1(nsDownloader, nsIDownloader)
      74                 : 
      75                 : nsDownloader::nsDownloader()
      76                 : {
      77                 :   /* member initializers and constructor code */
      78                 : }
      79                 : 
      80                 : nsDownloader::~nsDownloader()
      81                 : {
      82                 :   /* destructor code */
      83                 : }
      84                 : 
      85                 : /* void init (in nsIDownloadObserver observer, in nsIFile downloadLocation); */
      86                 : NS_IMETHODIMP nsDownloader::Init(nsIDownloadObserver *observer, nsIFile *downloadLocation)
      87                 : {
      88                 :     return NS_ERROR_NOT_IMPLEMENTED;
      89                 : }
      90                 : 
      91                 : /* End of implementation class template. */
      92                 : #endif
      93                 : 
      94                 : 
      95                 : /* starting interface:    nsIDownloadObserver */
      96                 : #define NS_IDOWNLOADOBSERVER_IID_STR "44b3153e-a54e-4077-a527-b0325e40924e"
      97                 : 
      98                 : #define NS_IDOWNLOADOBSERVER_IID \
      99                 :   {0x44b3153e, 0xa54e, 0x4077, \
     100                 :     { 0xa5, 0x27, 0xb0, 0x32, 0x5e, 0x40, 0x92, 0x4e }}
     101                 : 
     102             399 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDownloadObserver : public nsISupports {
     103                 :  public: 
     104                 : 
     105                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOWNLOADOBSERVER_IID)
     106                 : 
     107                 :   /* void onDownloadComplete (in nsIDownloader downloader, in nsIRequest request, in nsISupports ctxt, in nsresult status, in nsIFile result); */
     108                 :   NS_SCRIPTABLE NS_IMETHOD OnDownloadComplete(nsIDownloader *downloader, nsIRequest *request, nsISupports *ctxt, nsresult status, nsIFile *result) = 0;
     109                 : 
     110                 : };
     111                 : 
     112                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDownloadObserver, NS_IDOWNLOADOBSERVER_IID)
     113                 : 
     114                 : /* Use this macro when declaring classes that implement this interface. */
     115                 : #define NS_DECL_NSIDOWNLOADOBSERVER \
     116                 :   NS_SCRIPTABLE NS_IMETHOD OnDownloadComplete(nsIDownloader *downloader, nsIRequest *request, nsISupports *ctxt, nsresult status, nsIFile *result); 
     117                 : 
     118                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     119                 : #define NS_FORWARD_NSIDOWNLOADOBSERVER(_to) \
     120                 :   NS_SCRIPTABLE NS_IMETHOD OnDownloadComplete(nsIDownloader *downloader, nsIRequest *request, nsISupports *ctxt, nsresult status, nsIFile *result) { return _to OnDownloadComplete(downloader, request, ctxt, status, result); } 
     121                 : 
     122                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     123                 : #define NS_FORWARD_SAFE_NSIDOWNLOADOBSERVER(_to) \
     124                 :   NS_SCRIPTABLE NS_IMETHOD OnDownloadComplete(nsIDownloader *downloader, nsIRequest *request, nsISupports *ctxt, nsresult status, nsIFile *result) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDownloadComplete(downloader, request, ctxt, status, result); } 
     125                 : 
     126                 : #if 0
     127                 : /* Use the code below as a template for the implementation class for this interface. */
     128                 : 
     129                 : /* Header file */
     130                 : class nsDownloadObserver : public nsIDownloadObserver
     131                 : {
     132                 : public:
     133                 :   NS_DECL_ISUPPORTS
     134                 :   NS_DECL_NSIDOWNLOADOBSERVER
     135                 : 
     136                 :   nsDownloadObserver();
     137                 : 
     138                 : private:
     139                 :   ~nsDownloadObserver();
     140                 : 
     141                 : protected:
     142                 :   /* additional members */
     143                 : };
     144                 : 
     145                 : /* Implementation file */
     146                 : NS_IMPL_ISUPPORTS1(nsDownloadObserver, nsIDownloadObserver)
     147                 : 
     148                 : nsDownloadObserver::nsDownloadObserver()
     149                 : {
     150                 :   /* member initializers and constructor code */
     151                 : }
     152                 : 
     153                 : nsDownloadObserver::~nsDownloadObserver()
     154                 : {
     155                 :   /* destructor code */
     156                 : }
     157                 : 
     158                 : /* void onDownloadComplete (in nsIDownloader downloader, in nsIRequest request, in nsISupports ctxt, in nsresult status, in nsIFile result); */
     159                 : NS_IMETHODIMP nsDownloadObserver::OnDownloadComplete(nsIDownloader *downloader, nsIRequest *request, nsISupports *ctxt, nsresult status, nsIFile *result)
     160                 : {
     161                 :     return NS_ERROR_NOT_IMPLEMENTED;
     162                 : }
     163                 : 
     164                 : /* End of implementation class template. */
     165                 : #endif
     166                 : 
     167                 : 
     168                 : #endif /* __gen_nsIDownloader_h__ */

Generated by: LCOV version 1.7