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

0001 /*
0002     SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #pragma once
0008 
0009 #include "clientbuffer.h"
0010 
0011 #include <QPointer>
0012 
0013 namespace KWaylandServer
0014 {
0015 class Display;
0016 
0017 class KWIN_EXPORT ClientBufferIntegration : public QObject
0018 {
0019     Q_OBJECT
0020 
0021 public:
0022     explicit ClientBufferIntegration(Display *display);
0023     ~ClientBufferIntegration() override;
0024 
0025     Display *display() const;
0026 
0027     virtual ClientBuffer *createBuffer(wl_resource *resource);
0028 
0029 private:
0030     QPointer<Display> m_display;
0031 };
0032 
0033 } // namespace KWaylandServer