kwin/src/wayland/surfacerole_p.h
Alexander Lohnau 525d12bee5 Run clang-format
If you want git blame to ignore formatting revisions run:
git config blame.ignoreRevsFile .git-blame-ignore-revs
2021-08-29 07:11:06 +02:00

38 lines
732 B
C++

/*
SPDX-FileCopyrightText: 2019 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 <QByteArray>
#include <QPointer>
namespace KWaylandServer
{
class SurfaceInterface;
class SurfaceRole
{
public:
SurfaceRole(SurfaceInterface *surface, const QByteArray &name);
virtual ~SurfaceRole();
QByteArray name() const;
const QPointer<SurfaceInterface> &surface() const
{
return m_surface;
}
virtual void commit() = 0;
static SurfaceRole *get(SurfaceInterface *surface);
private:
QPointer<SurfaceInterface> m_surface;
QByteArray m_name;
Q_DISABLE_COPY(SurfaceRole)
};
}