1 #ifndef __DALI_INTERNAL_KEY_EVENT_H__
2 #define __DALI_INTERNAL_KEY_EVENT_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.
22 #include <dali/public-api/events/key-event.h>
23 #include <dali/devel-api/events/key-event-devel.h>
38 KeyEventImpl( Dali::KeyEvent* keyEvent );
46 * @brief Assignment operator.
47 * @param[in] rhs A reference to the copied handle
48 * @return A reference to this
50 KeyEventImpl& operator=( const KeyEventImpl& rhs );
53 * @brief Get the device name the key event originated from
55 * @param[in] keyEvent The KeyEvent to retrieve the device name from
56 * @return The device name
58 std::string GetDeviceName() const;
61 * @brief Set the device name to the KeyEvent
63 * @param[in] keyEvent The KeyEvent to set the device name on
64 * @param[in] deviceName Device name string to set
66 void SetDeviceName( const std::string& deviceName );
69 * @brief Get the device class the key event originated from
71 * @param[in] keyEvent The KeyEvent to retrieve the device class from
72 * @return The device class
74 DevelKeyEvent::DeviceClass::Type GetDeviceClass() const;
77 * @brief Set the device class to the KeyEvent
79 * @param[in] keyEvent The KeyEvent to set the device class on
80 * @param[in] deviceClass Device class to set
82 void SetDeviceClass( const DevelKeyEvent::DeviceClass::Type& deviceClass );
90 KeyEventImpl( const KeyEventImpl& rhs );
94 std::string mDeviceName;
95 DevelKeyEvent::DeviceClass::Type mDeviceClass;
98 } // namespace Internal
100 // Helpers for public-api forwarding methods
102 Internal::KeyEventImpl* GetImplementation( KeyEvent* keyEvent );
104 const Internal::KeyEventImpl* GetImplementation( const KeyEvent* keyEvent );
108 #endif // __DALI_INTERNAL_KEY_EVENT_H__