1 /*
2  * Copyright (C) 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 MSG_TEXT_CONVERT_COMMON_H
17 #define MSG_TEXT_CONVERT_COMMON_H
18 
19 namespace OHOS {
20 namespace Telephony {
21 using WCHAR = unsigned long;
22 using MSG_CHAR_TYPE_T = unsigned char;
23 using MSG_LANGUAGE_ID_T = unsigned char;
24 using msg_encode_type_t = unsigned char;
25 
26 enum MsgCharType { MSG_DEFAULT_CHAR = 0, MSG_GSM7EXT_CHAR, MSG_TURKISH_CHAR, MSG_SPANISH_CHAR, MSG_PORTUGUESE_CHAR };
27 enum SmsCodingNationalType {
28     SMS_CODING_NATIONAL_TYPE_DEFAULT = 0,
29     SMS_CODING_NATIONAL_TYPE_TURKISH,
30     SMS_CODING_NATIONAL_TYPE_SPANISH,
31     SMS_CODING_NATIONAL_TYPE_PORTUGUESE,
32 };
33 
34 enum MsgLanguageId {
35     MSG_ID_RESERVED_LANG = 0,
36     MSG_ID_TURKISH_LANG,
37     MSG_ID_SPANISH_LANG,
38     MSG_ID_PORTUGUESE_LANG,
39     MSG_ID_BENGALI_LANG,
40     MSG_ID_GUJARATI_LANG,
41     MSG_ID_HINDI_LANG,
42     MSG_ID_KANNADA_LANG,
43     MSG_ID_MALAYALAM_LANG,
44     MSG_ID_ORIYA_LANG,
45     MSG_ID_PUNJABI_LANG,
46     MSG_ID_TAMIL_LANG,
47     MSG_ID_TELUGU_LANG,
48     MSG_ID_URDU_LANG,
49 };
50 
51 struct MsgLangInfo {
52     bool bSingleShift = false;
53     bool bLockingShift = false;
54     MSG_LANGUAGE_ID_T singleLang = 0;
55     MSG_LANGUAGE_ID_T lockingLang = 0;
56 };
57 } // namespace Telephony
58 } // namespace OHOS
59 #endif // MSG_TEXT_CONVERT_COMMON_H