diff --git a/commondependency/include/deviceprofile_connector.h b/commondependency/include/deviceprofile_connector.h index 1aa8990e17a5031f78fa60426d4f400ebc7c6ec6..7b58f183fb30a93c838d96f27e53af75a329e48f 100644 --- a/commondependency/include/deviceprofile_connector.h +++ b/commondependency/include/deviceprofile_connector.h @@ -292,6 +292,15 @@ public: void GenerateAclHash(DistributedDeviceProfile::AccessControlProfile &acl, std::map> &aclMap, const std::string &dmVersion); DM_EXPORT int32_t CheckIsSameAccountByUdidHash(const std::string &udidHash); + /** + * @brief Get the Acl List Hash for this dmVersion + * + * @param localDevUserInfo local device user info + * @param remoteDevUserInfo remote device user info + * @param aclList output save the acl hash + * @param dmVersion target dm version + * @return EXPORT 0 for success + */ DM_EXPORT int32_t GetAclListHashStr(const DevUserInfo &localDevUserInfo, const DevUserInfo &remoteDevUserInfo, std::string &aclListHash, std::string dmVersion = ""); DM_EXPORT bool IsLnnAcl(const DistributedDeviceProfile::AccessControlProfile &profile); diff --git a/interfaces/inner_kits/native_cpp/include/device_manager.h b/interfaces/inner_kits/native_cpp/include/device_manager.h index da0db3936076c2cece54906b35ba28a0a818fe77..5336d2a364cee9112e30dc1fb94555bd17f1a5d3 100644 --- a/interfaces/inner_kits/native_cpp/include/device_manager.h +++ b/interfaces/inner_kits/native_cpp/include/device_manager.h @@ -614,6 +614,14 @@ public: virtual int32_t UnRegisterDeviceScreenStatusCallback(const std::string &pkgName) = 0; virtual int32_t GetDeviceScreenStatus(const std::string &pkgName, const std::string &networkId, int32_t &screenStatus) = 0; + /** + * @brief Set Dn Policy + * @param pkgName package name. + * @param policy contain DM_POLICY_STRATEGY_FOR_BLE and DM_POLICY_TIMEOUT key and value. + * DM_POLICY_STRATEGY_FOR_BLE: Strategy BLE networking go-online policy, suppress or restore. + * DM_POLICY_TIMEOUT: Indicates the duration for suppressing ble networking. + * @return Returns 0 if success. + */ virtual int32_t SetDnPolicy(const std::string &pkgName, std::map &policy) = 0; virtual int32_t StopAuthenticateDevice(const std::string &pkgName) = 0; virtual int32_t GetNetworkIdByUdid(const std::string &pkgName, const std::string &udid, std::string &networkId) = 0; @@ -627,6 +635,12 @@ public: std::vector &deviceList) = 0; virtual int32_t RegisterAuthenticationType(const std::string &pkgName, const std::map &authParam) = 0; + /** + * @brief Query the device list of same account. + * @param filterOptions query parameters. + * @param callback qeury result callback. + * @return Returns 0 if success. + */ virtual int32_t GetDeviceProfileInfoList(const std::string &pkgName, const DmDeviceProfileInfoFilterOptions &filterOptions, std::shared_ptr callback) = 0; @@ -648,6 +662,11 @@ public: virtual int32_t RestoreLocalDeviceName(const std::string &pkgName) = 0; virtual int32_t GetDeviceNetworkIdList(const std::string &bundleName, const NetworkIdQueryFilter &queryFilter, std::vector &networkIds) = 0; + /** + * @brief UnRegister Pin Code Holder Callback + * @param pkgName package name. + * @return Returns 0 if success. + */ virtual int32_t UnRegisterPinHolderCallback(const std::string &pkgName) = 0; virtual bool CheckSrcAccessControl(const DmAccessCaller &caller, const DmAccessCallee &callee) = 0; virtual bool CheckSinkAccessControl(const DmAccessCaller &caller, const DmAccessCallee &callee) = 0;