KWaylandServer

abstract_drop_handler.h
1 /*
2  SPDX-FileCopyrightText: 2020 David Edmundson <[email protected]>
3  SPDX-FileCopyrightText: 2021 David Redondo <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6 */
7 
8 #pragma once
9 
10 #include <KWaylandServer/kwaylandserver_export.h>
11 
12 #include <QObject>
13 
14 namespace KWaylandServer
15 {
16 class SurfaceInterface;
17 
18 class KWAYLANDSERVER_EXPORT AbstractDropHandler : public QObject
19 {
20  Q_OBJECT
21 public:
22  AbstractDropHandler(QObject *parent = nullptr);
23  virtual void updateDragTarget(SurfaceInterface *surface, quint32 serial) = 0;
24  virtual void drop() = 0;
25 };
26 }
KIOWIDGETS_EXPORT DropJob * drop(const QDropEvent *dropEvent, const QUrl &destUrl, JobFlags flags=DefaultFlags)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Oct 25 2021 23:08:43 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.