• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021-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_RIL_NOTIFICATION_H
17 #define OHOS_RIL_NOTIFICATION_H
18 
19 typedef enum {
20     HNOTI_CALL_BASE = 1000,
21 
22     /** Called when call state is updated. */
23     HNOTI_CALL_STATE_UPDATED,
24 
25     /** Called when a new USSD message is received. */
26     HNOTI_CALL_USSD_REPORT,
27 
28     /**
29      * Called when nework doesn't have in-band information, need to play
30      * out-band tone.
31      */
32     HNOTI_CALL_RINGBACK_VOICE_REPORT,
33 
34     /**
35      * Called when Single Radio Voice Call Continuity(SRVCC) progress state has
36      * changed.
37      */
38     HNOTI_CALL_SRVCC_STATUS_REPORT,
39 
40     /** Called when emergency number list is updated. */
41     HNOTI_CALL_EMERGENCY_NUMBER_REPORT,
42 
43     /**
44      * Called when SS response is received when DIAL/USSD/SS is changed to SS
45      * by call control.
46      */
47     HNOTI_CALL_SS_REPORT,
48 
49     /** Called when RSRVCC status is updated. */
50     HNOTI_CALL_RSRVCC_STATUS_REPORT,
51 
52     HNOTI_SMS_BASE = 1100,
53 
54     /** Called when new SMS is received. */
55     HNOTI_SMS_NEW_SMS,
56 
57     /** Called when new CDMA SMS is received. */
58     HNOTI_SMS_NEW_CDMA_SMS,
59 
60     /** Called when SMS status is received. */
61     HNOTI_SMS_STATUS_REPORT,
62 
63     /** Called when SMS has been stored on SIM card. */
64     HNOTI_SMS_NEW_SMS_STORED_ON_SIM,
65 
66     /** Called when new cell broadcast is received. */
67     HNOTI_CB_CONFIG_REPORT,
68 
69     HNOTI_SIM_BASE = 1200,
70 
71     /** Called when sim status is changed. */
72     HNOTI_SIM_STATUS_CHANGED,
73 
74     /** Called when STK session is terminated by SIM. */
75     HNOTI_SIM_STK_SESSION_END_NOTIFY,
76 
77     /** Called when SIM issue a STK proactive command to applications. */
78     HNOTI_SIM_STK_PROACTIVE_NOTIFY,
79 
80     /** Called when there is an ALPHA from UICC during Call Control. */
81     HNOTI_SIM_STK_ALPHA_NOTIFY,
82 
83     /** Called when SIM notifies applcations some event happens. */
84     HNOTI_SIM_STK_EVENT_NOTIFY,
85 
86     /** Called when SIM wants application to setup a voice call. */
87     HNOTI_SIM_STK_CALL_SETUP_NOTIFY,
88 
89     /**
90      * Called when that file(s) in the SIM have been updated, or the SIM has
91      * been reinitialized.
92      */
93     HNOTI_SIM_REFRESH_NOTIFY,
94 
95     /** Called when radio protocol is updated. */
96     HNOTI_SIM_RADIO_PROTOCOL_UPDATED,
97 
98     HNOTI_DATA_BASE = 1300,
99 
100     /** Called when pdp context list is updated. */
101     HNOTI_DATA_PDP_CONTEXT_LIST_UPDATED,
102 
103     /** Reporting the data link capability.*/
104     HNOTI_DATA_LINK_CAPABILITY_UPDATED,
105 
106     HNOTI_NETWORK_BASE = 1400,
107 
108     /** Called when CS registered status is updated. */
109     HNOTI_NETWORK_CS_REG_STATUS_UPDATED,
110 
111     /** Called when signal strength is updated. */
112     HNOTI_NETWORK_SIGNAL_STRENGTH_UPDATED,
113 
114     /** Called when radio has received a time message. */
115     HNOTI_NETWORK_TIME_UPDATED,
116 
117     /** Called when time zone is updated. */
118     HNOTI_NETWORK_TIME_ZONE_UPDATED,
119 
120     /** Called when IMS registration state is updated. */
121     HNOTI_NETWORK_IMS_REG_STATUS_UPDATED,
122 
123     /** Called when PS registration state is updated. */
124     HNOTI_NETWORK_PS_REG_STATUS_UPDATED,
125 
126     /** Called when update physical channel configuration. */
127     HNOTI_NETWORK_PHY_CHNL_CFG_UPDATED,
128 
129     /** Called when current cell is updated. */
130     HNOTI_NETWORK_CURRENT_CELL_UPDATED,
131 
132     /** Called when update rrc connection state.*/
133     HNOTI_NETWORK_RRC_CONNECTION_STATE_UPDATED,
134 
135     HNOTI_COMMON_BASE = 1500,
136 
137     /** Called when radio state is updated. */
138     HNOTI_MODEM_RADIO_STATE_UPDATED,
139 
140     /** Called when voice technology is updated. */
141     HNOTI_MODEM_VOICE_TECH_UPDATED,
142 
143     /** Called when DSDS mode is updated.*/
144     HNOTI_MODEM_DSDS_MODE_UPDATED,
145 
146     HNOTI_COMMON_END = 1599,
147 } HRilNotification;
148 #endif // OHOS_RIL_NOTIFICATION_H
149