525d12bee5
If you want git blame to ignore formatting revisions run: git config blame.ignoreRevsFile .git-blame-ignore-revs
33 lines
642 B
C++
33 lines
642 B
C++
/*
|
|
SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
|
|
|
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "clientbuffer.h"
|
|
|
|
#include <QPointer>
|
|
|
|
namespace KWaylandServer
|
|
{
|
|
class Display;
|
|
|
|
class KWAYLANDSERVER_EXPORT ClientBufferIntegration : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ClientBufferIntegration(Display *display);
|
|
~ClientBufferIntegration() override;
|
|
|
|
Display *display() const;
|
|
|
|
virtual ClientBuffer *createBuffer(wl_resource *resource);
|
|
|
|
private:
|
|
QPointer<Display> m_display;
|
|
};
|
|
|
|
} // namespace KWaylandServer
|