File indexing completed on 2024-04-28 15:39:07
0001 // SPDX-FileCopyrightText: 2020-2022 Tobias Leupold <tl at stonemx dot de> 0002 // 0003 // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0004 0005 #ifndef MIMEHELPER_H 0006 #define MIMEHELPER_H 0007 0008 // Local includes 0009 #include "KGeoTag.h" 0010 0011 // Qt includes 0012 #include <QString> 0013 #include <QVector> 0014 0015 // Qt classes 0016 class QMimeData; 0017 0018 namespace MimeHelper 0019 { 0020 0021 QVector<QString> getUsablePaths(KGeoTag::DropTarget dropTarget, const QMimeData *data); 0022 QString mimeType(const QString &path); 0023 KGeoTag::FileType classifyFile(const QString &path); 0024 bool isRawImage(const QString &path); 0025 0026 } 0027 0028 #endif // MIMEHELPER_H