File indexing completed on 2024-05-19 16:35:22
0001 /* 0002 SPDX-FileCopyrightText: 2015 Sebastian Kügler <sebas@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 #pragma once 0007 0008 #include "kwin_export.h" 0009 0010 #include <QObject> 0011 #include <memory> 0012 0013 namespace KWaylandServer 0014 { 0015 0016 class Display; 0017 class OutputManagementV2InterfacePrivate; 0018 0019 /** 0020 * @class OutputManagementInterface 0021 * 0022 * This class is used to change the configuration of the Wayland server's outputs. 0023 * The client requests an OutputConfiguration, changes its OutputDevices and then 0024 * calls OutputConfiguration::apply, which makes this class emit a signal, carrying 0025 * the new configuration. 0026 * The server is then expected to make the requested changes by applying the settings 0027 * of the OutputDevices to the Outputs. 0028 * 0029 * @see OutputConfiguration 0030 * @see OutputConfigurationInterface 0031 */ 0032 class KWIN_EXPORT OutputManagementV2Interface : public QObject 0033 { 0034 Q_OBJECT 0035 0036 public: 0037 explicit OutputManagementV2Interface(Display *display, QObject *parent = nullptr); 0038 ~OutputManagementV2Interface() override; 0039 0040 private: 0041 std::unique_ptr<OutputManagementV2InterfacePrivate> d; 0042 }; 0043 0044 }