File indexing completed on 2024-05-12 17:01:56

0001 /*
0002     SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "core/inputbackend.h"
0010 
0011 #include <map>
0012 #include <memory>
0013 
0014 namespace KWaylandServer
0015 {
0016 class FakeInputInterface;
0017 class FakeInputDevice;
0018 }
0019 
0020 namespace KWin
0021 {
0022 
0023 class FakeInputDevice;
0024 
0025 class FakeInputBackend : public InputBackend
0026 {
0027     Q_OBJECT
0028 
0029 public:
0030     explicit FakeInputBackend();
0031     ~FakeInputBackend();
0032 
0033     void initialize() override;
0034 
0035 private:
0036     std::unique_ptr<KWaylandServer::FakeInputInterface> m_interface;
0037     std::map<KWaylandServer::FakeInputDevice *, std::unique_ptr<FakeInputDevice>> m_devices;
0038 };
0039 
0040 } // namespace KWin