2017-06-29 00:57:46 +01:00
|
|
|
/**
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-FileCopyrightText: 2018 Albert Vaca Cintora <albertvaka@gmail.com>
|
2017-06-29 00:57:46 +01:00
|
|
|
*
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
2017-06-29 00:57:46 +01:00
|
|
|
*/
|
|
|
|
|
2018-04-02 19:20:24 +01:00
|
|
|
#ifndef WAYLANDREMOTEINPUT_H
|
|
|
|
#define WAYLANDREMOTEINPUT_H
|
2017-06-29 00:57:46 +01:00
|
|
|
|
2018-11-07 16:17:38 +00:00
|
|
|
#include <QPointer>
|
2018-04-02 19:20:24 +01:00
|
|
|
#include "abstractremoteinput.h"
|
2017-06-29 00:57:46 +01:00
|
|
|
|
2018-04-02 19:20:24 +01:00
|
|
|
namespace KWayland
|
|
|
|
{
|
|
|
|
namespace Client
|
|
|
|
{
|
|
|
|
class FakeInput;
|
|
|
|
}
|
|
|
|
}
|
2017-06-29 00:57:46 +01:00
|
|
|
|
2018-04-02 19:20:24 +01:00
|
|
|
class WaylandRemoteInput
|
|
|
|
: public AbstractRemoteInput
|
2017-06-29 00:57:46 +01:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2018-04-02 19:20:24 +01:00
|
|
|
explicit WaylandRemoteInput(QObject* parent);
|
|
|
|
|
|
|
|
bool handlePacket(const NetworkPacket& np) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void setupWaylandIntegration();
|
2017-06-29 00:57:46 +01:00
|
|
|
|
2018-11-07 16:17:38 +00:00
|
|
|
QPointer<KWayland::Client::FakeInput> m_waylandInput;
|
2018-04-02 19:20:24 +01:00
|
|
|
bool m_waylandAuthenticationRequested;
|
2017-06-29 00:57:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|