kwin/src/wayland/touch_interface.h
Andreas Cord-Landwehr 9267f146fd KWayland: Convert license headers to SPDX
Summary:
Convert license headers to SPDX expressions and add license files as
required by REUSE specification.

Reviewers: zzag

Reviewed By: zzag

Subscribers: kde-frameworks-devel

Tags: #frameworks

Maniphest Tasks: T11550

Differential Revision: https://phabricator.kde.org/D28058
2020-03-16 19:57:44 +01:00

47 lines
1,002 B
C++

/*
SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org>
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#ifndef WAYLAND_SERVER_TOUCH_INTERFACE_H
#define WAYLAND_SERVER_TOUCH_INTERFACE_H
#include <KWayland/Server/kwaylandserver_export.h>
#include "resource.h"
namespace KWayland
{
namespace Server
{
class SeatInterface;
/**
* @brief Resource for the wl_touch interface.
*
**/
class KWAYLANDSERVER_EXPORT TouchInterface : public Resource
{
Q_OBJECT
public:
virtual ~TouchInterface();
private:
void down(qint32 id, quint32 serial, const QPointF &localPos);
void up(qint32 id, quint32 serial);
void frame();
void cancel();
void move(qint32 id, const QPointF &localPos);
friend class SeatInterface;
explicit TouchInterface(SeatInterface *parent, wl_resource *parentResource);
class Private;
Private *d_func() const;
};
}
}
Q_DECLARE_METATYPE(KWayland::Server::TouchInterface*)
#endif