• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 DISTRIBUTEDDATAMGR_PASTEBOARD_EVENT_COMMON_H
17 #define DISTRIBUTEDDATAMGR_PASTEBOARD_EVENT_COMMON_H
18 
19 #include <cstdint>
20 #include <string>
21 #include <vector>
22 
23 namespace OHOS {
24 struct DataDescription {
25     uint32_t recordNum = 0;
26     std::vector<int32_t> entryNum;
27     std::vector<std::string> mimeTypes;
28 };
29 
30 struct CommonInfo {
31     int32_t deviceType = 0;
32     int32_t currentAccountId = -1;
33     int64_t dataSize = 0;
34 };
35 
36 struct RadarPasteInfo {
37     bool isPeerOnline;
38     uint32_t onlineDevNum;
39     int32_t networkType;
40     std::string peerNetId;
41     std::string peerUdid;
42     std::string pasteId;
43     std::string peerBundleName;
44 };
45 
46 struct RadarReportInfo {
47     int32_t stageRes;
48     std::string bundleName;
49     DataDescription description;
50     CommonInfo commonInfo;
51     RadarPasteInfo pasteInfo;
52 };
53 
54 struct UePasteInfo {
55     bool isPeerOnline;
56     bool isDistributed;
57     uint32_t onlineDevNum;
58     int32_t networkType;
59     std::string peerBundleName = "";
60 };
61 
62 struct UeReportInfo {
63     int32_t ret = -1;
64     std::string bundleName = "";
65     DataDescription description;
66     CommonInfo commonInfo;
67     UePasteInfo pasteInfo;
68 };
69 } // namespace OHOS
70 #endif // DISTRIBUTEDDATAMGR_PASTEBOARD_EVENT_COMMON_H
71