diff options
author | Thomas Preud'homme <robotux@celest.fr> | 2020-08-11 22:35:12 +0100 |
---|---|---|
committer | Thomas Preud'homme <robotux@celest.fr> | 2020-08-11 22:35:12 +0100 |
commit | 3ac113857071fc1f225b2e1b42547269e568c6b7 (patch) | |
tree | 8b28dd9c44a0d3c7ab8187cd8d8f19d47591d813 /plugins/CopyEngine/Ultracopier-Spec/DebugDialog.h | |
parent | 9b10c21f5cad0e2ec27d23c59e65af7141a226f3 (diff) |
New upstream version 2.2.4.4
Diffstat (limited to 'plugins/CopyEngine/Ultracopier-Spec/DebugDialog.h')
-rwxr-xr-x | plugins/CopyEngine/Ultracopier-Spec/DebugDialog.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/plugins/CopyEngine/Ultracopier-Spec/DebugDialog.h b/plugins/CopyEngine/Ultracopier-Spec/DebugDialog.h new file mode 100755 index 0000000..0da388e --- /dev/null +++ b/plugins/CopyEngine/Ultracopier-Spec/DebugDialog.h @@ -0,0 +1,48 @@ +/** \file debugDialog.h +\brief Define the dialog to have debug information +\author alpha_one_x86 +\licence GPL3, see the file COPYING */ + +#ifndef DEBUGDAILOG_H +#define DEBUGDAILOG_H + +#include "Environment.h" + +#ifdef ULTRACOPIER_PLUGIN_DEBUG_WINDOW +#include <QWidget> +#include <QTimer> + +namespace Ui { + class debugDialog; +} + +class CopyEngine; + +/// \brief class to the dialog to have debug information +class DebugDialog : public QWidget +{ + Q_OBJECT +public: + explicit DebugDialog(QWidget *parent = 0); + ~DebugDialog(); + /// \brief to set the transfer list, limited in result to not slow down the application + void setTransferList(const std::vector<std::string> &list); + /// \brief show the transfer thread, it show be a thread pool in normal time + void setTransferThreadList(const std::vector<std::string> &list); + /// \brief show how many transfer is active + void setActiveTransfer(const int &activeTransfer); + /// \brief show many many inode is manipulated + void setInodeUsage(const int &inodeUsage); + + CopyEngine *copyEngine; +private: + Ui::debugDialog *ui; + QTimer timer; + +private slots: + void updateOnTimer(); +}; + +#endif // ULTRACOPIER_PLUGIN_DEBUG_WINDOW + +#endif // DEBUGDAILOG_H |