KWayland

testserver.h
1 /*
2  SPDX-FileCopyrightText: 2016 Martin Gräßlin <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 #ifndef TESTSERVER_H
7 #define TESTSERVER_H
8 
9 #include <QHash>
10 #include <QObject>
11 #include <QPointF>
12 #include <QVector>
13 
14 class QElapsedTimer;
15 class QTimer;
16 
17 namespace KWayland
18 {
19 namespace Server
20 {
21 class Display;
22 class SeatInterface;
23 class ShellInterface;
24 class ShellSurfaceInterface;
25 }
26 }
27 
28 class TestServer : public QObject
29 {
30  Q_OBJECT
31 public:
32  explicit TestServer(QObject *parent);
33  virtual ~TestServer();
34 
35  void init();
36  void startTestApp(const QString &app, const QStringList &arguments);
37 
38 private:
39  void repaint();
40 
41  KWayland::Server::Display *m_display = nullptr;
42  KWayland::Server::ShellInterface *m_shell = nullptr;
43  KWayland::Server::SeatInterface *m_seat = nullptr;
45  QTimer *m_repaintTimer;
46  QScopedPointer<QElapsedTimer> m_timeSinceStart;
47  QPointF m_cursorPos;
48  QHash<qint32, qint32> m_touchIdMapper;
49 };
50 
51 #endif
Represents a Seat on the Wayland Display.
Class holding the Wayland server display loop.
Definition: display.h:89
QCA_EXPORT void init()
Global for the wl_shell interface.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Aug 7 2020 22:48:20 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.