ImagingTools Core SDK
CHttpFileDownloaderComp.h
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ImtCore-Commercial
2#pragma once
3
4
5// ACF includes
6#include<ilog/TLoggerCompWrap.h>
7
8// imtupdate includes
9#include<imtupdate/IDownloader.h>
10
11
12namespace imtupdate
13{
14
15
16class CHttpFileDownloaderComp: public ilog::CLoggerComponentBase,
17 virtual public IDownloader
18{
19public:
20 typedef ilog::CLoggerComponentBase BaseClass;
21
22 I_BEGIN_COMPONENT(CHttpFileDownloaderComp);
23 I_REGISTER_INTERFACE(IDownloader);
24 I_END_COMPONENT;
25
26 // reimplemented (IDownloader)
27 virtual DownloadStatus DownloadFile(
28 const QString& remoteLink,
29 const QString& localFilePath,
30 bool contunieDownload = false,
31 ibase::IProgressManager* progressManagerPtr = nullptr) const override;
32};
33
34
35} // namespace imtupdate
36