2020-01-18 05:38:21 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
2022-03-12 09:44:37 -03:00
|
|
|
* Copyright (c) 2021-2022, Sam Atkins <atkinssj@serenityos.org>
|
2020-01-18 05:38:21 -03:00
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 05:38:21 -03:00
|
|
|
*/
|
|
|
|
|
|
2019-09-10 09:57:38 -03:00
|
|
|
#pragma once
|
2020-05-28 15:40:53 -03:00
|
|
|
|
2019-09-10 09:57:38 -03:00
|
|
|
#include <AK/String.h>
|
2020-08-17 06:30:30 -03:00
|
|
|
#include <LibCore/Forward.h>
|
2020-09-13 16:38:44 -03:00
|
|
|
#include <LibGUI/Forward.h>
|
2019-09-10 09:57:38 -03:00
|
|
|
|
2021-06-17 10:41:40 -03:00
|
|
|
namespace FileManager {
|
2019-09-10 09:57:38 -03:00
|
|
|
|
2020-12-28 12:50:51 -03:00
|
|
|
enum class FileOperation {
|
|
|
|
|
Copy = 0,
|
2021-06-22 11:56:55 -03:00
|
|
|
Move,
|
|
|
|
|
Delete,
|
2020-12-28 12:50:51 -03:00
|
|
|
};
|
|
|
|
|
|
2021-06-17 07:23:12 -03:00
|
|
|
void delete_paths(Vector<String> const&, bool should_confirm, GUI::Window*);
|
2021-06-17 10:41:40 -03:00
|
|
|
|
2022-03-12 09:44:37 -03:00
|
|
|
ErrorOr<void> run_file_operation(FileOperation, Vector<String> const& sources, String const& destination, GUI::Window*);
|
2019-11-21 17:43:02 -03:00
|
|
|
}
|