mirror of
https://gitee.com/openharmony/communication_wifi.git
synced 2024-11-23 07:00:07 +00:00
datashare
Signed-off-by: yanghui <yanghui152@huawei.com>
This commit is contained in:
parent
2ffaa5057e
commit
0053e6ef4f
@ -101,7 +101,7 @@ bool WifiDataShareHelperUtils::CheckIfSettingsDataReady()
|
||||
std::shared_ptr<DataShare::DataShareHelper> WifiDataShareHelperUtils::WifiCreateDataShareHelper(bool onlySettingsData)
|
||||
{
|
||||
if (!CheckIfSettingsDataReady()) {
|
||||
WIFI_LOGE("%{public}s datashare not ready", __func__);
|
||||
WIFI_LOGE("%{public}s datashare not ready.", __func__);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@ -130,8 +130,8 @@ private:
|
||||
std::shared_ptr<DataShare::DataShareHelper> WifiCreateDataShareHelper(bool onlySettingsData = false);
|
||||
void ClearResources(std::shared_ptr<DataShare::DataShareHelper> operatrPtr,
|
||||
std::shared_ptr<DataShare::DataShareResultSet> result);
|
||||
|
||||
bool IsDataMgrServiceActive();
|
||||
|
||||
bool isDataShareReady_ = false;
|
||||
};
|
||||
|
||||
|
@ -738,9 +738,9 @@ void CesEventSubscriber::OnReceiveDataShareReadyEvent(const OHOS::EventFwk::Comm
|
||||
{
|
||||
const auto &action = eventData.GetWant().GetAction();
|
||||
WIFI_LOGI("OnReceiveDataShareReadyEvent action[%{public}s]", action.c_str());
|
||||
if (WifiManager::GetInstance.GetWifiEventSubscriberManager()) {
|
||||
WifiManager::GetInstance.GetWifiEventSubscriberManager()->AccessDataShare();
|
||||
WifiManager::GetInstance.GetWifiEventSubscriberManager()->RegisterLocationEvent();
|
||||
if (WifiManager::GetInstance().GetWifiEventSubscriberManager()) {
|
||||
WifiManager::GetInstance().GetWifiEventSubscriberManager()->AccessDataShare();
|
||||
WifiManager::GetInstance().GetWifiEventSubscriberManager()->RegisterLocationEvent();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -155,7 +155,6 @@ private:
|
||||
private:
|
||||
uint32_t cesTimerId{0};
|
||||
uint32_t notificationTimerId{0};
|
||||
uint32_t accessDatashareTimerId{0};
|
||||
uint32_t networkStateChangeTimerId{0};
|
||||
uint32_t wifiScanChangeTimerId{0};
|
||||
std::mutex cesEventMutex;
|
||||
|
Loading…
Reference in New Issue
Block a user