1 /* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef OHOS_DM_DEVICE_PROFILE_INFO_H 17 #define OHOS_DM_DEVICE_PROFILE_INFO_H 18 19 #include <cstdint> 20 #include <map> 21 #include <string> 22 #include <vector> 23 24 namespace OHOS { 25 namespace DistributedHardware { 26 typedef struct DmProductInfo { 27 std::string prodId; 28 std::string model; 29 std::string prodName; 30 std::string prodShortName; 31 std::string imageVersion; 32 } DmProductInfo; 33 34 typedef struct DmServiceProfileInfo { 35 std::string deviceId; 36 std::string serviceId; 37 std::string serviceType; 38 std::map<std::string, std::string> data = {}; 39 } DmServiceProfileInfo; 40 41 typedef struct DmDeviceProfileInfoFilterOptions { 42 bool isCloud; 43 std::vector<std::string> deviceIdList = {}; 44 } DmDeviceProfileInfoFilterOptions; 45 46 typedef struct DmDeviceProfileInfo { 47 std::string deviceId; 48 std::string deviceSn; 49 std::string mac; 50 std::string model; 51 std::string innerModel; 52 std::string deviceType; 53 std::string manufacturer; 54 std::string deviceName; 55 std::string productId; 56 std::string subProductId; 57 std::string sdkVersion; 58 std::string bleMac; 59 std::string brMac; 60 std::string sleMac; 61 std::string firmwareVersion; 62 std::string hardwareVersion; 63 std::string softwareVersion; 64 int32_t protocolType; 65 int32_t setupType; 66 std::string wiseDeviceId; 67 std::string wiseUserId; 68 std::string registerTime; 69 std::string modifyTime; 70 std::string shareTime; 71 bool isLocalDevice; 72 std::vector<DmServiceProfileInfo> services = {}; 73 } DmDeviceProfileInfo; 74 75 } // namespace DistributedHardware 76 } // namespace OHOS 77 #endif // OHOS_DM_DEVICE_PROFILE_INFO_H