From 9b623ea3943165fe7efb5e47a0b5b9452c1599e6 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Wed, 9 May 2018 00:09:55 +0200 Subject: 9.8 --- zen/dir_watcher.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'zen/dir_watcher.h') diff --git a/zen/dir_watcher.h b/zen/dir_watcher.h index 8045d184..b4796618 100755 --- a/zen/dir_watcher.h +++ b/zen/dir_watcher.h @@ -9,6 +9,7 @@ #include #include +#include #include #include "file_error.h" @@ -50,26 +51,22 @@ public: struct Entry { - Entry() {} - Entry(ActionType action, const Zstring& filepath) : action_(action), filepath_(filepath) {} - - ActionType action_ = ACTION_CREATE; - Zstring filepath_; + ActionType action = ACTION_CREATE; + Zstring filePath; }; //extract accumulated changes since last call - std::vector getChanges(const std::function& processGuiMessages); //throw FileError + std::vector getChanges(const std::function& requestUiRefresh, std::chrono::milliseconds cbInterval); //throw FileError private: DirWatcher (const DirWatcher&) = delete; DirWatcher& operator=(const DirWatcher&) = delete; - const Zstring baseDirPath; + const Zstring baseDirPath_; struct Impl; const std::unique_ptr pimpl_; }; - } #endif -- cgit