Searched refs:JsCallbackObject (Results 1 - 4 of 4) sorted by relevance
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
H A D | copy.h | 44 struct JsCallbackObject { struct 55 explicit JsCallbackObject(napi_env env, LibN::NVal jsVal) : env(env), nRef(jsVal) {} in JsCallbackObject() function 73 ~JsCallbackObject() in ~JsCallbackObject() 110 std::shared_ptr<JsCallbackObject> callback; 114 UvEntry(const std::shared_ptr<JsCallbackObject> &cb, std::shared_ptr<FileInfos> fileInfos) in UvEntry() 118 explicit UvEntry(const std::shared_ptr<JsCallbackObject> &cb) : callback(cb) {} in UvEntry() 124 static std::map<FileInfos, std::shared_ptr<JsCallbackObject>> jsCbMap_; 137 static int ExecLocal(std::shared_ptr<FileInfos> infos, std::shared_ptr<JsCallbackObject> callback); 138 static void CopyComplete(std::shared_ptr<FileInfos> infos, std::shared_ptr<JsCallbackObject> callback); 139 static void WaitNotifyFinished(std::shared_ptr<JsCallbackObject> callbac [all...] |
H A D | copy.cpp | 60 std::map<FileInfos, std::shared_ptr<JsCallbackObject>> Copy::jsCbMap_; 444 int Copy::ExecLocal(std::shared_ptr<FileInfos> infos, std::shared_ptr<JsCallbackObject> callback) in ExecLocal() 474 std::shared_ptr<JsCallbackObject> callback) in SubscribeLocalListener() 516 std::shared_ptr<JsCallbackObject> Copy::RegisterListener(napi_env env, const std::shared_ptr<FileInfos> &infos) in RegisterListener() 518 auto callback = CreateSharedPtr<JsCallbackObject>(env, infos->listener); in RegisterListener() 641 std::shared_ptr<ReceiveInfo> Copy::GetReceivedInfo(int wd, std::shared_ptr<JsCallbackObject> callback) in GetReceivedInfo() 659 std::shared_ptr<JsCallbackObject> callback) in UpdateProgressSize() 680 std::shared_ptr<JsCallbackObject> Copy::GetRegisteredListener(std::shared_ptr<FileInfos> infos) in GetRegisteredListener() 691 void Copy::CloseNotifyFd(std::shared_ptr<FileInfos> infos, std::shared_ptr<JsCallbackObject> callback) in CloseNotifyFd() 699 inotify_event *event, std::shared_ptr<FileInfos> infos, std::shared_ptr<JsCallbackObject> callbac in HandleProgress() [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/copy_listener/ |
H A D | trans_listener.h | 45 std::shared_ptr<JsCallbackObject> callback); 67 std::shared_ptr<JsCallbackObject> callback_;
|
H A D | trans_listener.cpp | 98 std::shared_ptr<FileInfos> fileInfos, std::shared_ptr<JsCallbackObject> callback) in CopyFileFromSoftBus()
|
Completed in 3 milliseconds