Back to index

lightning-sunbird  0.9+nobinonly
Functions
UDownload.cpp File Reference
#include "UDownload.h"
#include "nsIExternalHelperAppService.h"
#include "nsILocalFIleMac.h"
#include "nsDirectoryServiceDefs.h"
#include "nsDirectoryServiceUtils.h"
#include "nsIRequest.h"
#include "netCore.h"
#include "UDownloadDisplay.h"
#include "UMacUnicode.h"
#include "UNavServicesDialogs.h"

Go to the source code of this file.

Functions

 NS_IMPL_ISUPPORTS4 (CDownload, nsIDownload, nsITransfer, nsIWebProgressListener, nsIWebProgressListener2) NS_IMETHODIMP CDownload

Function Documentation

Definition at line 72 of file UDownload.cpp.

{
    try {
        mSource = aSource;
        mDestination = aTarget;
        mStartTime = startTime;
        mPercentComplete = 0;
        // We have to break this circular ref when the download is done
        mCancelable = aCancelable;
        EnsureProgressView();
        sProgressView->AddDownloadItem(this);
    }
    catch (...) {
        return NS_ERROR_FAILURE;
    }
    return NS_OK;
}

Here is the call graph for this function: