1 /*
2  * Copyright (c) 2022 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_DSCREEN_HISYSEVENT_H
17 #define OHOS_DSCREEN_HISYSEVENT_H
18 
19 #include <string>
20 
21 namespace OHOS {
22 namespace DistributedHardware {
23 const std::string DSCREEN_INIT_FAIL = "DSCREEN_INIT_FAIL";
24 const std::string DSCREEN_REGISTER_FAIL = "DSCREEN_REGISTER_FAIL";
25 const std::string DSCREEN_UNREGISTER_FAIL = "DSCREEN_UNREGISTER_FAIL";
26 const std::string DSCREEN_OPT_FAIL = "DSCREEN_OPT_FAIL";
27 
28 const std::string DSCREEN_INIT = "DSCREEN_INIT";
29 const std::string DSCREEN_REGISTER = "DSCREEN_REGISTER";
30 const std::string DSCREEN_UNREGISTER = "DSCREEN_UNREGISTER";
31 const std::string DSCREEN_PROJECT_START = "DSCREEN_PROJECT_START";
32 const std::string DSCREEN_PROJECT_END = "DSCREEN_PROJECT_END";
33 const std::string DSCREEN_EXIT = "DSCREEN_EXIT";
34 
35 void ReportSaFail(const std::string &eventName, int32_t errCode, int32_t saId, const std::string &errMsg);
36 void ReportRegisterFail(const std::string &eventName, int32_t errCode, const std::string &devId,
37     const std::string &dhId, const std::string &errMsg);
38 void ReportUnRegisterFail(const std::string &eventName, int32_t errCode, const std::string &devId,
39     const std::string &dhId, const std::string &errMsg);
40 void ReportOptFail(const std::string &eventName, int32_t errCode, const std::string &errMsg);
41 
42 void ReportSaEvent(const std::string &eventName, int32_t saId, const std::string &errMsg);
43 void ReportRegisterScreenEvent(const std::string &eventName, const std::string &devId, const std::string &dhId,
44     const std::string &errMsg);
45 void ReportUnRegisterScreenEvent(const std::string &eventName, const std::string &devId, const std::string &dhId,
46     const std::string &errMsg);
47 void ReportScreenMirrorEvent(const std::string &eventName, const std::string &devId, const std::string &dhId,
48     const std::string &errMsg);
49 } // namespace DistributedHardware
50 } // namespace OHOS
51 #endif