mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 20:42:21 +00:00
LibFileSystemAccessClient: Rename try_save_file
=>
`try_save_file_deprecated` This precedes the addition of a new api using `Core::Stream`
This commit is contained in:
parent
c71fc0683f
commit
9ae97c8cb1
Notes:
sideshowbarker
2024-07-17 12:02:22 +09:00
Author: https://github.com/LucasChollet
Commit: 9ae97c8cb1
Pull-request: https://github.com/SerenityOS/serenity/pull/16368
Reviewed-by: https://github.com/linusg ✅
Reviewed-by: https://github.com/sin-ack ✅
Reviewed-by: https://github.com/timschumi
12 changed files with 16 additions and 16 deletions
|
@ -93,7 +93,7 @@ DeprecatedResult Client::try_open_file(GUI::Window* parent_window, DeprecatedStr
|
|||
return handle_promise(id);
|
||||
}
|
||||
|
||||
DeprecatedResult Client::try_save_file(GUI::Window* parent_window, DeprecatedString const& name, DeprecatedString const ext, Core::OpenMode requested_access)
|
||||
DeprecatedResult Client::try_save_file_deprecated(GUI::Window* parent_window, DeprecatedString const& name, DeprecatedString const ext, Core::OpenMode requested_access)
|
||||
{
|
||||
auto const id = get_new_id();
|
||||
m_promises.set(id, PromiseAndWindow { Core::Promise<DeprecatedResult>::construct(), parent_window });
|
||||
|
|
|
@ -29,7 +29,7 @@ public:
|
|||
DeprecatedResult try_request_file_read_only_approved(GUI::Window* parent_window, DeprecatedString const& path);
|
||||
DeprecatedResult try_request_file(GUI::Window* parent_window, DeprecatedString const& path, Core::OpenMode mode);
|
||||
DeprecatedResult try_open_file(GUI::Window* parent_window, DeprecatedString const& window_title = {}, StringView path = Core::StandardPaths::home_directory(), Core::OpenMode requested_access = Core::OpenMode::ReadOnly);
|
||||
DeprecatedResult try_save_file(GUI::Window* parent_window, DeprecatedString const& name, DeprecatedString const ext, Core::OpenMode requested_access = Core::OpenMode::WriteOnly | Core::OpenMode::Truncate);
|
||||
DeprecatedResult try_save_file_deprecated(GUI::Window* parent_window, DeprecatedString const& name, DeprecatedString const ext, Core::OpenMode requested_access = Core::OpenMode::WriteOnly | Core::OpenMode::Truncate);
|
||||
|
||||
static Client& the();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue