180922886Sopenharmony_ci/*
280922886Sopenharmony_ci * Copyright (c) 2024 Huawei Device Co., Ltd.
380922886Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
480922886Sopenharmony_ci * you may not use this file except in compliance with the License.
580922886Sopenharmony_ci * You may obtain a copy of the License at
680922886Sopenharmony_ci *
780922886Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
880922886Sopenharmony_ci *
980922886Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1080922886Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1180922886Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1280922886Sopenharmony_ci * See the License for the specific language governing permissions and
1380922886Sopenharmony_ci * limitations under the License.
1480922886Sopenharmony_ci */
1580922886Sopenharmony_ci
1680922886Sopenharmony_ci#ifndef OHOS_AV_SESSION_RADAR_CONSTANTS_H
1780922886Sopenharmony_ci#define OHOS_AV_SESSION_RADAR_CONSTANTS_H
1880922886Sopenharmony_ci
1980922886Sopenharmony_ci#include <cstdint>
2080922886Sopenharmony_ci#include <string>
2180922886Sopenharmony_ci
2280922886Sopenharmony_cinamespace OHOS::AVSession {
2380922886Sopenharmony_cienum class TriggerMode : int32_t {
2480922886Sopenharmony_ci    UNKNOWN = -1,
2580922886Sopenharmony_ci    MEDIA_CONTROL = 0,
2680922886Sopenharmony_ci    APPLICATION = 1,
2780922886Sopenharmony_ci};
2880922886Sopenharmony_ci
2980922886Sopenharmony_cienum class BizScene : int32_t {
3080922886Sopenharmony_ci    CAST_DISCOVERY = 1,
3180922886Sopenharmony_ci    CAST_START,
3280922886Sopenharmony_ci    CAST_CONTROL,
3380922886Sopenharmony_ci    CAST_END
3480922886Sopenharmony_ci};
3580922886Sopenharmony_ci
3680922886Sopenharmony_cienum class StageResult : int32_t {
3780922886Sopenharmony_ci    IDLE = 0,
3880922886Sopenharmony_ci    SUCCESS,
3980922886Sopenharmony_ci    FAIL,
4080922886Sopenharmony_ci    CANCEL,
4180922886Sopenharmony_ci};
4280922886Sopenharmony_ci
4380922886Sopenharmony_cienum class BizState : int32_t {
4480922886Sopenharmony_ci    BEGIN = 1,
4580922886Sopenharmony_ci    END,
4680922886Sopenharmony_ci};
4780922886Sopenharmony_ci
4880922886Sopenharmony_cienum class TrustState : int32_t {
4980922886Sopenharmony_ci    UNKNOWN = 0,
5080922886Sopenharmony_ci    TRUST,
5180922886Sopenharmony_ci    NO_TRUST,
5280922886Sopenharmony_ci};
5380922886Sopenharmony_ci
5480922886Sopenharmony_cienum class CastDiscoveryStage : int32_t {
5580922886Sopenharmony_ci    START = 1,
5680922886Sopenharmony_ci    DISPLAY,
5780922886Sopenharmony_ci    STOP,
5880922886Sopenharmony_ci};
5980922886Sopenharmony_ci
6080922886Sopenharmony_cienum class CastStartStage : int32_t {
6180922886Sopenharmony_ci    START = 1,
6280922886Sopenharmony_ci    CONNECT,
6380922886Sopenharmony_ci    STARTED,
6480922886Sopenharmony_ci};
6580922886Sopenharmony_ci
6680922886Sopenharmony_cienum class CastControlStage : int32_t {
6780922886Sopenharmony_ci    SEND_COMMAND = 1,
6880922886Sopenharmony_ci    RECV_COMMAND,
6980922886Sopenharmony_ci};
7080922886Sopenharmony_ci
7180922886Sopenharmony_cienum class CastStopStage : int32_t {
7280922886Sopenharmony_ci    STOP_BEGIN = 1,
7380922886Sopenharmony_ci    STOP_END,
7480922886Sopenharmony_ci};
7580922886Sopenharmony_ci
7680922886Sopenharmony_cienum class TrustStatus : int32_t {
7780922886Sopenharmony_ci    UNKOWN = 0,
7880922886Sopenharmony_ci    TRUST = 1,
7980922886Sopenharmony_ci    UNTRUST = 2,
8080922886Sopenharmony_ci};
8180922886Sopenharmony_ci
8280922886Sopenharmony_ciconstexpr uint8_t AV_SESSION_SYSTEM_ID = 226;
8380922886Sopenharmony_ciconstexpr uint8_t AV_SESSION_MODULE_ID = 18;
8480922886Sopenharmony_ci
8580922886Sopenharmony_ciconst std::string AVSESSION_CAST_BEHAVIOR = "AVSESSION_CAST_BEHAVIOR";
8680922886Sopenharmony_ci
8780922886Sopenharmony_ciconst std::string ORG_PKG = "ORG_PKG";
8880922886Sopenharmony_ciconst std::string HOST_PKG = "HOST_PKG";
8980922886Sopenharmony_ciconst std::string TO_CALL_PKG = "TO_CALL_PKG";
9080922886Sopenharmony_ciconst std::string TRIGGER_MODE = "TRIGGER_MODE";
9180922886Sopenharmony_ciconst std::string FUNC = "FUNC";
9280922886Sopenharmony_ci
9380922886Sopenharmony_ciconst std::string BIZ_SCENE = "BIZ_SCENE";
9480922886Sopenharmony_ciconst std::string BIZ_STAGE = "BIZ_STAGE";
9580922886Sopenharmony_ci
9680922886Sopenharmony_ciconst std::string STAGE_RES = "STAGE_RES";
9780922886Sopenharmony_ciconst std::string BIZ_STATE = "BIZ_STATE";
9880922886Sopenharmony_ciconst std::string ERROR_CODE = "ERROR_CODE";
9980922886Sopenharmony_ci
10080922886Sopenharmony_ciconst std::string DISCOVERY_DEVICE_LIST = "DISCOVERY_DEVICE_LIST";
10180922886Sopenharmony_ciconst std::string LOCAL_UDID = "LOCAL_UDID";
10280922886Sopenharmony_ciconst std::string LOCAL_NET_ID = "LOCAL_NET_ID";
10380922886Sopenharmony_ciconst std::string LOCAL_DEV_TYPE = "LOCAL_DEV_TYPE";
10480922886Sopenharmony_ciconst std::string PEER_UDID = "PEER_UDID";
10580922886Sopenharmony_ciconst std::string PEER_BT_MAC = "PEER_BT_MAC";
10680922886Sopenharmony_ciconst std::string PEER_NET_ID = "PEER_NET_ID";
10780922886Sopenharmony_ciconst std::string PEER_DEV_TYPE = "PEER_DEV_TYPE";
10880922886Sopenharmony_ciconst std::string PEER_DEV_NAME = "PEER_DEV_NAME";
10980922886Sopenharmony_ciconst std::string IS_TRUST = "IS_TRUST";
11080922886Sopenharmony_ciconst std::string LOCAL_SESS_NAME = "LOCAL_SESS_NAME";
11180922886Sopenharmony_ciconst std::string PEER_SESS_NAME = "PEER_SESS_NAME";
11280922886Sopenharmony_ci
11380922886Sopenharmony_ciconst std::string DEV_PHONE = "00E";
11480922886Sopenharmony_ciconst std::string DEV_LAPTOP = "00C";
11580922886Sopenharmony_ciconst std::string AVSESSION_PKG_NAME = "av_session";
11680922886Sopenharmony_ciconst std::string CAST_ENGINE_PKG = "cast_engine_service";
11780922886Sopenharmony_ciconst std::string MEDIA_CONTROL_PKG = "mediacontroller";
11880922886Sopenharmony_ci
11980922886Sopenharmony_ciconstexpr uint32_t DEVICE_ID_MIN_LEN = 10;
12080922886Sopenharmony_ci} // namespace OHOS::AVSession
12180922886Sopenharmony_ci
12280922886Sopenharmony_ci#endif // OHOS_AV_SESSION_RADAR_CONSTANTS_H