LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIDownload.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/toolkit/components/downloads/nsIDownload.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIDownload_h__
       6                 : #define __gen_nsIDownload_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsITransfer_h__
      10                 : #include "nsITransfer.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 nsILocalFile; /* forward declaration */
      20                 : 
      21                 : class nsIObserver; /* forward declaration */
      22                 : 
      23                 : class nsICancelable; /* forward declaration */
      24                 : 
      25                 : class nsIWebProgressListener; /* forward declaration */
      26                 : 
      27                 : class nsIMIMEInfo; /* forward declaration */
      28                 : 
      29                 : 
      30                 : /* starting interface:    nsIDownload */
      31                 : #define NS_IDOWNLOAD_IID_STR "c891111e-92a6-47b8-bc46-874ebb61ac9d"
      32                 : 
      33                 : #define NS_IDOWNLOAD_IID \
      34                 :   {0xc891111e, 0x92a6, 0x47b8, \
      35                 :     { 0xbc, 0x46, 0x87, 0x4e, 0xbb, 0x61, 0xac, 0x9d }}
      36                 : 
      37              35 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDownload : public nsITransfer {
      38                 :  public: 
      39                 : 
      40                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOWNLOAD_IID)
      41                 : 
      42                 :   /* readonly attribute nsILocalFile targetFile; */
      43                 :   NS_SCRIPTABLE NS_IMETHOD GetTargetFile(nsILocalFile * *aTargetFile) = 0;
      44                 : 
      45                 :   /* readonly attribute long percentComplete; */
      46                 :   NS_SCRIPTABLE NS_IMETHOD GetPercentComplete(PRInt32 *aPercentComplete) = 0;
      47                 : 
      48                 :   /* readonly attribute long long amountTransferred; */
      49                 :   NS_SCRIPTABLE NS_IMETHOD GetAmountTransferred(PRInt64 *aAmountTransferred) = 0;
      50                 : 
      51                 :   /* readonly attribute long long size; */
      52                 :   NS_SCRIPTABLE NS_IMETHOD GetSize(PRInt64 *aSize) = 0;
      53                 : 
      54                 :   /* readonly attribute nsIURI source; */
      55                 :   NS_SCRIPTABLE NS_IMETHOD GetSource(nsIURI * *aSource) = 0;
      56                 : 
      57                 :   /* readonly attribute nsIURI target; */
      58                 :   NS_SCRIPTABLE NS_IMETHOD GetTarget(nsIURI * *aTarget) = 0;
      59                 : 
      60                 :   /* readonly attribute nsICancelable cancelable; */
      61                 :   NS_SCRIPTABLE NS_IMETHOD GetCancelable(nsICancelable * *aCancelable) = 0;
      62                 : 
      63                 :   /* readonly attribute AString displayName; */
      64                 :   NS_SCRIPTABLE NS_IMETHOD GetDisplayName(nsAString & aDisplayName) = 0;
      65                 : 
      66                 :   /* readonly attribute long long startTime; */
      67                 :   NS_SCRIPTABLE NS_IMETHOD GetStartTime(PRInt64 *aStartTime) = 0;
      68                 : 
      69                 :   /* readonly attribute double speed; */
      70                 :   NS_SCRIPTABLE NS_IMETHOD GetSpeed(double *aSpeed) = 0;
      71                 : 
      72                 :   /* readonly attribute nsIMIMEInfo MIMEInfo; */
      73                 :   NS_SCRIPTABLE NS_IMETHOD GetMIMEInfo(nsIMIMEInfo * *aMIMEInfo) = 0;
      74                 : 
      75                 :   /* readonly attribute unsigned long id; */
      76                 :   NS_SCRIPTABLE NS_IMETHOD GetId(PRUint32 *aId) = 0;
      77                 : 
      78                 :   /* readonly attribute short state; */
      79                 :   NS_SCRIPTABLE NS_IMETHOD GetState(PRInt16 *aState) = 0;
      80                 : 
      81                 :   /* readonly attribute nsIURI referrer; */
      82                 :   NS_SCRIPTABLE NS_IMETHOD GetReferrer(nsIURI * *aReferrer) = 0;
      83                 : 
      84                 :   /* readonly attribute boolean resumable; */
      85                 :   NS_SCRIPTABLE NS_IMETHOD GetResumable(bool *aResumable) = 0;
      86                 : 
      87                 : };
      88                 : 
      89                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDownload, NS_IDOWNLOAD_IID)
      90                 : 
      91                 : /* Use this macro when declaring classes that implement this interface. */
      92                 : #define NS_DECL_NSIDOWNLOAD \
      93                 :   NS_SCRIPTABLE NS_IMETHOD GetTargetFile(nsILocalFile * *aTargetFile); \
      94                 :   NS_SCRIPTABLE NS_IMETHOD GetPercentComplete(PRInt32 *aPercentComplete); \
      95                 :   NS_SCRIPTABLE NS_IMETHOD GetAmountTransferred(PRInt64 *aAmountTransferred); \
      96                 :   NS_SCRIPTABLE NS_IMETHOD GetSize(PRInt64 *aSize); \
      97                 :   NS_SCRIPTABLE NS_IMETHOD GetSource(nsIURI * *aSource); \
      98                 :   NS_SCRIPTABLE NS_IMETHOD GetTarget(nsIURI * *aTarget); \
      99                 :   NS_SCRIPTABLE NS_IMETHOD GetCancelable(nsICancelable * *aCancelable); \
     100                 :   NS_SCRIPTABLE NS_IMETHOD GetDisplayName(nsAString & aDisplayName); \
     101                 :   NS_SCRIPTABLE NS_IMETHOD GetStartTime(PRInt64 *aStartTime); \
     102                 :   NS_SCRIPTABLE NS_IMETHOD GetSpeed(double *aSpeed); \
     103                 :   NS_SCRIPTABLE NS_IMETHOD GetMIMEInfo(nsIMIMEInfo * *aMIMEInfo); \
     104                 :   NS_SCRIPTABLE NS_IMETHOD GetId(PRUint32 *aId); \
     105                 :   NS_SCRIPTABLE NS_IMETHOD GetState(PRInt16 *aState); \
     106                 :   NS_SCRIPTABLE NS_IMETHOD GetReferrer(nsIURI * *aReferrer); \
     107                 :   NS_SCRIPTABLE NS_IMETHOD GetResumable(bool *aResumable); 
     108                 : 
     109                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     110                 : #define NS_FORWARD_NSIDOWNLOAD(_to) \
     111                 :   NS_SCRIPTABLE NS_IMETHOD GetTargetFile(nsILocalFile * *aTargetFile) { return _to GetTargetFile(aTargetFile); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD GetPercentComplete(PRInt32 *aPercentComplete) { return _to GetPercentComplete(aPercentComplete); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD GetAmountTransferred(PRInt64 *aAmountTransferred) { return _to GetAmountTransferred(aAmountTransferred); } \
     114                 :   NS_SCRIPTABLE NS_IMETHOD GetSize(PRInt64 *aSize) { return _to GetSize(aSize); } \
     115                 :   NS_SCRIPTABLE NS_IMETHOD GetSource(nsIURI * *aSource) { return _to GetSource(aSource); } \
     116                 :   NS_SCRIPTABLE NS_IMETHOD GetTarget(nsIURI * *aTarget) { return _to GetTarget(aTarget); } \
     117                 :   NS_SCRIPTABLE NS_IMETHOD GetCancelable(nsICancelable * *aCancelable) { return _to GetCancelable(aCancelable); } \
     118                 :   NS_SCRIPTABLE NS_IMETHOD GetDisplayName(nsAString & aDisplayName) { return _to GetDisplayName(aDisplayName); } \
     119                 :   NS_SCRIPTABLE NS_IMETHOD GetStartTime(PRInt64 *aStartTime) { return _to GetStartTime(aStartTime); } \
     120                 :   NS_SCRIPTABLE NS_IMETHOD GetSpeed(double *aSpeed) { return _to GetSpeed(aSpeed); } \
     121                 :   NS_SCRIPTABLE NS_IMETHOD GetMIMEInfo(nsIMIMEInfo * *aMIMEInfo) { return _to GetMIMEInfo(aMIMEInfo); } \
     122                 :   NS_SCRIPTABLE NS_IMETHOD GetId(PRUint32 *aId) { return _to GetId(aId); } \
     123                 :   NS_SCRIPTABLE NS_IMETHOD GetState(PRInt16 *aState) { return _to GetState(aState); } \
     124                 :   NS_SCRIPTABLE NS_IMETHOD GetReferrer(nsIURI * *aReferrer) { return _to GetReferrer(aReferrer); } \
     125                 :   NS_SCRIPTABLE NS_IMETHOD GetResumable(bool *aResumable) { return _to GetResumable(aResumable); } 
     126                 : 
     127                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     128                 : #define NS_FORWARD_SAFE_NSIDOWNLOAD(_to) \
     129                 :   NS_SCRIPTABLE NS_IMETHOD GetTargetFile(nsILocalFile * *aTargetFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTargetFile(aTargetFile); } \
     130                 :   NS_SCRIPTABLE NS_IMETHOD GetPercentComplete(PRInt32 *aPercentComplete) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPercentComplete(aPercentComplete); } \
     131                 :   NS_SCRIPTABLE NS_IMETHOD GetAmountTransferred(PRInt64 *aAmountTransferred) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAmountTransferred(aAmountTransferred); } \
     132                 :   NS_SCRIPTABLE NS_IMETHOD GetSize(PRInt64 *aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \
     133                 :   NS_SCRIPTABLE NS_IMETHOD GetSource(nsIURI * *aSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSource(aSource); } \
     134                 :   NS_SCRIPTABLE NS_IMETHOD GetTarget(nsIURI * *aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTarget(aTarget); } \
     135                 :   NS_SCRIPTABLE NS_IMETHOD GetCancelable(nsICancelable * *aCancelable) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCancelable(aCancelable); } \
     136                 :   NS_SCRIPTABLE NS_IMETHOD GetDisplayName(nsAString & aDisplayName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayName(aDisplayName); } \
     137                 :   NS_SCRIPTABLE NS_IMETHOD GetStartTime(PRInt64 *aStartTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartTime(aStartTime); } \
     138                 :   NS_SCRIPTABLE NS_IMETHOD GetSpeed(double *aSpeed) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSpeed(aSpeed); } \
     139                 :   NS_SCRIPTABLE NS_IMETHOD GetMIMEInfo(nsIMIMEInfo * *aMIMEInfo) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMIMEInfo(aMIMEInfo); } \
     140                 :   NS_SCRIPTABLE NS_IMETHOD GetId(PRUint32 *aId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
     141                 :   NS_SCRIPTABLE NS_IMETHOD GetState(PRInt16 *aState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetState(aState); } \
     142                 :   NS_SCRIPTABLE NS_IMETHOD GetReferrer(nsIURI * *aReferrer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReferrer(aReferrer); } \
     143                 :   NS_SCRIPTABLE NS_IMETHOD GetResumable(bool *aResumable) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResumable(aResumable); } 
     144                 : 
     145                 : #if 0
     146                 : /* Use the code below as a template for the implementation class for this interface. */
     147                 : 
     148                 : /* Header file */
     149                 : class nsDownload : public nsIDownload
     150                 : {
     151                 : public:
     152                 :   NS_DECL_ISUPPORTS
     153                 :   NS_DECL_NSIDOWNLOAD
     154                 : 
     155                 :   nsDownload();
     156                 : 
     157                 : private:
     158                 :   ~nsDownload();
     159                 : 
     160                 : protected:
     161                 :   /* additional members */
     162                 : };
     163                 : 
     164                 : /* Implementation file */
     165                 : NS_IMPL_ISUPPORTS1(nsDownload, nsIDownload)
     166                 : 
     167                 : nsDownload::nsDownload()
     168                 : {
     169                 :   /* member initializers and constructor code */
     170                 : }
     171                 : 
     172                 : nsDownload::~nsDownload()
     173                 : {
     174                 :   /* destructor code */
     175                 : }
     176                 : 
     177                 : /* readonly attribute nsILocalFile targetFile; */
     178                 : NS_IMETHODIMP nsDownload::GetTargetFile(nsILocalFile * *aTargetFile)
     179                 : {
     180                 :     return NS_ERROR_NOT_IMPLEMENTED;
     181                 : }
     182                 : 
     183                 : /* readonly attribute long percentComplete; */
     184                 : NS_IMETHODIMP nsDownload::GetPercentComplete(PRInt32 *aPercentComplete)
     185                 : {
     186                 :     return NS_ERROR_NOT_IMPLEMENTED;
     187                 : }
     188                 : 
     189                 : /* readonly attribute long long amountTransferred; */
     190                 : NS_IMETHODIMP nsDownload::GetAmountTransferred(PRInt64 *aAmountTransferred)
     191                 : {
     192                 :     return NS_ERROR_NOT_IMPLEMENTED;
     193                 : }
     194                 : 
     195                 : /* readonly attribute long long size; */
     196                 : NS_IMETHODIMP nsDownload::GetSize(PRInt64 *aSize)
     197                 : {
     198                 :     return NS_ERROR_NOT_IMPLEMENTED;
     199                 : }
     200                 : 
     201                 : /* readonly attribute nsIURI source; */
     202                 : NS_IMETHODIMP nsDownload::GetSource(nsIURI * *aSource)
     203                 : {
     204                 :     return NS_ERROR_NOT_IMPLEMENTED;
     205                 : }
     206                 : 
     207                 : /* readonly attribute nsIURI target; */
     208                 : NS_IMETHODIMP nsDownload::GetTarget(nsIURI * *aTarget)
     209                 : {
     210                 :     return NS_ERROR_NOT_IMPLEMENTED;
     211                 : }
     212                 : 
     213                 : /* readonly attribute nsICancelable cancelable; */
     214                 : NS_IMETHODIMP nsDownload::GetCancelable(nsICancelable * *aCancelable)
     215                 : {
     216                 :     return NS_ERROR_NOT_IMPLEMENTED;
     217                 : }
     218                 : 
     219                 : /* readonly attribute AString displayName; */
     220                 : NS_IMETHODIMP nsDownload::GetDisplayName(nsAString & aDisplayName)
     221                 : {
     222                 :     return NS_ERROR_NOT_IMPLEMENTED;
     223                 : }
     224                 : 
     225                 : /* readonly attribute long long startTime; */
     226                 : NS_IMETHODIMP nsDownload::GetStartTime(PRInt64 *aStartTime)
     227                 : {
     228                 :     return NS_ERROR_NOT_IMPLEMENTED;
     229                 : }
     230                 : 
     231                 : /* readonly attribute double speed; */
     232                 : NS_IMETHODIMP nsDownload::GetSpeed(double *aSpeed)
     233                 : {
     234                 :     return NS_ERROR_NOT_IMPLEMENTED;
     235                 : }
     236                 : 
     237                 : /* readonly attribute nsIMIMEInfo MIMEInfo; */
     238                 : NS_IMETHODIMP nsDownload::GetMIMEInfo(nsIMIMEInfo * *aMIMEInfo)
     239                 : {
     240                 :     return NS_ERROR_NOT_IMPLEMENTED;
     241                 : }
     242                 : 
     243                 : /* readonly attribute unsigned long id; */
     244                 : NS_IMETHODIMP nsDownload::GetId(PRUint32 *aId)
     245                 : {
     246                 :     return NS_ERROR_NOT_IMPLEMENTED;
     247                 : }
     248                 : 
     249                 : /* readonly attribute short state; */
     250                 : NS_IMETHODIMP nsDownload::GetState(PRInt16 *aState)
     251                 : {
     252                 :     return NS_ERROR_NOT_IMPLEMENTED;
     253                 : }
     254                 : 
     255                 : /* readonly attribute nsIURI referrer; */
     256                 : NS_IMETHODIMP nsDownload::GetReferrer(nsIURI * *aReferrer)
     257                 : {
     258                 :     return NS_ERROR_NOT_IMPLEMENTED;
     259                 : }
     260                 : 
     261                 : /* readonly attribute boolean resumable; */
     262                 : NS_IMETHODIMP nsDownload::GetResumable(bool *aResumable)
     263                 : {
     264                 :     return NS_ERROR_NOT_IMPLEMENTED;
     265                 : }
     266                 : 
     267                 : /* End of implementation class template. */
     268                 : #endif
     269                 : 
     270                 : // {E3FA9D0A-1DD1-11B2-BDEF-8C720B597445}
     271                 : #define NS_DOWNLOAD_CID \
     272                 :     { 0xe3fa9d0a, 0x1dd1, 0x11b2, { 0xbd, 0xef, 0x8c, 0x72, 0x0b, 0x59, 0x74, 0x45 } }
     273                 : 
     274                 : #endif /* __gen_nsIDownload_h__ */

Generated by: LCOV version 1.7