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
21namespace OHOS {
22namespace DistributedHardware {
23const std::string DSCREEN_INIT_FAIL = "DSCREEN_INIT_FAIL";
24const std::string DSCREEN_REGISTER_FAIL = "DSCREEN_REGISTER_FAIL";
25const std::string DSCREEN_UNREGISTER_FAIL = "DSCREEN_UNREGISTER_FAIL";
26const std::string DSCREEN_OPT_FAIL = "DSCREEN_OPT_FAIL";
27
28const std::string DSCREEN_INIT = "DSCREEN_INIT";
29const std::string DSCREEN_REGISTER = "DSCREEN_REGISTER";
30const std::string DSCREEN_UNREGISTER = "DSCREEN_UNREGISTER";
31const std::string DSCREEN_PROJECT_START = "DSCREEN_PROJECT_START";
32const std::string DSCREEN_PROJECT_END = "DSCREEN_PROJECT_END";
33const std::string DSCREEN_EXIT = "DSCREEN_EXIT";
34
35void ReportSaFail(const std::string &eventName, int32_t errCode, int32_t saId, const std::string &errMsg);
36void ReportRegisterFail(const std::string &eventName, int32_t errCode, const std::string &devId,
37    const std::string &dhId, const std::string &errMsg);
38void ReportUnRegisterFail(const std::string &eventName, int32_t errCode, const std::string &devId,
39    const std::string &dhId, const std::string &errMsg);
40void ReportOptFail(const std::string &eventName, int32_t errCode, const std::string &errMsg);
41
42void ReportSaEvent(const std::string &eventName, int32_t saId, const std::string &errMsg);
43void ReportRegisterScreenEvent(const std::string &eventName, const std::string &devId, const std::string &dhId,
44    const std::string &errMsg);
45void ReportUnRegisterScreenEvent(const std::string &eventName, const std::string &devId, const std::string &dhId,
46    const std::string &errMsg);
47void 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