KWaylandServer

filtered_display.h
1 /*
2  SPDX-FileCopyrightText: 2017 David Edmundson <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 #pragma once
8 
9 #include "display.h"
10 
11 #include <KWaylandServer/kwaylandserver_export.h>
12 
13 namespace KWaylandServer
14 {
15 class FilteredDisplayPrivate;
16 
17 /**
18  * Server Implementation that allows one to restrict which globals are available to which clients
19  *
20  * Users of this class must implement the virtual @method allowInterface method.
21  */
22 class KWAYLANDSERVER_EXPORT FilteredDisplay : public Display
23 {
24  Q_OBJECT
25 public:
26  FilteredDisplay(QObject *parent);
27  ~FilteredDisplay() override;
28 
29  /**
30  * Return whether the @arg client can see the interface with the given @arg interfaceName
31  *
32  * When false will not see these globals for a given interface in the registry,
33  * and any manual attempts to bind will fail
34  *
35  * @return true if the client should be able to access the global with the following interfaceName
36  */
37  virtual bool allowInterface(ClientConnection *client, const QByteArray &interfaceName) = 0;
38 
39 private:
41 };
42 
43 }
Class holding the Wayland server display loop.
Definition: display.h:47
Convenient Class which represents a wl_client.
Server Implementation that allows one to restrict which globals are available to which clients...
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Oct 23 2021 23:08:27 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.