• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2023 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 SMS_SERVICE_IPC_INTERFACE_CODE_H
17 #define SMS_SERVICE_IPC_INTERFACE_CODE_H
18 
19 /* SID:4008 */
20 namespace OHOS {
21 namespace Telephony {
22 enum class SmsServiceInterfaceCode {
23     /**
24      * Request to send a text type SMS message.
25      */
26     TEXT_BASED_SMS_DELIVERY = 0,
27 
28     /**
29      * Request to send a text type SMS message without saved into SMS Database.
30      */
31     SEND_SMS_TEXT_WITHOUT_SAVE,
32 
33     /**
34      * Request to send a data type SMS message.
35      */
36     DATA_BASED_SMS_DELIVERY,
37 
38     /**
39      * Request to set the address for Short Message Service Center (SMSC) based on a specified slot ID.
40      */
41     SET_SMSC_ADDRESS,
42 
43     /**
44      * Request to get the SMSC address based on a specified slot ID.
45      */
46     GET_SMSC_ADDRESS,
47 
48     /**
49      * Request to add a sms to sim card.
50      */
51     ADD_SIM_MESSAGE,
52 
53     /**
54      * Request to delete a sms in the sim card.
55      */
56     DEL_SIM_MESSAGE,
57 
58     /**
59      * Request to update an sms in the sim card.
60      */
61     UPDATE_SIM_MESSAGE,
62 
63     /**
64      * Request to get all SMS records in the sim card.
65      */
66     GET_ALL_SIM_MESSAGE,
67 
68     /**
69      * Request to configure a cell broadcast in a certain band range.
70      */
71     SET_CB_CONFIG,
72 
73     /**
74      * Request to enable or disable IMS SMS.
75      */
76     SET_IMS_SMS_CONFIG,
77 
78     /**
79      * Request to set the Default Sms Slot Id To SmsService.
80      */
81     SET_DEFAULT_SMS_SLOT_ID,
82 
83     /**
84      * Request to get the Default Sms Slot Id from SmsService.
85      */
86     GET_DEFAULT_SMS_SLOT_ID,
87 
88     /**
89      * Request to get the Default Sms Sim Id from SmsService.
90      */
91     GET_DEFAULT_SMS_SIM_ID,
92 
93     /**
94      * Request to split a long SMS message into multiple segments.
95      */
96     SPLIT_MESSAGE,
97 
98     /**
99      * Request to get an SMS segment encode relation information.
100      */
101     GET_SMS_SEGMENTS_INFO,
102 
103     /**
104      * Request to get the Ims Short Message Format 3gpp/3gpp2.
105      */
106     GET_IMS_SHORT_MESSAGE_FORMAT,
107 
108     /**
109      * Request to check if SMS over IMS is supported.
110      */
111     IS_IMS_SMS_SUPPORTED,
112 
113     /**
114      * Request to check if the device is capable of sending and receiving SMS messages.
115      */
116     HAS_SMS_CAPABILITY,
117 
118     /**
119      * Request to an MMS message.
120      */
121     SEND_MMS,
122 
123     /**
124      * Request to download an MMS message.
125      */
126     DOWNLOAD_MMS,
127 
128     /**
129      * Request to create a short message.
130      */
131     CREATE_MESSAGE,
132 
133     /**
134      * Request to mms base64 encode.
135      */
136     MMS_BASE64_ENCODE,
137 
138     /**
139      * Request to mms base64 decode.
140      */
141     MMS_BASE64_DECODE,
142 
143     /**
144      * Request to get encode string.
145      */
146     GET_ENCODE_STRING,
147 };
148 } // namespace Telephony
149 } // namespace OHOS
150 #endif // SMS_SERVICE_IPC_INTERFACE_CODE_H