1 #ifndef __DALI_KEY_EXTENSION_PLUGIN_H__
2 #define __DALI_KEY_EXTENSION_PLUGIN_H__
5 * Copyright (c) 2017 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.
28 * @brief KeyExtensionPlugin is an abstract interface, used by dali-adaptor to access key extension plugin.
29 * A concrete implementation must be created for each platform and provided as dynamic library.
32 class KeyExtensionPlugin
38 const char* keyName; ///< XF86 key name
39 const int daliKeyCode; ///< Dali key code
40 const bool deviceButton; ///< Whether the key is from a button on the device
47 KeyExtensionPlugin(){}
53 virtual ~KeyExtensionPlugin(){}
56 * @brief Get extension key lookup table.
59 * @return Pointer of extension Key lookup table.
61 virtual KeyLookup* GetKeyLookupTable() = 0;
64 * @brief Get count of extension key lookup table.
67 * @return count of extension Key lookup table.
69 virtual std::size_t GetKeyLookupTableCount() = 0;