Changeset View
Changeset View
Standalone View
Standalone View
src/server/display.h
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org> | 2 | SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org> | ||
3 | SPDX-FileCopyrightText: 2018 David Edmundson <davidedmundson@kde.org> | 3 | SPDX-FileCopyrightText: 2018 David Edmundson <davidedmundson@kde.org> | ||
4 | 4 | | |||
5 | SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL | 5 | SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL | ||
6 | */ | 6 | */ | ||
7 | #ifndef WAYLAND_SERVER_DISPLAY_H | 7 | #ifndef WAYLAND_SERVER_DISPLAY_H | ||
8 | #define WAYLAND_SERVER_DISPLAY_H | 8 | #define WAYLAND_SERVER_DISPLAY_H | ||
9 | 9 | | |||
10 | #include <QList> | 10 | #include <QList> | ||
11 | #include <QObject> | 11 | #include <QObject> | ||
12 | 12 | | |||
13 | #include <KWayland/Server/kwaylandserver_export.h> | 13 | #include <KWayland/Server/kwaylandserver_export.h> | ||
14 | 14 | | |||
15 | #include "clientconnection.h" | 15 | #include "clientconnection.h" | ||
16 | #include "keyboard_shortcuts_inhibit_interface.h" | ||||
16 | 17 | | |||
17 | struct wl_client; | 18 | struct wl_client; | ||
18 | struct wl_display; | 19 | struct wl_display; | ||
19 | struct wl_event_loop; | 20 | struct wl_event_loop; | ||
20 | 21 | | |||
21 | namespace KWayland | 22 | namespace KWayland | ||
22 | { | 23 | { | ||
23 | /** | 24 | /** | ||
▲ Show 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | |||||
75 | class ServerSideDecorationPaletteManagerInterface; | 76 | class ServerSideDecorationPaletteManagerInterface; | ||
76 | class PlasmaVirtualDesktopManagementInterface; | 77 | class PlasmaVirtualDesktopManagementInterface; | ||
77 | class XdgOutputManagerInterface; | 78 | class XdgOutputManagerInterface; | ||
78 | class XdgDecorationManagerInterface; | 79 | class XdgDecorationManagerInterface; | ||
79 | class EglStreamControllerInterface; | 80 | class EglStreamControllerInterface; | ||
80 | class KeyStateInterface; | 81 | class KeyStateInterface; | ||
81 | class LinuxDmabufUnstableV1Interface; | 82 | class LinuxDmabufUnstableV1Interface; | ||
82 | class TabletManagerInterface; | 83 | class TabletManagerInterface; | ||
84 | class KeyboardShortcutsInhibitManagerInterface; | ||||
83 | 85 | | |||
84 | /** | 86 | /** | ||
85 | * @brief Class holding the Wayland server display loop. | 87 | * @brief Class holding the Wayland server display loop. | ||
86 | * | 88 | * | ||
87 | * @todo Improve documentation | 89 | * @todo Improve documentation | ||
88 | **/ | 90 | **/ | ||
89 | class KWAYLANDSERVER_EXPORT Display : public QObject | 91 | class KWAYLANDSERVER_EXPORT Display : public QObject | ||
90 | { | 92 | { | ||
▲ Show 20 Lines • Show All 223 Lines • ▼ Show 20 Line(s) | 97 | public: | |||
314 | /** | 316 | /** | ||
315 | * Creates the entry point to support wacom-like tablets and pens. | 317 | * Creates the entry point to support wacom-like tablets and pens. | ||
316 | * | 318 | * | ||
317 | * @since 5.67 | 319 | * @since 5.67 | ||
318 | */ | 320 | */ | ||
319 | TabletManagerInterface *createTabletManagerInterface(QObject *parent = nullptr); | 321 | TabletManagerInterface *createTabletManagerInterface(QObject *parent = nullptr); | ||
320 | 322 | | |||
321 | /** | 323 | /** | ||
324 | * Creates the TestKeyboardShortcutsInhibitorInterface | ||||
325 | * | ||||
326 | * @since 5.71 | ||||
327 | */ | ||||
328 | KeyboardShortcutsInhibitManagerInterface *createKeyboardShortcutsInhibitManager(QObject *object); | ||||
crossi: parameter should be `QObject *parent = nullptr` | |||||
329 | | ||||
330 | /** | ||||
322 | * Gets the ClientConnection for the given @p client. | 331 | * Gets the ClientConnection for the given @p client. | ||
323 | * If there is no ClientConnection yet for the given @p client, it will be created. | 332 | * If there is no ClientConnection yet for the given @p client, it will be created. | ||
324 | * @param client The native client for which the ClientConnection is retrieved | 333 | * @param client The native client for which the ClientConnection is retrieved | ||
325 | * @return The ClientConnection for the given native client | 334 | * @return The ClientConnection for the given native client | ||
326 | **/ | 335 | **/ | ||
327 | ClientConnection *getConnection(wl_client *client); | 336 | ClientConnection *getConnection(wl_client *client); | ||
328 | QVector<ClientConnection*> connections() const; | 337 | QVector<ClientConnection*> connections() const; | ||
329 | 338 | | |||
Show All 34 Lines |
parameter should be QObject *parent = nullptr