• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 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_COMMON_H
17 #define SMS_COMMON_H
18 namespace OHOS {
19 namespace Telephony {
20 static constexpr uint8_t SMS_FAIL_RETRY = 0;
21 static constexpr uint8_t SMS_EVENT_NEW_SMS_REPLY = 48;
22 static constexpr uint8_t MSG_SMS_RETRY_DELIVERY = 49;
23 enum AckIncomeCause {
24     SMS_ACK_RESULT_OK = 0x00,
25     SMS_ACK_PROCESSED = 0x01,
26     SMS_ACK_REPEATED_ERROR = 0x02,
27     SMS_ACK_OUT_OF_MEMORY = 0x03,
28     SMS_ACK_INVALID_TELESERVICE_ID = 0x04,
29     SMS_ACK_UNKNOWN_ERROR = 0xFF,
30 };
31 
32 enum NetWorkType {
33     NET_TYPE_UNKNOWN = 0,
34     NET_TYPE_GSM,
35     NET_TYPE_CDMA,
36 };
37 
38 enum NetDomainType {
39     NET_DOMAIN_CS = 0,
40     NET_DOMAIN_IMS,
41     NET_DOMAIN_UNKNOWN,
42 };
43 } // namespace Telephony
44 } // namespace OHOS
45 #endif
46