mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +00:00
FileSystemAccessServer: Add window title as parameter for opening file
This commit is contained in:
parent
d496eb48e3
commit
95ee7069d5
5 changed files with 8 additions and 8 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <FileSystemAccessServer/FileSystemAccessServerEndpoint.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibCore/Promise.h>
|
||||
#include <LibCore/StandardPaths.h>
|
||||
#include <LibIPC/ServerConnection.h>
|
||||
|
||||
namespace FileSystemAccessClient {
|
||||
|
@ -27,7 +28,7 @@ class Client final
|
|||
|
||||
public:
|
||||
Result request_file(i32 parent_window_id, String const& path, Core::OpenMode mode);
|
||||
Result open_file(i32 parent_window_id);
|
||||
Result open_file(i32 parent_window_id, String const& window_title = {}, StringView const& path = Core::StandardPaths::home_directory());
|
||||
Result save_file(i32 parent_window_id, String const& name, String const ext);
|
||||
|
||||
static Client& the();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue