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 * @return The device name
57 std::string GetDeviceName() const;
60 * @brief Set the device name to the KeyEvent
62 * @param[in] deviceName Device name string to set
64 void SetDeviceName( const std::string& deviceName );
67 * @brief Get the device class the key event originated from
69 * @return The device class
71 DevelDevice::Class::Type GetDeviceClass() const;
74 * @brief Set the device class to the KeyEvent
76 * @param[in] deviceClass Device class to set
78 void SetDeviceClass( DevelDevice::Class::Type deviceClass );
81 * @brief Get the device subclass the key event originated from
83 * @return The device subclass
85 DevelDevice::Subclass::Type GetDeviceSubclass() const;
88 * @brief Set the device subclass to the KeyEvent
90 * @param[in] deviceClass Device subclass to set
92 void SetDeviceSubclass( DevelDevice::Subclass::Type deviceSubclass );
100 KeyEventImpl( const KeyEventImpl& rhs );
104 std::string mDeviceName;
105 DevelDevice::Class::Type mDeviceClass;
106 DevelDevice::Subclass::Type mDeviceSubclass;
109 } // namespace Internal
111 // Helpers for public-api forwarding methods
113 Internal::KeyEventImpl* GetImplementation( KeyEvent* keyEvent );
115 const Internal::KeyEventImpl* GetImplementation( const KeyEvent* keyEvent );
119 #endif // __DALI_INTERNAL_KEY_EVENT_H__