ImagingTools Core SDK
IDownloader.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// ACF includes
5#include <istd/IPolymorphic.h>
6
7// ibase includes
8#include<ibase/IProgressManager.h>
9
10
11namespace imtupdate
12{
13
14
15class IDownloader: virtual public istd::IPolymorphic
16{
17public:
18 enum DownloadStatus
19 {
20 DS_OK,
21 DS_CANCELED,
22 DS_FAILED
23 };
24
25 virtual DownloadStatus DownloadFile(
26 const QString& remoteLink,
27 const QString& localFilePath,
28 bool contunieDownload = false,
29 ibase::IProgressManager* progressManagerPtr = nullptr) const = 0;
30};
31
32
33} // namespace svnupdate
34