#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 #include 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