Home
last modified time | relevance | path

Searched refs:WatcherInfoArg (Results 1 - 6 of 6) sorted by relevance

/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_watcher/
H A Dwatcher_entity.h36 struct WatcherInfoArg { struct
42 explicit WatcherInfoArg(LibN::NVal jsVal) : nRef(jsVal) {} in WatcherInfoArg() function
43 ~WatcherInfoArg() = default;
56 int StartNotify(std::shared_ptr<WatcherInfoArg> arg);
57 int StopNotify(std::shared_ptr<WatcherInfoArg> arg);
60 bool AddWatcherInfo(const std::string &fileName, std::shared_ptr<WatcherInfoArg> arg);
63 uint32_t RemoveWatcherInfo(std::shared_ptr<WatcherInfoArg> arg);
74 std::unordered_set<std::shared_ptr<WatcherInfoArg>> watcherInfoSet_;
79 std::shared_ptr<WatcherInfoArg> data_;
H A Dwatcher_entity.cpp71 int FileWatcher::StartNotify(shared_ptr<WatcherInfoArg> arg) in StartNotify()
140 int FileWatcher::StopNotify(shared_ptr<WatcherInfoArg> arg) in StopNotify()
214 bool FileWatcher::AddWatcherInfo(const string &fileName, shared_ptr<WatcherInfoArg> arg) in AddWatcherInfo()
230 uint32_t FileWatcher::RemoveWatcherInfo(shared_ptr<WatcherInfoArg> arg) in RemoveWatcherInfo()
/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dwatcher_impl.h39 struct WatcherInfoArg { struct
45 explicit WatcherInfoArg(void (*callback)(CWatchEvent)) in WatcherInfoArg() function
50 ~WatcherInfoArg() = default;
55 std::shared_ptr<WatcherInfoArg> data_;
76 bool AddWatcherInfo(const std::string &fileName, std::shared_ptr<WatcherInfoArg> arg);
78 int32_t StartNotify(std::shared_ptr<WatcherInfoArg> arg);
79 void GetNotifyEvent(std::shared_ptr<WatcherInfoArg> arg);
81 int32_t StopNotify(std::shared_ptr<WatcherInfoArg> arg);
84 uint32_t RemoveWatcherInfo(std::shared_ptr<WatcherInfoArg> arg);
95 std::unordered_set<std::shared_ptr<WatcherInfoArg>> watcherInfoSet
[all...]
H A Dwatcher_impl.cpp68 bool FileWatcherManager::AddWatcherInfo(const string &fileName, shared_ptr<WatcherInfoArg> arg) in AddWatcherInfo()
90 uint32_t FileWatcherManager::RemoveWatcherInfo(shared_ptr<WatcherInfoArg> arg) in RemoveWatcherInfo()
102 int32_t FileWatcherManager::StartNotify(std::shared_ptr<WatcherInfoArg> arg) in StartNotify()
161 void FileWatcherManager::GetNotifyEvent(std::shared_ptr<WatcherInfoArg> arg) in GetNotifyEvent()
259 int32_t FileWatcherManager::StopNotify(std::shared_ptr<WatcherInfoArg> arg) in StopNotify()
H A Dfile_fs_impl.cpp1227 std::shared_ptr<WatcherInfoArg> infoArg = std::make_shared<WatcherInfoArg>(callback); in CreateWatcher()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dwatcher.cpp46 shared_ptr<WatcherInfoArg> ParseParam(const napi_env &env, const napi_callback_info &info, int32_t &errCode) in ParseParam()
74 auto infoArg = CreateSharedPtr<WatcherInfoArg>(NVal(env, funcArg[NARG_POS::THIRD])); in ParseParam()

Completed in 4 milliseconds