Searched refs:JSNotifyDataListener (Results 1 – 5 of 5) sorted by relevance
/ohos5.0/base/request/request/frameworks/js/napi/include/ |
H A D | js_notify_data_listener.h | 25 class JSNotifyDataListener 28 , public std::enable_shared_from_this<JSNotifyDataListener> { 30 JSNotifyDataListener(napi_env env, const std::string &taskId, const SubscribeType &type) in JSNotifyDataListener() function 47 std::shared_ptr<JSNotifyDataListener> listener = nullptr;
|
H A D | js_task.h | 67 std::map<SubscribeType, std::shared_ptr<JSNotifyDataListener>> notifyDataListenerMap_;
|
/ohos5.0/base/request/request/frameworks/js/napi/src/ |
H A D | js_notify_data_listener.cpp | 29 napi_status JSNotifyDataListener::AddListener(napi_value cb) in AddListener() 42 napi_status JSNotifyDataListener::RemoveListener(napi_value cb) in RemoveListener() 54 bool JSNotifyDataListener::IsHeaderReceive(const std::shared_ptr<NotifyData> ¬ifyData) in IsHeaderReceive() 67 void JSNotifyDataListener::ProcessHeaderReceive(const std::shared_ptr<NotifyData> ¬ifyData) in ProcessHeaderReceive() 94 void JSNotifyDataListener::NotifyDataProcess( in NotifyDataProcess() 184 void JSNotifyDataListener::DoJSTask(const std::shared_ptr<NotifyData> ¬ifyData) in DoJSTask() 208 void JSNotifyDataListener::OnNotifyDataReceive(const std::shared_ptr<NotifyData> ¬ifyData) in OnNotifyDataReceive()
|
H A D | request_event.cpp | 161 … std::make_shared<JSNotifyDataListener>(env, jsParam.task->GetTid(), jsParam.subscribeType); in On() 205 … std::make_shared<JSNotifyDataListener>(env, jsParam.task->GetTid(), jsParam.subscribeType); in Off()
|
H A D | js_task.cpp | 214 std::make_shared<JSNotifyDataListener>(context->env_, tid, SubscribeType::REMOVE); in AddRemoveListener()
|