2021-09-03 12:43:06 +00:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2020 David Edmundson <davidedmundson@kde.org>
|
|
|
|
SPDX-FileCopyrightText: 2021 David Redondo <kde@david-redondo.de>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-04-22 09:27:33 +00:00
|
|
|
#include "kwin_export.h"
|
2021-09-03 12:43:06 +00:00
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
namespace KWaylandServer
|
|
|
|
{
|
|
|
|
class SurfaceInterface;
|
|
|
|
|
2022-04-22 09:27:33 +00:00
|
|
|
class KWIN_EXPORT AbstractDropHandler : public QObject
|
2021-09-03 12:43:06 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
AbstractDropHandler(QObject *parent = nullptr);
|
|
|
|
virtual void updateDragTarget(SurfaceInterface *surface, quint32 serial) = 0;
|
|
|
|
virtual void drop() = 0;
|
|
|
|
};
|
|
|
|
}
|