LCOV - code coverage report
Current view: directory - objdir/dist/include - nsITransfer.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/uriloader/base/nsITransfer.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsITransfer_h__
       6                 : #define __gen_nsITransfer_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsIWebProgressListener2_h__
      10                 : #include "nsIWebProgressListener2.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 nsICancelable; /* forward declaration */
      20                 : 
      21                 : class nsIMIMEInfo; /* forward declaration */
      22                 : 
      23                 : class nsILocalFile; /* forward declaration */
      24                 : 
      25                 : 
      26                 : /* starting interface:    nsITransfer */
      27                 : #define NS_ITRANSFER_IID_STR "3a982955-dc44-422e-8734-8462bf8d2121"
      28                 : 
      29                 : #define NS_ITRANSFER_IID \
      30                 :   {0x3a982955, 0xdc44, 0x422e, \
      31                 :     { 0x87, 0x34, 0x84, 0x62, 0xbf, 0x8d, 0x21, 0x21 }}
      32                 : 
      33              41 : class NS_NO_VTABLE NS_SCRIPTABLE nsITransfer : public nsIWebProgressListener2 {
      34                 :  public: 
      35                 : 
      36                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITRANSFER_IID)
      37                 : 
      38                 :   /* void init (in nsIURI aSource, in nsIURI aTarget, in AString aDisplayName, in nsIMIMEInfo aMIMEInfo, in PRTime startTime, in nsILocalFile aTempFile, in nsICancelable aCancelable); */
      39                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIURI *aSource, nsIURI *aTarget, const nsAString & aDisplayName, nsIMIMEInfo *aMIMEInfo, PRTime startTime, nsILocalFile *aTempFile, nsICancelable *aCancelable) = 0;
      40                 : 
      41                 : };
      42                 : 
      43                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsITransfer, NS_ITRANSFER_IID)
      44                 : 
      45                 : /* Use this macro when declaring classes that implement this interface. */
      46                 : #define NS_DECL_NSITRANSFER \
      47                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIURI *aSource, nsIURI *aTarget, const nsAString & aDisplayName, nsIMIMEInfo *aMIMEInfo, PRTime startTime, nsILocalFile *aTempFile, nsICancelable *aCancelable); 
      48                 : 
      49                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      50                 : #define NS_FORWARD_NSITRANSFER(_to) \
      51                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIURI *aSource, nsIURI *aTarget, const nsAString & aDisplayName, nsIMIMEInfo *aMIMEInfo, PRTime startTime, nsILocalFile *aTempFile, nsICancelable *aCancelable) { return _to Init(aSource, aTarget, aDisplayName, aMIMEInfo, startTime, aTempFile, aCancelable); } 
      52                 : 
      53                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      54                 : #define NS_FORWARD_SAFE_NSITRANSFER(_to) \
      55                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIURI *aSource, nsIURI *aTarget, const nsAString & aDisplayName, nsIMIMEInfo *aMIMEInfo, PRTime startTime, nsILocalFile *aTempFile, nsICancelable *aCancelable) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aSource, aTarget, aDisplayName, aMIMEInfo, startTime, aTempFile, aCancelable); } 
      56                 : 
      57                 : #if 0
      58                 : /* Use the code below as a template for the implementation class for this interface. */
      59                 : 
      60                 : /* Header file */
      61                 : class nsTransfer : public nsITransfer
      62                 : {
      63                 : public:
      64                 :   NS_DECL_ISUPPORTS
      65                 :   NS_DECL_NSITRANSFER
      66                 : 
      67                 :   nsTransfer();
      68                 : 
      69                 : private:
      70                 :   ~nsTransfer();
      71                 : 
      72                 : protected:
      73                 :   /* additional members */
      74                 : };
      75                 : 
      76                 : /* Implementation file */
      77                 : NS_IMPL_ISUPPORTS1(nsTransfer, nsITransfer)
      78                 : 
      79                 : nsTransfer::nsTransfer()
      80                 : {
      81                 :   /* member initializers and constructor code */
      82                 : }
      83                 : 
      84                 : nsTransfer::~nsTransfer()
      85                 : {
      86                 :   /* destructor code */
      87                 : }
      88                 : 
      89                 : /* void init (in nsIURI aSource, in nsIURI aTarget, in AString aDisplayName, in nsIMIMEInfo aMIMEInfo, in PRTime startTime, in nsILocalFile aTempFile, in nsICancelable aCancelable); */
      90                 : NS_IMETHODIMP nsTransfer::Init(nsIURI *aSource, nsIURI *aTarget, const nsAString & aDisplayName, nsIMIMEInfo *aMIMEInfo, PRTime startTime, nsILocalFile *aTempFile, nsICancelable *aCancelable)
      91                 : {
      92                 :     return NS_ERROR_NOT_IMPLEMENTED;
      93                 : }
      94                 : 
      95                 : /* End of implementation class template. */
      96                 : #endif
      97                 : 
      98                 : /**
      99                 :  * A component with this contract ID will be created each time a download is
     100                 :  * started, and nsITransfer::Init will be called on it and an observer will be set.
     101                 :  *
     102                 :  * Notifications of the download progress will happen via
     103                 :  * nsIWebProgressListener/nsIWebProgressListener2.
     104                 :  *
     105                 :  * INTERFACES THAT MUST BE IMPLEMENTED:
     106                 :  *   nsITransfer
     107                 :  *   nsIWebProgressListener
     108                 :  *   nsIWebProgressListener2
     109                 :  *
     110                 :  * XXX move this to nsEmbedCID.h once the interfaces (and the contract ID) are
     111                 :  * frozen.
     112                 :  */
     113                 : #define NS_TRANSFER_CONTRACTID "@mozilla.org/transfer;1"
     114                 : 
     115                 : #endif /* __gen_nsITransfer_h__ */

Generated by: LCOV version 1.7