1 #ifndef DALI_VIRTUAL_KEYBOARD_OPTIONS_H
2 #define DALI_VIRTUAL_KEYBOARD_OPTIONS_H
5 * Copyright (c) 2019 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>
33 * Class to handle the Input Method options
35 class DALI_ADAPTOR_API InputMethodOptions
42 InputMethodOptions(); /// Default InputMethodOptions options
47 ~InputMethodOptions();
50 * @brief Returns whether panel layout type is password or not
51 * @return true if panel layout type is password, false otherwise.
53 bool IsPassword() const;
56 * @brief Apply property map to attribute class, this class will keep the virtualKeyboard settings.
57 * @param[in] settings The property map to be applied
59 void ApplyProperty( const Property::Map& settings );
62 * @brief Retrieve property map from current option
63 * @param[out] settings The converted property map
65 void RetrieveProperty( Property::Map& settings );
67 public: // Intended for internal use
69 * @brief Set option respectively
70 * @param[in] type The type of source option will be updated
71 * @param[in] options The source option to be applied
72 * @param[out] index The updated index after applying source option
73 * @return true if the value of this option is updated by source option
75 DALI_INTERNAL bool CompareAndSet( InputMethod::Category::Type type, const InputMethodOptions& options, int& index );
80 std::unique_ptr<Impl> mImpl;
85 #endif // DALI_VIRTUAL_KEYBOARD_OPTIONS_H