KWayland

outputmanagement.h
1 /*
2  SPDX-FileCopyrightText: 2015 Sebastian Kügler <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 #ifndef KWAYLAND_CLIENT_OUTPUTMANAGEMENT_H
7 #define KWAYLAND_CLIENT_OUTPUTMANAGEMENT_H
8 
9 #include <QObject>
10 
11 #include <KWayland/Client/kwaylandclient_export.h>
12 
13 struct org_kde_kwin_outputmanagement;
14 struct org_kde_kwin_outputconfiguration;
15 
16 namespace KWayland
17 {
18 namespace Client
19 {
20 
21 class EventQueue;
22 class OutputDevice;
23 class OutputConfiguration;
24 
49 class KWAYLANDCLIENT_EXPORT OutputManagement : public QObject
50 {
51  Q_OBJECT
52 public:
59  explicit OutputManagement(QObject *parent = nullptr);
60  virtual ~OutputManagement();
61 
67  void setup(org_kde_kwin_outputmanagement *outputmanagement);
71  bool isValid() const;
77  void release();
92  void destroy();
93 
97  void setEventQueue(EventQueue *queue);
101  EventQueue *eventQueue();
102 
103  OutputConfiguration *createConfiguration(QObject *parent = nullptr);
104 
105  operator org_kde_kwin_outputmanagement*();
106  operator org_kde_kwin_outputmanagement*() const;
107 
108 Q_SIGNALS:
115  void removed();
116 
117 private:
118  class Private;
120 };
121 
122 
123 }
124 }
125 
126 #endif
Wrapper class for wl_event_queue interface.
Definition: event_queue.h:55
OutputConfiguration provides access to changing OutputDevices.
Wrapper for the org_kde_kwin_outputmanagement interface.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Aug 7 2020 22:48:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.