Serenity Operating System
at master 26 lines 724 B view raw
1/* 2 * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> 3 * Copyright (c) 2021-2022, Sam Atkins <atkinssj@serenityos.org> 4 * 5 * SPDX-License-Identifier: BSD-2-Clause 6 */ 7 8#pragma once 9 10#include <AK/DeprecatedString.h> 11#include <LibCore/Forward.h> 12#include <LibGUI/Forward.h> 13 14namespace FileManager { 15 16enum class FileOperation { 17 Copy = 0, 18 Move, 19 Delete, 20}; 21 22void delete_paths(Vector<DeprecatedString> const&, bool should_confirm, GUI::Window*); 23 24ErrorOr<void> run_file_operation(FileOperation, Vector<DeprecatedString> const& sources, DeprecatedString const& destination, GUI::Window*); 25ErrorOr<bool> handle_drop(GUI::DropEvent const& event, DeprecatedString const& destination, GUI::Window* window); 26}