1 #ifndef DALI_VIRTUAL_KEYBOARD_OPTIONS_H
2 #define DALI_VIRTUAL_KEYBOARD_OPTIONS_H
5 * Copyright (c) 2020 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
24 #include <dali/public-api/object/property-map.h>
27 #include <dali/public-api/adaptor-framework/input-method.h>
32 * Class to handle the Input Method options
34 class DALI_ADAPTOR_API InputMethodOptions
40 InputMethodOptions(); /// Default InputMethodOptions options
45 ~InputMethodOptions();
48 * @brief Returns whether panel layout type is password or not
49 * @return true if panel layout type is password, false otherwise.
51 bool IsPassword() const;
54 * @brief Apply property map to attribute class, this class will keep the virtualKeyboard settings.
55 * @param[in] settings The property map to be applied
57 void ApplyProperty(const Property::Map& settings);
60 * @brief Retrieve property map from current option
61 * @param[out] settings The converted property map
63 void RetrieveProperty(Property::Map& settings);
65 public: // Intended for internal use
67 * @brief Set option respectively
68 * @param[in] type The type of source option will be updated
69 * @param[in] options The source option to be applied
70 * @param[out] index The updated index after applying source option
71 * @return true if the value of this option is updated by source option
73 DALI_INTERNAL bool CompareAndSet(InputMethod::Category::Type type, const InputMethodOptions& options, int& index);
77 std::unique_ptr<Impl> mImpl;
82 #endif // DALI_VIRTUAL_KEYBOARD_OPTIONS_H