KWaylandServer

global.h
1 /*
2  SPDX-FileCopyrightText: 2014 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 WAYLAND_SERVER_GLOBAL_H
7 #define WAYLAND_SERVER_GLOBAL_H
8 
9 #include <QObject>
10 
11 #include <KWaylandServer/kwaylandserver_export.h>
12 
13 struct wl_global;
14 
15 namespace KWaylandServer
16 {
17 class Display;
18 
44 class KWAYLANDSERVER_EXPORT Global : public QObject
45 {
46  Q_OBJECT
47 public:
48  virtual ~Global();
53  void create();
57  void destroy();
61  bool isValid() const;
62 
66  Display *display();
67 
71  operator wl_global*();
75  operator wl_global*() const;
76 
77 Q_SIGNALS:
83  void aboutToDestroyGlobal();
84 
85 protected:
86  class Private;
87  explicit Global(Private *d, QObject *parent = nullptr);
89 };
90 
91 }
92 
93 #endif
Class holding the Wayland server display loop.
Definition: display.h:90
Base class for all Globals.
Definition: global.h:44
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Oct 19 2020 23:13:14 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.