KWayland

resource.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_RESOURCE_H
7 #define WAYLAND_SERVER_RESOURCE_H
8 
9 #include <QObject>
10 
11 #include <KWayland/Server/kwaylandserver_export.h>
12 
13 struct wl_client;
14 struct wl_resource;
15 
16 namespace KWayland
17 {
18 namespace Server
19 {
20 
21 class ClientConnection;
22 class Global;
23 
32 class KWAYLANDSERVER_EXPORT Resource : public QObject
33 {
34  Q_OBJECT
35 public:
36  virtual ~Resource();
37  void create(ClientConnection *client, quint32 version, quint32 id);
38 
42  wl_resource *resource();
46  ClientConnection *client();
50  Global *global();
54  wl_resource *parentResource() const;
61  quint32 id() const;
62 
63 Q_SIGNALS:
69  void unbound();
79  void aboutToBeUnbound();
80 
81 protected:
82  class Private;
83  explicit Resource(Private *d, QObject *parent = nullptr);
85 
86 };
87 
88 }
89 }
90 #endif
Base class for all Globals.
Definition: global.h:46
Represents a bound Resource.
Definition: resource.h:32
Convenient Class which represents a wl_client.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Sep 21 2020 22:50:48 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.