digiKam
Loading...
Searching...
No Matches
geodragdrophandler.h
Go to the documentation of this file.
1/* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2010-03-18
7 * Description : Drag-and-drop handler for geolocation interface
8 *
9 * SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 * SPDX-FileCopyrightText: 2010 by Michael G. Hansen <mike at mghansen dot de>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16#pragma once
17
18// Local includes
19
20#include "geocoordinates.h"
21#include "geoifacetypes.h"
22#include "digikam_export.h"
23
24class QDropEvent;
25
26namespace Digikam
27{
28
29class DIGIKAM_EXPORT GeoDragDropHandler : public QObject
30{
31 Q_OBJECT
32
33public:
34
35 explicit GeoDragDropHandler(QObject* const parent = nullptr);
36 ~GeoDragDropHandler() override;
37
38 virtual Qt::DropAction accepts(const QDropEvent* e) = 0;
39 virtual bool dropEvent(const QDropEvent* e, const GeoCoordinates& dropCoordinates) = 0;
40 virtual QMimeData* createMimeData(const QList<QPersistentModelIndex>& modelIndices) = 0;
41};
42
43} // namespace Digikam
Definition geocoordinates.h:44
Definition geodragdrophandler.h:30
virtual QMimeData * createMimeData(const QList< QPersistentModelIndex > &modelIndices)=0
virtual bool dropEvent(const QDropEvent *e, const GeoCoordinates &dropCoordinates)=0
virtual Qt::DropAction accepts(const QDropEvent *e)=0
Definition datefolderview.cpp:34