summaryrefslogtreecommitdiff
path: root/src/filerenamer.h
diff options
context:
space:
mode:
authorAl <gabriel.cortesi@outlook.com>2019-10-04 22:16:39 +0200
committerGitHub <noreply@github.com>2019-10-04 22:16:39 +0200
commite427dbae55c77276288cdc8105604885a4b3309c (patch)
tree48c57873e62597ee005e60690e669f32833baa25 /src/filerenamer.h
parent73541c9bb45366f648ba2a9c430ca7b526a8a6a2 (diff)
parentc4dd23abb7a37531040d6348c491dc868919013c (diff)
Merge pull request #847 from isanae/file-renamer-errors
FileRenamer error messages
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