Home
last modified time | relevance | path

Searched refs:JSNotifyDataListener (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/base/request/request/frameworks/js/napi/include/
H A Djs_notify_data_listener.h25 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 Djs_task.h67 std::map<SubscribeType, std::shared_ptr<JSNotifyDataListener>> notifyDataListenerMap_;
/ohos5.0/base/request/request/frameworks/js/napi/src/
H A Djs_notify_data_listener.cpp29 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> &notifyData) in IsHeaderReceive()
67 void JSNotifyDataListener::ProcessHeaderReceive(const std::shared_ptr<NotifyData> &notifyData) in ProcessHeaderReceive()
94 void JSNotifyDataListener::NotifyDataProcess( in NotifyDataProcess()
184 void JSNotifyDataListener::DoJSTask(const std::shared_ptr<NotifyData> &notifyData) in DoJSTask()
208 void JSNotifyDataListener::OnNotifyDataReceive(const std::shared_ptr<NotifyData> &notifyData) in OnNotifyDataReceive()
H A Drequest_event.cpp161 … 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 Djs_task.cpp214 std::make_shared<JSNotifyDataListener>(context->env_, tid, SubscribeType::REMOVE); in AddRemoveListener()