LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIDownloadManager.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/nsIDownloadManager.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIDownloadManager_h__
       6             : #define __gen_nsIDownloadManager_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 nsIFile; /* forward declaration */
      20             : 
      21             : class nsIDownload; /* forward declaration */
      22             : 
      23             : class nsICancelable; /* forward declaration */
      24             : 
      25             : class nsIMIMEInfo; /* forward declaration */
      26             : 
      27             : class nsIDownloadProgressListener; /* forward declaration */
      28             : 
      29             : class nsISimpleEnumerator; /* forward declaration */
      30             : 
      31             : class mozIStorageConnection; /* forward declaration */
      32             : 
      33             : 
      34             : /* starting interface:    nsIDownloadManagerResult */
      35             : #define NS_IDOWNLOADMANAGERRESULT_IID_STR "0c07ffeb-791b-49f3-ae38-2c331fd55a52"
      36             : 
      37             : #define NS_IDOWNLOADMANAGERRESULT_IID \
      38             :   {0x0c07ffeb, 0x791b, 0x49f3, \
      39             :     { 0xae, 0x38, 0x2c, 0x33, 0x1f, 0xd5, 0x5a, 0x52 }}
      40             : 
      41             : class NS_NO_VTABLE nsIDownloadManagerResult : public nsISupports {
      42             :  public:
      43             : 
      44             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOWNLOADMANAGERRESULT_IID)
      45             : 
      46             :   /* void handleResult (in nsresult aStatus, in nsIDownload aDownload); */
      47             :   NS_IMETHOD HandleResult(nsresult aStatus, nsIDownload *aDownload) = 0;
      48             : 
      49             : };
      50             : 
      51             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDownloadManagerResult, NS_IDOWNLOADMANAGERRESULT_IID)
      52             : 
      53             : /* Use this macro when declaring classes that implement this interface. */
      54             : #define NS_DECL_NSIDOWNLOADMANAGERRESULT \
      55             :   NS_IMETHOD HandleResult(nsresult aStatus, nsIDownload *aDownload) override; 
      56             : 
      57             : /* Use this macro when declaring the members of this interface when the
      58             :    class doesn't implement the interface. This is useful for forwarding. */
      59             : #define NS_DECL_NON_VIRTUAL_NSIDOWNLOADMANAGERRESULT \
      60             :   nsresult HandleResult(nsresult aStatus, nsIDownload *aDownload); 
      61             : 
      62             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      63             : #define NS_FORWARD_NSIDOWNLOADMANAGERRESULT(_to) \
      64             :   NS_IMETHOD HandleResult(nsresult aStatus, nsIDownload *aDownload) override { return _to HandleResult(aStatus, aDownload); } 
      65             : 
      66             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      67             : #define NS_FORWARD_SAFE_NSIDOWNLOADMANAGERRESULT(_to) \
      68             :   NS_IMETHOD HandleResult(nsresult aStatus, nsIDownload *aDownload) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleResult(aStatus, aDownload); } 
      69             : 
      70             : #if 0
      71             : /* Use the code below as a template for the implementation class for this interface. */
      72             : 
      73             : /* Header file */
      74             : class nsDownloadManagerResult : public nsIDownloadManagerResult
      75             : {
      76             : public:
      77             :   NS_DECL_ISUPPORTS
      78             :   NS_DECL_NSIDOWNLOADMANAGERRESULT
      79             : 
      80             :   nsDownloadManagerResult();
      81             : 
      82             : private:
      83             :   ~nsDownloadManagerResult();
      84             : 
      85             : protected:
      86             :   /* additional members */
      87             : };
      88             : 
      89             : /* Implementation file */
      90             : NS_IMPL_ISUPPORTS(nsDownloadManagerResult, nsIDownloadManagerResult)
      91             : 
      92             : nsDownloadManagerResult::nsDownloadManagerResult()
      93             : {
      94             :   /* member initializers and constructor code */
      95             : }
      96             : 
      97             : nsDownloadManagerResult::~nsDownloadManagerResult()
      98             : {
      99             :   /* destructor code */
     100             : }
     101             : 
     102             : /* void handleResult (in nsresult aStatus, in nsIDownload aDownload); */
     103             : NS_IMETHODIMP nsDownloadManagerResult::HandleResult(nsresult aStatus, nsIDownload *aDownload)
     104             : {
     105             :     return NS_ERROR_NOT_IMPLEMENTED;
     106             : }
     107             : 
     108             : /* End of implementation class template. */
     109             : #endif
     110             : 
     111             : 
     112             : /* starting interface:    nsIDownloadManager */
     113             : #define NS_IDOWNLOADMANAGER_IID_STR "b29aac15-7ec4-4ab3-a53b-08f78aed3b34"
     114             : 
     115             : #define NS_IDOWNLOADMANAGER_IID \
     116             :   {0xb29aac15, 0x7ec4, 0x4ab3, \
     117             :     { 0xa5, 0x3b, 0x08, 0xf7, 0x8a, 0xed, 0x3b, 0x34 }}
     118             : 
     119           0 : class NS_NO_VTABLE nsIDownloadManager : public nsISupports {
     120             :  public:
     121             : 
     122             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOWNLOADMANAGER_IID)
     123             : 
     124             :   enum {
     125             :     DOWNLOAD_TYPE_DOWNLOAD = 0,
     126             :     DOWNLOAD_NOTSTARTED = -1,
     127             :     DOWNLOAD_DOWNLOADING = 0,
     128             :     DOWNLOAD_FINISHED = 1,
     129             :     DOWNLOAD_FAILED = 2,
     130             :     DOWNLOAD_CANCELED = 3,
     131             :     DOWNLOAD_PAUSED = 4,
     132             :     DOWNLOAD_QUEUED = 5,
     133             :     DOWNLOAD_BLOCKED_PARENTAL = 6,
     134             :     DOWNLOAD_SCANNING = 7,
     135             :     DOWNLOAD_DIRTY = 8,
     136             :     DOWNLOAD_BLOCKED_POLICY = 9
     137             :   };
     138             : 
     139             :   /* nsIDownload addDownload (in short aDownloadType, in nsIURI aSource, in nsIURI aTarget, in AString aDisplayName, in nsIMIMEInfo aMIMEInfo, in PRTime aStartTime, in nsIFile aTempFile, in nsICancelable aCancelable, in boolean aIsPrivate); */
     140             :   NS_IMETHOD AddDownload(int16_t aDownloadType, nsIURI *aSource, nsIURI *aTarget, const nsAString & aDisplayName, nsIMIMEInfo *aMIMEInfo, PRTime aStartTime, nsIFile *aTempFile, nsICancelable *aCancelable, bool aIsPrivate, nsIDownload * *_retval) = 0;
     141             : 
     142             :   /* nsIDownload getDownload (in unsigned long aID); */
     143             :   NS_IMETHOD GetDownload(uint32_t aID, nsIDownload * *_retval) = 0;
     144             : 
     145             :   /* void getDownloadByGUID (in ACString aGUID, in nsIDownloadManagerResult aCallback); */
     146             :   NS_IMETHOD GetDownloadByGUID(const nsACString & aGUID, nsIDownloadManagerResult *aCallback) = 0;
     147             : 
     148             :   /* void cancelDownload (in unsigned long aID); */
     149             :   NS_IMETHOD CancelDownload(uint32_t aID) = 0;
     150             : 
     151             :   /* void removeDownload (in unsigned long aID); */
     152             :   NS_IMETHOD RemoveDownload(uint32_t aID) = 0;
     153             : 
     154             :   /* void removeDownloadsByTimeframe (in long long aBeginTime, in long long aEndTime); */
     155             :   NS_IMETHOD RemoveDownloadsByTimeframe(int64_t aBeginTime, int64_t aEndTime) = 0;
     156             : 
     157             :   /* void pauseDownload (in unsigned long aID); */
     158             :   NS_IMETHOD PauseDownload(uint32_t aID) = 0;
     159             : 
     160             :   /* void resumeDownload (in unsigned long aID); */
     161             :   NS_IMETHOD ResumeDownload(uint32_t aID) = 0;
     162             : 
     163             :   /* void retryDownload (in unsigned long aID); */
     164             :   NS_IMETHOD RetryDownload(uint32_t aID) = 0;
     165             : 
     166             :   /* readonly attribute mozIStorageConnection DBConnection; */
     167             :   NS_IMETHOD GetDBConnection(mozIStorageConnection * *aDBConnection) = 0;
     168             : 
     169             :   /* readonly attribute mozIStorageConnection privateDBConnection; */
     170             :   NS_IMETHOD GetPrivateDBConnection(mozIStorageConnection * *aPrivateDBConnection) = 0;
     171             : 
     172             :   /* readonly attribute boolean canCleanUp; */
     173             :   NS_IMETHOD GetCanCleanUp(bool *aCanCleanUp) = 0;
     174             : 
     175             :   /* readonly attribute boolean canCleanUpPrivate; */
     176             :   NS_IMETHOD GetCanCleanUpPrivate(bool *aCanCleanUpPrivate) = 0;
     177             : 
     178             :   /* void cleanUp (); */
     179             :   NS_IMETHOD CleanUp(void) = 0;
     180             : 
     181             :   /* void cleanUpPrivate (); */
     182             :   NS_IMETHOD CleanUpPrivate(void) = 0;
     183             : 
     184             :   /* readonly attribute long activeDownloadCount; */
     185             :   NS_IMETHOD GetActiveDownloadCount(int32_t *aActiveDownloadCount) = 0;
     186             : 
     187             :   /* readonly attribute long activePrivateDownloadCount; */
     188             :   NS_IMETHOD GetActivePrivateDownloadCount(int32_t *aActivePrivateDownloadCount) = 0;
     189             : 
     190             :   /* readonly attribute nsISimpleEnumerator activeDownloads; */
     191             :   NS_IMETHOD GetActiveDownloads(nsISimpleEnumerator * *aActiveDownloads) = 0;
     192             : 
     193             :   /* readonly attribute nsISimpleEnumerator activePrivateDownloads; */
     194             :   NS_IMETHOD GetActivePrivateDownloads(nsISimpleEnumerator * *aActivePrivateDownloads) = 0;
     195             : 
     196             :   /* void addListener (in nsIDownloadProgressListener aListener); */
     197             :   NS_IMETHOD AddListener(nsIDownloadProgressListener *aListener) = 0;
     198             : 
     199             :   /* void addPrivacyAwareListener (in nsIDownloadProgressListener aListener); */
     200             :   NS_IMETHOD AddPrivacyAwareListener(nsIDownloadProgressListener *aListener) = 0;
     201             : 
     202             :   /* void removeListener (in nsIDownloadProgressListener aListener); */
     203             :   NS_IMETHOD RemoveListener(nsIDownloadProgressListener *aListener) = 0;
     204             : 
     205             :   /* readonly attribute nsIFile defaultDownloadsDirectory; */
     206             :   NS_IMETHOD GetDefaultDownloadsDirectory(nsIFile * *aDefaultDownloadsDirectory) = 0;
     207             : 
     208             :   /* readonly attribute nsIFile userDownloadsDirectory; */
     209             :   NS_IMETHOD GetUserDownloadsDirectory(nsIFile * *aUserDownloadsDirectory) = 0;
     210             : 
     211             : };
     212             : 
     213             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDownloadManager, NS_IDOWNLOADMANAGER_IID)
     214             : 
     215             : /* Use this macro when declaring classes that implement this interface. */
     216             : #define NS_DECL_NSIDOWNLOADMANAGER \
     217             :   NS_IMETHOD AddDownload(int16_t aDownloadType, nsIURI *aSource, nsIURI *aTarget, const nsAString & aDisplayName, nsIMIMEInfo *aMIMEInfo, PRTime aStartTime, nsIFile *aTempFile, nsICancelable *aCancelable, bool aIsPrivate, nsIDownload * *_retval) override; \
     218             :   NS_IMETHOD GetDownload(uint32_t aID, nsIDownload * *_retval) override; \
     219             :   NS_IMETHOD GetDownloadByGUID(const nsACString & aGUID, nsIDownloadManagerResult *aCallback) override; \
     220             :   NS_IMETHOD CancelDownload(uint32_t aID) override; \
     221             :   NS_IMETHOD RemoveDownload(uint32_t aID) override; \
     222             :   NS_IMETHOD RemoveDownloadsByTimeframe(int64_t aBeginTime, int64_t aEndTime) override; \
     223             :   NS_IMETHOD PauseDownload(uint32_t aID) override; \
     224             :   NS_IMETHOD ResumeDownload(uint32_t aID) override; \
     225             :   NS_IMETHOD RetryDownload(uint32_t aID) override; \
     226             :   NS_IMETHOD GetDBConnection(mozIStorageConnection * *aDBConnection) override; \
     227             :   NS_IMETHOD GetPrivateDBConnection(mozIStorageConnection * *aPrivateDBConnection) override; \
     228             :   NS_IMETHOD GetCanCleanUp(bool *aCanCleanUp) override; \
     229             :   NS_IMETHOD GetCanCleanUpPrivate(bool *aCanCleanUpPrivate) override; \
     230             :   NS_IMETHOD CleanUp(void) override; \
     231             :   NS_IMETHOD CleanUpPrivate(void) override; \
     232             :   NS_IMETHOD GetActiveDownloadCount(int32_t *aActiveDownloadCount) override; \
     233             :   NS_IMETHOD GetActivePrivateDownloadCount(int32_t *aActivePrivateDownloadCount) override; \
     234             :   NS_IMETHOD GetActiveDownloads(nsISimpleEnumerator * *aActiveDownloads) override; \
     235             :   NS_IMETHOD GetActivePrivateDownloads(nsISimpleEnumerator * *aActivePrivateDownloads) override; \
     236             :   NS_IMETHOD AddListener(nsIDownloadProgressListener *aListener) override; \
     237             :   NS_IMETHOD AddPrivacyAwareListener(nsIDownloadProgressListener *aListener) override; \
     238             :   NS_IMETHOD RemoveListener(nsIDownloadProgressListener *aListener) override; \
     239             :   NS_IMETHOD GetDefaultDownloadsDirectory(nsIFile * *aDefaultDownloadsDirectory) override; \
     240             :   NS_IMETHOD GetUserDownloadsDirectory(nsIFile * *aUserDownloadsDirectory) override; 
     241             : 
     242             : /* Use this macro when declaring the members of this interface when the
     243             :    class doesn't implement the interface. This is useful for forwarding. */
     244             : #define NS_DECL_NON_VIRTUAL_NSIDOWNLOADMANAGER \
     245             :   nsresult AddDownload(int16_t aDownloadType, nsIURI *aSource, nsIURI *aTarget, const nsAString & aDisplayName, nsIMIMEInfo *aMIMEInfo, PRTime aStartTime, nsIFile *aTempFile, nsICancelable *aCancelable, bool aIsPrivate, nsIDownload * *_retval); \
     246             :   nsresult GetDownload(uint32_t aID, nsIDownload * *_retval); \
     247             :   nsresult GetDownloadByGUID(const nsACString & aGUID, nsIDownloadManagerResult *aCallback); \
     248             :   nsresult CancelDownload(uint32_t aID); \
     249             :   nsresult RemoveDownload(uint32_t aID); \
     250             :   nsresult RemoveDownloadsByTimeframe(int64_t aBeginTime, int64_t aEndTime); \
     251             :   nsresult PauseDownload(uint32_t aID); \
     252             :   nsresult ResumeDownload(uint32_t aID); \
     253             :   nsresult RetryDownload(uint32_t aID); \
     254             :   nsresult GetDBConnection(mozIStorageConnection * *aDBConnection); \
     255             :   nsresult GetPrivateDBConnection(mozIStorageConnection * *aPrivateDBConnection); \
     256             :   nsresult GetCanCleanUp(bool *aCanCleanUp); \
     257             :   nsresult GetCanCleanUpPrivate(bool *aCanCleanUpPrivate); \
     258             :   nsresult CleanUp(void); \
     259             :   nsresult CleanUpPrivate(void); \
     260             :   nsresult GetActiveDownloadCount(int32_t *aActiveDownloadCount); \
     261             :   nsresult GetActivePrivateDownloadCount(int32_t *aActivePrivateDownloadCount); \
     262             :   nsresult GetActiveDownloads(nsISimpleEnumerator * *aActiveDownloads); \
     263             :   nsresult GetActivePrivateDownloads(nsISimpleEnumerator * *aActivePrivateDownloads); \
     264             :   nsresult AddListener(nsIDownloadProgressListener *aListener); \
     265             :   nsresult AddPrivacyAwareListener(nsIDownloadProgressListener *aListener); \
     266             :   nsresult RemoveListener(nsIDownloadProgressListener *aListener); \
     267             :   nsresult GetDefaultDownloadsDirectory(nsIFile * *aDefaultDownloadsDirectory); \
     268             :   nsresult GetUserDownloadsDirectory(nsIFile * *aUserDownloadsDirectory); 
     269             : 
     270             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     271             : #define NS_FORWARD_NSIDOWNLOADMANAGER(_to) \
     272             :   NS_IMETHOD AddDownload(int16_t aDownloadType, nsIURI *aSource, nsIURI *aTarget, const nsAString & aDisplayName, nsIMIMEInfo *aMIMEInfo, PRTime aStartTime, nsIFile *aTempFile, nsICancelable *aCancelable, bool aIsPrivate, nsIDownload * *_retval) override { return _to AddDownload(aDownloadType, aSource, aTarget, aDisplayName, aMIMEInfo, aStartTime, aTempFile, aCancelable, aIsPrivate, _retval); } \
     273             :   NS_IMETHOD GetDownload(uint32_t aID, nsIDownload * *_retval) override { return _to GetDownload(aID, _retval); } \
     274             :   NS_IMETHOD GetDownloadByGUID(const nsACString & aGUID, nsIDownloadManagerResult *aCallback) override { return _to GetDownloadByGUID(aGUID, aCallback); } \
     275             :   NS_IMETHOD CancelDownload(uint32_t aID) override { return _to CancelDownload(aID); } \
     276             :   NS_IMETHOD RemoveDownload(uint32_t aID) override { return _to RemoveDownload(aID); } \
     277             :   NS_IMETHOD RemoveDownloadsByTimeframe(int64_t aBeginTime, int64_t aEndTime) override { return _to RemoveDownloadsByTimeframe(aBeginTime, aEndTime); } \
     278             :   NS_IMETHOD PauseDownload(uint32_t aID) override { return _to PauseDownload(aID); } \
     279             :   NS_IMETHOD ResumeDownload(uint32_t aID) override { return _to ResumeDownload(aID); } \
     280             :   NS_IMETHOD RetryDownload(uint32_t aID) override { return _to RetryDownload(aID); } \
     281             :   NS_IMETHOD GetDBConnection(mozIStorageConnection * *aDBConnection) override { return _to GetDBConnection(aDBConnection); } \
     282             :   NS_IMETHOD GetPrivateDBConnection(mozIStorageConnection * *aPrivateDBConnection) override { return _to GetPrivateDBConnection(aPrivateDBConnection); } \
     283             :   NS_IMETHOD GetCanCleanUp(bool *aCanCleanUp) override { return _to GetCanCleanUp(aCanCleanUp); } \
     284             :   NS_IMETHOD GetCanCleanUpPrivate(bool *aCanCleanUpPrivate) override { return _to GetCanCleanUpPrivate(aCanCleanUpPrivate); } \
     285             :   NS_IMETHOD CleanUp(void) override { return _to CleanUp(); } \
     286             :   NS_IMETHOD CleanUpPrivate(void) override { return _to CleanUpPrivate(); } \
     287             :   NS_IMETHOD GetActiveDownloadCount(int32_t *aActiveDownloadCount) override { return _to GetActiveDownloadCount(aActiveDownloadCount); } \
     288             :   NS_IMETHOD GetActivePrivateDownloadCount(int32_t *aActivePrivateDownloadCount) override { return _to GetActivePrivateDownloadCount(aActivePrivateDownloadCount); } \
     289             :   NS_IMETHOD GetActiveDownloads(nsISimpleEnumerator * *aActiveDownloads) override { return _to GetActiveDownloads(aActiveDownloads); } \
     290             :   NS_IMETHOD GetActivePrivateDownloads(nsISimpleEnumerator * *aActivePrivateDownloads) override { return _to GetActivePrivateDownloads(aActivePrivateDownloads); } \
     291             :   NS_IMETHOD AddListener(nsIDownloadProgressListener *aListener) override { return _to AddListener(aListener); } \
     292             :   NS_IMETHOD AddPrivacyAwareListener(nsIDownloadProgressListener *aListener) override { return _to AddPrivacyAwareListener(aListener); } \
     293             :   NS_IMETHOD RemoveListener(nsIDownloadProgressListener *aListener) override { return _to RemoveListener(aListener); } \
     294             :   NS_IMETHOD GetDefaultDownloadsDirectory(nsIFile * *aDefaultDownloadsDirectory) override { return _to GetDefaultDownloadsDirectory(aDefaultDownloadsDirectory); } \
     295             :   NS_IMETHOD GetUserDownloadsDirectory(nsIFile * *aUserDownloadsDirectory) override { return _to GetUserDownloadsDirectory(aUserDownloadsDirectory); } 
     296             : 
     297             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     298             : #define NS_FORWARD_SAFE_NSIDOWNLOADMANAGER(_to) \
     299             :   NS_IMETHOD AddDownload(int16_t aDownloadType, nsIURI *aSource, nsIURI *aTarget, const nsAString & aDisplayName, nsIMIMEInfo *aMIMEInfo, PRTime aStartTime, nsIFile *aTempFile, nsICancelable *aCancelable, bool aIsPrivate, nsIDownload * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDownload(aDownloadType, aSource, aTarget, aDisplayName, aMIMEInfo, aStartTime, aTempFile, aCancelable, aIsPrivate, _retval); } \
     300             :   NS_IMETHOD GetDownload(uint32_t aID, nsIDownload * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDownload(aID, _retval); } \
     301             :   NS_IMETHOD GetDownloadByGUID(const nsACString & aGUID, nsIDownloadManagerResult *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDownloadByGUID(aGUID, aCallback); } \
     302             :   NS_IMETHOD CancelDownload(uint32_t aID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CancelDownload(aID); } \
     303             :   NS_IMETHOD RemoveDownload(uint32_t aID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveDownload(aID); } \
     304             :   NS_IMETHOD RemoveDownloadsByTimeframe(int64_t aBeginTime, int64_t aEndTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveDownloadsByTimeframe(aBeginTime, aEndTime); } \
     305             :   NS_IMETHOD PauseDownload(uint32_t aID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PauseDownload(aID); } \
     306             :   NS_IMETHOD ResumeDownload(uint32_t aID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResumeDownload(aID); } \
     307             :   NS_IMETHOD RetryDownload(uint32_t aID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RetryDownload(aID); } \
     308             :   NS_IMETHOD GetDBConnection(mozIStorageConnection * *aDBConnection) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDBConnection(aDBConnection); } \
     309             :   NS_IMETHOD GetPrivateDBConnection(mozIStorageConnection * *aPrivateDBConnection) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrivateDBConnection(aPrivateDBConnection); } \
     310             :   NS_IMETHOD GetCanCleanUp(bool *aCanCleanUp) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanCleanUp(aCanCleanUp); } \
     311             :   NS_IMETHOD GetCanCleanUpPrivate(bool *aCanCleanUpPrivate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanCleanUpPrivate(aCanCleanUpPrivate); } \
     312             :   NS_IMETHOD CleanUp(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CleanUp(); } \
     313             :   NS_IMETHOD CleanUpPrivate(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CleanUpPrivate(); } \
     314             :   NS_IMETHOD GetActiveDownloadCount(int32_t *aActiveDownloadCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActiveDownloadCount(aActiveDownloadCount); } \
     315             :   NS_IMETHOD GetActivePrivateDownloadCount(int32_t *aActivePrivateDownloadCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActivePrivateDownloadCount(aActivePrivateDownloadCount); } \
     316             :   NS_IMETHOD GetActiveDownloads(nsISimpleEnumerator * *aActiveDownloads) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActiveDownloads(aActiveDownloads); } \
     317             :   NS_IMETHOD GetActivePrivateDownloads(nsISimpleEnumerator * *aActivePrivateDownloads) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActivePrivateDownloads(aActivePrivateDownloads); } \
     318             :   NS_IMETHOD AddListener(nsIDownloadProgressListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddListener(aListener); } \
     319             :   NS_IMETHOD AddPrivacyAwareListener(nsIDownloadProgressListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddPrivacyAwareListener(aListener); } \
     320             :   NS_IMETHOD RemoveListener(nsIDownloadProgressListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveListener(aListener); } \
     321             :   NS_IMETHOD GetDefaultDownloadsDirectory(nsIFile * *aDefaultDownloadsDirectory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultDownloadsDirectory(aDefaultDownloadsDirectory); } \
     322             :   NS_IMETHOD GetUserDownloadsDirectory(nsIFile * *aUserDownloadsDirectory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserDownloadsDirectory(aUserDownloadsDirectory); } 
     323             : 
     324             : #if 0
     325             : /* Use the code below as a template for the implementation class for this interface. */
     326             : 
     327             : /* Header file */
     328             : class nsDownloadManager : public nsIDownloadManager
     329             : {
     330             : public:
     331             :   NS_DECL_ISUPPORTS
     332             :   NS_DECL_NSIDOWNLOADMANAGER
     333             : 
     334             :   nsDownloadManager();
     335             : 
     336             : private:
     337             :   ~nsDownloadManager();
     338             : 
     339             : protected:
     340             :   /* additional members */
     341             : };
     342             : 
     343             : /* Implementation file */
     344             : NS_IMPL_ISUPPORTS(nsDownloadManager, nsIDownloadManager)
     345             : 
     346             : nsDownloadManager::nsDownloadManager()
     347             : {
     348             :   /* member initializers and constructor code */
     349             : }
     350             : 
     351             : nsDownloadManager::~nsDownloadManager()
     352             : {
     353             :   /* destructor code */
     354             : }
     355             : 
     356             : /* nsIDownload addDownload (in short aDownloadType, in nsIURI aSource, in nsIURI aTarget, in AString aDisplayName, in nsIMIMEInfo aMIMEInfo, in PRTime aStartTime, in nsIFile aTempFile, in nsICancelable aCancelable, in boolean aIsPrivate); */
     357             : NS_IMETHODIMP nsDownloadManager::AddDownload(int16_t aDownloadType, nsIURI *aSource, nsIURI *aTarget, const nsAString & aDisplayName, nsIMIMEInfo *aMIMEInfo, PRTime aStartTime, nsIFile *aTempFile, nsICancelable *aCancelable, bool aIsPrivate, nsIDownload * *_retval)
     358             : {
     359             :     return NS_ERROR_NOT_IMPLEMENTED;
     360             : }
     361             : 
     362             : /* nsIDownload getDownload (in unsigned long aID); */
     363             : NS_IMETHODIMP nsDownloadManager::GetDownload(uint32_t aID, nsIDownload * *_retval)
     364             : {
     365             :     return NS_ERROR_NOT_IMPLEMENTED;
     366             : }
     367             : 
     368             : /* void getDownloadByGUID (in ACString aGUID, in nsIDownloadManagerResult aCallback); */
     369             : NS_IMETHODIMP nsDownloadManager::GetDownloadByGUID(const nsACString & aGUID, nsIDownloadManagerResult *aCallback)
     370             : {
     371             :     return NS_ERROR_NOT_IMPLEMENTED;
     372             : }
     373             : 
     374             : /* void cancelDownload (in unsigned long aID); */
     375             : NS_IMETHODIMP nsDownloadManager::CancelDownload(uint32_t aID)
     376             : {
     377             :     return NS_ERROR_NOT_IMPLEMENTED;
     378             : }
     379             : 
     380             : /* void removeDownload (in unsigned long aID); */
     381             : NS_IMETHODIMP nsDownloadManager::RemoveDownload(uint32_t aID)
     382             : {
     383             :     return NS_ERROR_NOT_IMPLEMENTED;
     384             : }
     385             : 
     386             : /* void removeDownloadsByTimeframe (in long long aBeginTime, in long long aEndTime); */
     387             : NS_IMETHODIMP nsDownloadManager::RemoveDownloadsByTimeframe(int64_t aBeginTime, int64_t aEndTime)
     388             : {
     389             :     return NS_ERROR_NOT_IMPLEMENTED;
     390             : }
     391             : 
     392             : /* void pauseDownload (in unsigned long aID); */
     393             : NS_IMETHODIMP nsDownloadManager::PauseDownload(uint32_t aID)
     394             : {
     395             :     return NS_ERROR_NOT_IMPLEMENTED;
     396             : }
     397             : 
     398             : /* void resumeDownload (in unsigned long aID); */
     399             : NS_IMETHODIMP nsDownloadManager::ResumeDownload(uint32_t aID)
     400             : {
     401             :     return NS_ERROR_NOT_IMPLEMENTED;
     402             : }
     403             : 
     404             : /* void retryDownload (in unsigned long aID); */
     405             : NS_IMETHODIMP nsDownloadManager::RetryDownload(uint32_t aID)
     406             : {
     407             :     return NS_ERROR_NOT_IMPLEMENTED;
     408             : }
     409             : 
     410             : /* readonly attribute mozIStorageConnection DBConnection; */
     411             : NS_IMETHODIMP nsDownloadManager::GetDBConnection(mozIStorageConnection * *aDBConnection)
     412             : {
     413             :     return NS_ERROR_NOT_IMPLEMENTED;
     414             : }
     415             : 
     416             : /* readonly attribute mozIStorageConnection privateDBConnection; */
     417             : NS_IMETHODIMP nsDownloadManager::GetPrivateDBConnection(mozIStorageConnection * *aPrivateDBConnection)
     418             : {
     419             :     return NS_ERROR_NOT_IMPLEMENTED;
     420             : }
     421             : 
     422             : /* readonly attribute boolean canCleanUp; */
     423             : NS_IMETHODIMP nsDownloadManager::GetCanCleanUp(bool *aCanCleanUp)
     424             : {
     425             :     return NS_ERROR_NOT_IMPLEMENTED;
     426             : }
     427             : 
     428             : /* readonly attribute boolean canCleanUpPrivate; */
     429             : NS_IMETHODIMP nsDownloadManager::GetCanCleanUpPrivate(bool *aCanCleanUpPrivate)
     430             : {
     431             :     return NS_ERROR_NOT_IMPLEMENTED;
     432             : }
     433             : 
     434             : /* void cleanUp (); */
     435             : NS_IMETHODIMP nsDownloadManager::CleanUp()
     436             : {
     437             :     return NS_ERROR_NOT_IMPLEMENTED;
     438             : }
     439             : 
     440             : /* void cleanUpPrivate (); */
     441             : NS_IMETHODIMP nsDownloadManager::CleanUpPrivate()
     442             : {
     443             :     return NS_ERROR_NOT_IMPLEMENTED;
     444             : }
     445             : 
     446             : /* readonly attribute long activeDownloadCount; */
     447             : NS_IMETHODIMP nsDownloadManager::GetActiveDownloadCount(int32_t *aActiveDownloadCount)
     448             : {
     449             :     return NS_ERROR_NOT_IMPLEMENTED;
     450             : }
     451             : 
     452             : /* readonly attribute long activePrivateDownloadCount; */
     453             : NS_IMETHODIMP nsDownloadManager::GetActivePrivateDownloadCount(int32_t *aActivePrivateDownloadCount)
     454             : {
     455             :     return NS_ERROR_NOT_IMPLEMENTED;
     456             : }
     457             : 
     458             : /* readonly attribute nsISimpleEnumerator activeDownloads; */
     459             : NS_IMETHODIMP nsDownloadManager::GetActiveDownloads(nsISimpleEnumerator * *aActiveDownloads)
     460             : {
     461             :     return NS_ERROR_NOT_IMPLEMENTED;
     462             : }
     463             : 
     464             : /* readonly attribute nsISimpleEnumerator activePrivateDownloads; */
     465             : NS_IMETHODIMP nsDownloadManager::GetActivePrivateDownloads(nsISimpleEnumerator * *aActivePrivateDownloads)
     466             : {
     467             :     return NS_ERROR_NOT_IMPLEMENTED;
     468             : }
     469             : 
     470             : /* void addListener (in nsIDownloadProgressListener aListener); */
     471             : NS_IMETHODIMP nsDownloadManager::AddListener(nsIDownloadProgressListener *aListener)
     472             : {
     473             :     return NS_ERROR_NOT_IMPLEMENTED;
     474             : }
     475             : 
     476             : /* void addPrivacyAwareListener (in nsIDownloadProgressListener aListener); */
     477             : NS_IMETHODIMP nsDownloadManager::AddPrivacyAwareListener(nsIDownloadProgressListener *aListener)
     478             : {
     479             :     return NS_ERROR_NOT_IMPLEMENTED;
     480             : }
     481             : 
     482             : /* void removeListener (in nsIDownloadProgressListener aListener); */
     483             : NS_IMETHODIMP nsDownloadManager::RemoveListener(nsIDownloadProgressListener *aListener)
     484             : {
     485             :     return NS_ERROR_NOT_IMPLEMENTED;
     486             : }
     487             : 
     488             : /* readonly attribute nsIFile defaultDownloadsDirectory; */
     489             : NS_IMETHODIMP nsDownloadManager::GetDefaultDownloadsDirectory(nsIFile * *aDefaultDownloadsDirectory)
     490             : {
     491             :     return NS_ERROR_NOT_IMPLEMENTED;
     492             : }
     493             : 
     494             : /* readonly attribute nsIFile userDownloadsDirectory; */
     495             : NS_IMETHODIMP nsDownloadManager::GetUserDownloadsDirectory(nsIFile * *aUserDownloadsDirectory)
     496             : {
     497             :     return NS_ERROR_NOT_IMPLEMENTED;
     498             : }
     499             : 
     500             : /* End of implementation class template. */
     501             : #endif
     502             : 
     503             : 
     504             : #endif /* __gen_nsIDownloadManager_h__ */

Generated by: LCOV version 1.13