• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024 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  * Description: Enumarations ralated to Cast session.
15  * Author: yuezihao
16  * Create: 2023-11-06
17  */
18 
19 #ifndef CAST_SESSION_ENUMS_H
20 #define CAST_SESSION_ENUMS_H
21 
22 namespace OHOS {
23 namespace CastEngine {
24 namespace CastEngineService {
25 namespace CastSessionEnums {
26 
27 enum MessageId : int {
28     MSG_CONNECT,
29     MSG_SETUP,
30     MSG_SETUP_SUCCESS,
31     MSG_SETUP_FAILED,
32     MSG_SETUP_DONE,
33     MSG_PLAY,
34     MSG_PAUSE,
35     MSG_PLAY_REQ,
36     MSG_PAUSE_REQ,
37     MSG_DISCONNECT,
38     MSG_CONNECT_TIMEOUT,
39     MSG_PROCESS_TRIGGER_REQ,
40     MSG_UPDATE_VIDEO_SIZE,
41     MSG_STREAM_RECV_ACTION_EVENT_FROM_PEERS,
42     MSG_STREAM_SEND_ACTION_EVENT_TO_PEERS,
43     MSG_PEER_RENDER_READY,
44     MSG_ERROR,
45     MSG_SET_CAST_MODE,
46     MSG_READY_TO_PLAYING,
47     MSG_AUTH,
48     MSG_MIRROR_SEND_ACTION_EVENT_TO_PEERS,
49     MSG_ID_MAX,
50 };
51 } // namespace CastSessionEnums
52 } // namespace CastEngineService
53 } // namespace CastEngine
54 } // namespace OHOS
55 
56 #endif