summaryrefslogtreecommitdiff
path: root/plugins-alternative/CopyEngine/Rsync/fileExistsDialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins-alternative/CopyEngine/Rsync/fileExistsDialog.h')
-rw-r--r--plugins-alternative/CopyEngine/Rsync/fileExistsDialog.h58
1 files changed, 0 insertions, 58 deletions
diff --git a/plugins-alternative/CopyEngine/Rsync/fileExistsDialog.h b/plugins-alternative/CopyEngine/Rsync/fileExistsDialog.h
deleted file mode 100644
index 75af190..0000000
--- a/plugins-alternative/CopyEngine/Rsync/fileExistsDialog.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/** \file fileExistsDialog.h
-\brief Define the dialog when file already exists
-\author alpha_one_x86
-\version 0.3
-\date 2010 */
-
-#include <QDialog>
-#include <QWidget>
-#include <QString>
-#include <QDateTime>
-#include <QFileInfo>
-#include <QDir>
-#include "Environment.h"
-
-#ifndef FILEEXISTSDIALOG_H
-#define FILEEXISTSDIALOG_H
-
-namespace Ui {
- class fileExistsDialog;
-}
-
-/// \brief to show file exists dialog, and ask what do
-class fileExistsDialog : public QDialog
-{
- Q_OBJECT
-public:
- /// \brief create the object and pass all the informations to it
- explicit fileExistsDialog(QWidget *parent,QFileInfo source,QFileInfo destination,QString firstRenamingRule,QString otherRenamingRule);
- ~fileExistsDialog();
- /// \brief return the the always checkbox is checked
- bool getAlways();
- /// \brief return the action clicked
- FileExistsAction getAction();
- /// \brief return the new rename is case in manual renaming
- QString getNewName();
-protected:
- void changeEvent(QEvent *e);
-private slots:
- void on_SuggestNewName_clicked();
- void on_Rename_clicked();
- void on_Overwrite_clicked();
- void on_Skip_clicked();
- void on_Cancel_clicked();
- void on_actionOverwrite_if_newer_triggered();
- void on_actionOverwrite_if_not_same_modification_date_triggered();
- void updateRenameButton();
- void on_checkBoxAlways_toggled(bool checked);
- void on_lineEditNewName_textChanged(const QString &arg1);
-private:
- Ui::fileExistsDialog *ui;
- FileExistsAction action;
- QString oldName;
- QFileInfo destinationInfo;
- QString firstRenamingRule;
- QString otherRenamingRule;
-};
-
-#endif // FILEEXISTSDIALOG_H