diff options
Diffstat (limited to 'plugins-unmaintained/CopyEngine/Ultracopier-Qt/FileErrorDialog.h')
-rwxr-xr-x | plugins-unmaintained/CopyEngine/Ultracopier-Qt/FileErrorDialog.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/plugins-unmaintained/CopyEngine/Ultracopier-Qt/FileErrorDialog.h b/plugins-unmaintained/CopyEngine/Ultracopier-Qt/FileErrorDialog.h new file mode 100755 index 0000000..133a8b0 --- /dev/null +++ b/plugins-unmaintained/CopyEngine/Ultracopier-Qt/FileErrorDialog.h @@ -0,0 +1,51 @@ +/** \file fileErrorDialog.h +\brief Define the dialog error on the file +\author alpha_one_x86 +\licence GPL3, see the file COPYING */ + +#include <QDialog> +#include <QWidget> +#include <QString> +#include <QDateTime> +#include <QFileInfo> +#include "Environment.h" + +#ifndef FILEERRORDIALOG_H +#define FILEERRORDIALOG_H + + + +namespace Ui { + class fileErrorDialog; +} + +/// \brief to show error dialog, and ask what do +class FileErrorDialog : public QDialog +{ + Q_OBJECT +public: + /// \brief create the object and pass all the informations to it + explicit FileErrorDialog(QWidget *parent,QFileInfo fileInfo,std::string errorString,const ErrorType &errorType); + ~FileErrorDialog(); + /// \brief return the the always checkbox is checked + bool getAlways(); + /// \brief return the action clicked + FileErrorAction getAction(); +protected: + void changeEvent(QEvent *e); + static bool isInAdmin; +private slots: + void on_PutToBottom_clicked(); + void on_Retry_clicked(); + void on_Skip_clicked(); + void on_Cancel_clicked(); + void on_checkBoxAlways_clicked(); + #ifdef ULTRACOPIER_PLUGIN_RIGHTS + void on_Rights_clicked(); + #endif +private: + Ui::fileErrorDialog *ui; + FileErrorAction action; +}; + +#endif // FILEERRORDIALOG_H |