Files
iDescriptor/src/appdownloadbasedialog.h
T
2025-07-27 09:15:54 +00:00

33 lines
925 B
C++

#ifndef APPDOWNLOADBASEDIALOG_H
#define APPDOWNLOADBASEDIALOG_H
#include <QDialog>
#include <QProcess>
#include <QProgressBar>
#include <QPushButton>
#include <QVBoxLayout>
class AppDownloadBaseDialog : public QDialog
{
Q_OBJECT
public:
explicit AppDownloadBaseDialog(const QString &appName,
QWidget *parent = nullptr);
protected:
void startDownloadProcess(const QStringList &args,
const QString &workingDir, int index);
void checkDownloadProgress(const QString &logFilePath,
const QString &appName,
const QString &outputDir);
void addProgressBar(int index);
QProgressBar *m_progressBar;
QTimer *m_progressTimer;
QProcess *m_downloadProcess;
QString m_appName;
QPushButton *m_actionButton;
QVBoxLayout *m_layout;
};
#endif // APPDOWNLOADBASEDIALOG_H