File indexing completed on 2025-04-27 04:04:21
0001 // SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org> 0002 // SPDX-License-Identifier: LGPL-2.1-or-later 0003 0004 #pragma once 0005 0006 #include <QObject> 0007 #include <exiv2/exiv2.hpp> 0008 0009 class ImageInfo : public QObject 0010 { 0011 Q_PROPERTY(QString filePath READ filePath WRITE setFilePath NOTIFY filePathChanged) 0012 public: 0013 explicit ImageInfo(QObject *parent = nullptr); 0014 ~ImageInfo(); 0015 0016 QString filePath() const; 0017 void setFilePath(const QString &filePath); 0018 0019 Q_SIGNALS: 0020 void filePathChanged(); 0021 0022 private: 0023 QString m_filePath; 0024 Exiv2::ExifData m_data; 0025 };