1 #ifndef DALI_WINDOW_DEVEL_DEVICE_INFO_EVENT_H
2 #define DALI_WINDOW_DEVEL_DEVICE_INFO_EVENT_H
5 * Copyright (c) 2023 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/device.h>
23 #include <dali/public-api/math/vector2.h>
26 #include <dali/public-api/dali-adaptor-common.h>
33 * @brief DeviceInfoEvent occurs when a device such as a mouse or keyboard is connected or disconnected.
35 * A signal is emitted whenever when a device such as a mouse or keyboard is connected or disconnected.
37 struct DALI_ADAPTOR_API DeviceInfoEvent
47 * @brief Constructor which creates a DeviceInfoEvent instance
48 * @param[in] type The type of the event.
49 * @param[in] name The device name.
50 * @param[in] identifier The identifier.
51 * @param[in] seatname The seat name.
52 * @param[in] deviceClass The device class the event originated from.
53 * @param[in] deviceSubclass The device subclass the event originated from.
55 DeviceInfoEvent(Type type, const std::string& name, const std::string& identifier, const std::string& seatname, const Device::Class::Type deviceClass, const Device::Subclass::Type deviceSubclass)
58 identifier(identifier),
60 deviceClass(deviceClass),
61 deviceSubclass(deviceSubclass)
66 const std::string name;
67 const std::string identifier;
68 const std::string seatname;
69 const Device::Class::Type deviceClass;
70 const Device::Subclass::Type deviceSubclass;
73 } // namespace DevelWindow
77 #endif // DALI_WINDOW_DEVEL_DEVICE_INFO_EVENT_H