File indexing completed on 2024-05-19 16:35:33

0001 /*
0002     SPDX-FileCopyrightText: 2018 David Edmundson <kde@davidedmundson.co.uk>
0003     SPDX-FileCopyrightText: 2020 David Edmundson <kde@davidedmundson.co.uk>
0004 
0005     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0006 */
0007 #pragma once
0008 
0009 #include "kwin_export.h"
0010 
0011 #include <QObject>
0012 #include <memory>
0013 
0014 namespace KWaylandServer
0015 {
0016 class Display;
0017 class OutputInterface;
0018 class XdgOutputManagerV1InterfacePrivate;
0019 
0020 /**
0021  * Global manager for XdgOutputs
0022  */
0023 class KWIN_EXPORT XdgOutputManagerV1Interface : public QObject
0024 {
0025     Q_OBJECT
0026 
0027 public:
0028     explicit XdgOutputManagerV1Interface(Display *display, QObject *parent = nullptr);
0029     ~XdgOutputManagerV1Interface() override;
0030 
0031     void offer(OutputInterface *output);
0032 
0033 private:
0034     std::unique_ptr<XdgOutputManagerV1InterfacePrivate> d;
0035 };
0036 
0037 }