mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-30 05:09:01 +00:00
FileManager: Move mass-copy code from DirectoryView to FileUtils
This is preparation for calling it from FileManager/main.cpp Also made file_operation_windows take NonnullRefPtrs.
This commit is contained in:
parent
9060310840
commit
d8fb8b9583
Notes:
sideshowbarker
2024-07-18 08:34:44 +09:00
Author: https://github.com/AtkinsSJ
Commit: d8fb8b9583
Pull-request: https://github.com/SerenityOS/serenity/pull/8117
Reviewed-by: https://github.com/MaxWipfli ✅
4 changed files with 78 additions and 78 deletions
|
@ -11,7 +11,7 @@
|
|||
#include <LibGUI/Forward.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
namespace FileUtils {
|
||||
namespace FileManager {
|
||||
|
||||
enum class FileOperation {
|
||||
Copy = 0,
|
||||
|
@ -20,4 +20,6 @@ enum class FileOperation {
|
|||
|
||||
void delete_path(String const&, GUI::Window*);
|
||||
void delete_paths(Vector<String> const&, bool should_confirm, GUI::Window*);
|
||||
|
||||
void run_file_operation([[maybe_unused]] FileOperation operation, Vector<String> const& sources, String const& destination, GUI::Window* parent_window);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue