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 28 enum MsgLanguageId { 29 MSG_ID_RESERVED_LANG = 0, 30 MSG_ID_TURKISH_LANG, 31 MSG_ID_SPANISH_LANG, 32 MSG_ID_PORTUGUESE_LANG, 33 MSG_ID_BENGALI_LANG, 34 MSG_ID_GUJARATI_LANG, 35 MSG_ID_HINDI_LANG, 36 MSG_ID_KANNADA_LANG, 37 MSG_ID_MALAYALAM_LANG, 38 MSG_ID_ORIYA_LANG, 39 MSG_ID_PUNJABI_LANG, 40 MSG_ID_TAMIL_LANG, 41 MSG_ID_TELUGU_LANG, 42 MSG_ID_URDU_LANG, 43 }; 44 45 struct MsgLangInfo { 46 bool bSingleShift = false; 47 bool bLockingShift = false; 48 MSG_LANGUAGE_ID_T singleLang = 0; 49 MSG_LANGUAGE_ID_T lockingLang = 0; 50 }; 51 } // namespace Telephony 52 } // namespace OHOS 53 #endif // MSG_TEXT_CONVERT_COMMON_H