Files
qt5-legatus-legacy/Lts/Plugins/TakeHomePackageManager/THP2/Common2/tpm_process_dialog.h
T
2026-08-13 18:33:10 +02:00

52 lines
1.2 KiB
C++
Executable File

#pragma once
/**
* @RDE_HEADER@
* $Id: tpm_exported_scripts_model.h 53111 2021-03-22 08:21:29Z wille_m $
* $HeadURL: svn://slssvn/TDS/branches/product/iterations/21_03_salted_caramel/Lts/Plugins/TakeHomePackageManager/tpm_exported_scripts_model.h $
* $Author: wille_m $
*
* Created by Mike Wille, SLTE, 2024-01-11
*/
#include <Common2/thp2common_export.h>
#include <QWidget>
namespace Ui
{
class ProcessOverlay;
}
namespace TakeHomePackageManager
{
class THP2COMMON_EXPORT ProcessOverlay : public QWidget
{
Q_OBJECT
public:
ProcessOverlay(QWidget *parent = nullptr);
~ProcessOverlay();
void setStarted(int fileCount, qint64 bytesTotalAll);
void setNewFile(int currentFile, qint64 bytesTotalFile, const QString &filename);
void setStatus(const QString &text);
void setFileProgress(qint64 bytesCopiedFile, qint64 bytesCopiedAll);
void setCancelEnabled(bool enabled = true);
signals:
void signalCancel();
private:
qint64 m_bytesTotalFile = 0;
int m_currentFile = 0;
int m_fileCount = 0;
qint64 m_bytesTotalAll = 0;
double m_progressFiles = 0;
Ui::ProcessOverlay *m_ui;
bool m_decompressing { false };
};
} // namespace TakehomePackageManager