summaryrefslogtreecommitdiff
path: root/src/filerenamer.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-04 09:40:37 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-10-04 09:40:37 -0400
commitc4dd23abb7a37531040d6348c491dc868919013c (patch)
treecc007db06d880869f8b1c6fec6f074fecb9b9e0e /src/filerenamer.h
parent2fe50f2ff366ea850eb70a85c6ea7d6c936bf08a (diff)
added error messages to FileRenamer and a few more
fixes for shell functions changing names
Diffstat (limited to 'src/filerenamer.h')
-rw-r--r--src/filerenamer.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/filerenamer.h b/src/filerenamer.h
index cd57244c..5583ecbd 100644
--- a/src/filerenamer.h
+++ b/src/filerenamer.h
@@ -3,6 +3,8 @@
#include <QWidget>
+namespace MOBase::shell { class Result; }
+
/**
* Renames individual files and handles dialog boxes to confirm replacements and
* failures with the user
@@ -126,7 +128,7 @@ private:
* @param name The name of the file that failed to be removed
* @return true to continue, false to stop
**/
- bool removeFailed(const QString& name);
+ bool removeFailed(const QString& name, const MOBase::shell::Result& r);
/**
* renaming a file failed, ask the user to continue or cancel
@@ -134,7 +136,9 @@ private:
* @param newName new filename
* @return true to continue, false to stop
**/
- bool renameFailed(const QString& oldName, const QString& newName);
+ bool renameFailed(
+ const QString& oldName, const QString& newName,
+ const MOBase::shell::Result& r);
};
#endif // FILERENAMER_H