KWayland

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 <KWayland/Server/kwaylandserver_export.h>
12 
13 struct wl_global;
14 
15 namespace KWayland
16 {
17 namespace Server
18 {
19 class Display;
20 
46 class KWAYLANDSERVER_EXPORT Global : public QObject
47 {
48  Q_OBJECT
49 public:
50  virtual ~Global();
55  void create();
59  void destroy();
63  bool isValid() const;
64 
68  Display *display();
69 
73  operator wl_global*();
77  operator wl_global*() const;
78 
79 Q_SIGNALS:
85  void aboutToDestroyGlobal();
86 
87 protected:
88  class Private;
89  explicit Global(Private *d, QObject *parent = nullptr);
91 };
92 
93 }
94 }
95 
96 #endif
Class holding the Wayland server display loop.
Definition: display.h:89
Base class for all Globals.
Definition: global.h:46
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Aug 14 2020 22:49:57 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.