diff options
author | sin-ack <sin-ack@users.noreply.github.com> | 2021-05-09 17:09:30 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-12 22:38:20 +0200 |
commit | 2159f90e00cdca66eedbbb0807b731c74695e5d8 (patch) | |
tree | e358620308619bc582308f42a0d1ff55df57a25e /Userland/Libraries/LibGUI/FileSystemModel.h | |
parent | fe5ca6ca276ad452a16215031fb395b4f5bef048 (diff) | |
download | serenity-2159f90e00cdca66eedbbb0807b731c74695e5d8.zip |
Userland+LibCore: Update FileWatcher + its users for InodeWatcher 2.0
With the new InodeWatcher API, the old style of creating a watcher per
inode will no longer work. Therefore the FileWatcher API has been
updated to support multiple watches, and its users have also been
refactored to the new style. At the moment, all operations done on a
(Blocking)FileWatcher return Result objects, however, this may be
changed in the future if it becomes too obnoxious. :^)
Co-authored-by: Gunnar Beutner <gunnar@beutner.name>
Diffstat (limited to 'Userland/Libraries/LibGUI/FileSystemModel.h')
-rw-r--r-- | Userland/Libraries/LibGUI/FileSystemModel.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/FileSystemModel.h b/Userland/Libraries/LibGUI/FileSystemModel.h index 6b7c7544aa..4ad589c82b 100644 --- a/Userland/Libraries/LibGUI/FileSystemModel.h +++ b/Userland/Libraries/LibGUI/FileSystemModel.h @@ -87,8 +87,6 @@ public: bool m_selected { false }; - RefPtr<Core::FileWatcher> m_file_watcher; - int m_error { 0 }; bool m_parent_of_root { false }; @@ -148,6 +146,8 @@ private: String name_for_uid(uid_t) const; String name_for_gid(gid_t) const; + Node const* node_for_path(String const&) const; + HashMap<uid_t, String> m_user_names; HashMap<gid_t, String> m_group_names; @@ -162,6 +162,8 @@ private: unsigned m_thumbnail_progress_total { 0 }; bool m_should_show_dotfiles { false }; + + RefPtr<Core::FileWatcher> m_file_watcher; }; } |