Searched refs:InterfaceStateObserverWrapper (Results 1 – 4 of 4) sorted by relevance
/ohos5.0/foundation/communication/netmanager_ext/frameworks/js/napi/ethernet/ |
H A D | interface_state_observer_wrapper.cpp | 26 InterfaceStateObserverWrapper::InterfaceStateObserverWrapper() in InterfaceStateObserverWrapper() function in OHOS::NetManagerStandard::InterfaceStateObserverWrapper 31 InterfaceStateObserverWrapper::~InterfaceStateObserverWrapper() in ~InterfaceStateObserverWrapper() 36 InterfaceStateObserverWrapper &InterfaceStateObserverWrapper::GetInstance() in GetInstance() 38 static InterfaceStateObserverWrapper instance; in GetInstance() 42 napi_value InterfaceStateObserverWrapper::On(napi_env env, napi_callback_info info, in On() 79 napi_value InterfaceStateObserverWrapper::Off(napi_env env, napi_callback_info info, in Off()
|
H A D | interface_state_observer_wrapper.h | 32 class InterfaceStateObserverWrapper { 33 DISALLOW_COPY_AND_MOVE(InterfaceStateObserverWrapper); 41 static InterfaceStateObserverWrapper &GetInstance(); 49 InterfaceStateObserverWrapper(); 50 ~InterfaceStateObserverWrapper();
|
H A D | interface_state_observer.cpp | 30 …if (!InterfaceStateObserverWrapper::GetInstance().GetEventManager()->HasEventListener(EVENT_STATS_… in OnInterfaceAdded() 35 … InterfaceStateObserverWrapper::GetInstance().GetEventManager()->EmitByUv(EVENT_STATS_CHANGE, pair, in OnInterfaceAdded() 42 …if (!InterfaceStateObserverWrapper::GetInstance().GetEventManager()->HasEventListener(EVENT_STATS_… in OnInterfaceRemoved() 47 … InterfaceStateObserverWrapper::GetInstance().GetEventManager()->EmitByUv(EVENT_STATS_CHANGE, pair, in OnInterfaceRemoved() 54 …if (!InterfaceStateObserverWrapper::GetInstance().GetEventManager()->HasEventListener(EVENT_STATS_… in OnInterfaceChanged() 59 … InterfaceStateObserverWrapper::GetInstance().GetEventManager()->EmitByUv(EVENT_STATS_CHANGE, pair, in OnInterfaceChanged()
|
H A D | ethernet_module.cpp | 90 return InterfaceStateObserverWrapper::GetInstance().On(env, info, {EVENT_STATS_CHANGE}, false); in On() 95 return InterfaceStateObserverWrapper::GetInstance().Off(env, info, {EVENT_STATS_CHANGE}, false); in Off()
|