Signed-off-by: MisterE <smart_e@126.com>
This commit is contained in:
MisterE 2024-08-27 20:36:14 +08:00
commit 81b8bb3f16
4 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,7 @@ public:
std::string destBundleName_ = "";
std::string destModuleName_ = "";
std::string destAbilityName_ = "";
std::string developerId_ = "";
DSchedEventType dSchedEventType_ = DMS_UNKNOW;
DSchedEventState state_ = DMS_DSCHED_EVENT_INIT;
};

View File

@ -45,6 +45,7 @@ struct ContinueEventInfo {
std::string bundleName;
std::string moduleName;
std::string abilityName;
std::string developerId;
};
class DmsBmStorage {

View File

@ -281,6 +281,7 @@ int32_t DSchedContinuation::NotifyDSchedEventForOneCB(const sptr<IRemoteObject>
PARCEL_WRITE_HELPER_RET(data, String, continueEvent_.destBundleName_, SEND_REQUEST_DEF_FAIL);
PARCEL_WRITE_HELPER_RET(data, String, continueEvent_.destModuleName_, SEND_REQUEST_DEF_FAIL);
PARCEL_WRITE_HELPER_RET(data, String, continueEvent_.destAbilityName_, SEND_REQUEST_DEF_FAIL);
PARCEL_WRITE_HELPER_RET(data, String, continueEvent_.developerId_, SEND_REQUEST_DEF_FAIL);
PARCEL_WRITE_HELPER_RET(data, Int32, continueEvent_.dSchedEventType_, SEND_REQUEST_DEF_FAIL);
PARCEL_WRITE_HELPER_RET(data, Int32, continueEvent_.state_, SEND_REQUEST_DEF_FAIL);

View File

@ -1115,6 +1115,7 @@ bool DmsBmStorage::GetContinueEventInfo(const std::string &networkId, const std:
HILOGI("value: %{public}s", value.c_str());
continueEventInfo.networkId = networkId;
continueEventInfo.bundleName = bundleName;
continueEventInfo.developerId = distributedBundleInfo.developerId;
continueEventInfo.abilityName = FindAbilityName(distributedBundleInfo, continueType);
continueEventInfo.moduleName = FindModuleName(distributedBundleInfo, continueType);
return true;