8 #include "ui_downloaddialog.h"
10 using namespace swift::misc::network;
25 ui->comp_Download->setDownloadFile(remoteFile);
30 ui->comp_Download->setDownloadFiles(remoteFiles);
35 ui->comp_Download->triggerDownloadingOfFiles(delayMs);
44 if (guard.
isNull()) { return; }
45 ui->comp_Download->triggerDownloadingOfFiles(2500);
52 if (!ui->comp_Download->haveAllDownloadsCompleted())
54 const QString msg = QStringLiteral(
"Download ongoing. Do you want to abort it?");
59 ui->comp_Download->cancelOngoingDownloads();
CDownloadComponent as dialog.
void setDownloadFile(const swift::misc::network::CRemoteFile &remoteFile)
Set file to be downloaded.
void showAndStartDownloading()
Show and start the downloading.
void setMode(CDownloadComponent::Mode mode)
Set the mode.
void triggerDownloadingOfFiles(int delayMs)
Trigger downloading of the file.
void setDownloadFiles(const swift::misc::network::CRemoteFileList &remoteFiles)
Set files to be downloaded.
virtual ~CDownloadDialog()
Destructor.
const QString & getName() const
Name.
Value object encapsulating a list of remote files.
High level reusable GUI components.
QMessageBox::StandardButton question(QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton)
bool isNull() const const
WindowContextHelpButtonHint