1
/** ===========================================================
4
* This file is a part of digiKam project
5
* <a href="http://www.digikam.org">http://www.digikam.org</a>
8
* @brief Drag-and-drop handler for KGeoMap
10
* @author Copyright (C) 2010 by Michael G. Hansen
11
* <a href="mailto:mike at mghansen dot de">mike at mghansen dot de</a>
12
* @author Copyright (C) 2010 by Gilles Caulier
13
* <a href="mailto:caulier dot gilles at gmail dot com">caulier dot gilles at gmail dot com</a>
15
* This program is free software; you can redistribute it
16
* and/or modify it under the terms of the GNU General
17
* Public License as published by the Free Software Foundation;
18
* either version 2, or (at your option) any later version.
20
* This program is distributed in the hope that it will be useful,
21
* but WITHOUT ANY WARRANTY; without even the implied warranty of
22
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
* GNU General Public License for more details.
25
* ============================================================ */
27
#ifndef KGEOMAP_DRAGDROPHANDLER_H
28
#define KGEOMAP_DRAGDROPHANDLER_H
32
#include "kgeomap_primitives.h"
33
#include "libkgeomap_export.h"
40
class KGEOMAP_EXPORT DragDropHandler : public QObject
46
DragDropHandler(QObject* const parent = 0);
47
virtual ~DragDropHandler();
49
virtual Qt::DropAction accepts(const QDropEvent* e) = 0;
50
virtual bool dropEvent(const QDropEvent* e, const GeoCoordinates& dropCoordinates) = 0;
51
virtual QMimeData* createMimeData(const QList<QPersistentModelIndex>& modelIndices) = 0;
54
} /* namespace KGeoMap */
56
#endif /* KGEOMAP_DRAGDROPHANDLER_H */