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 #include <mutex> 17 #include <thread> 18 19 #ifndef INPUTMETHOD_IMF_INPUT_METHOD_PROPERTY_H 20 #define INPUTMETHOD_IMF_INPUT_METHOD_PROPERTY_H 21 22 namespace OHOS { 23 namespace MiscServices { 24 struct Property { 25 std::string name; // the bundleName of inputMethod 26 std::string id; // the extensionName of inputMethod 27 std::string label; // the label of inputMethod 28 int32_t labelId = 0; // the labelId of inputMethod 29 std::string icon; // the icon of inputMethod 30 int32_t iconId = 0; // the icon id of inputMethod 31 }; 32 33 struct SubProperty { 34 std::string label; // the label of subtype 35 int32_t labelId = 0; // the labelId of subtype 36 std::string name; // the bundleName of inputMethod 37 std::string id; // the name of subtype 38 std::string mode; // the mode of subtype, containing "upper" and "lower" 39 std::string locale; // the tongues of subtype, such as "zh_CN", "en_US", etc. 40 std::string language; // the language of subtype 41 std::string icon; // the icon of subtype 42 int32_t iconId = 0; // the icon id of subtype 43 }; 44 } // namespace MiscServices 45 } // namespace OHOS 46 47 #endif // INPUTMETHOD_IMF_INPUT_METHOD_PROPERTY_H 48