File indexing completed on 2025-01-19 03:51:02
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2005-06-14 0007 * Description : A QImage loader for DImg framework. 0008 * 0009 * SPDX-FileCopyrightText: 2005 by Renchi Raju <renchi dot raju at gmail dot com> 0010 * SPDX-FileCopyrightText: 2006-2021 by Caulier Gilles <caulier dot gilles at gmail dot com> 0011 * 0012 * SPDX-License-Identifier: GPL-2.0-or-later 0013 * 0014 * ============================================================ */ 0015 0016 #ifndef DIGIKAM_DIMG_QIMAGE_LOADER_H 0017 #define DIGIKAM_DIMG_QIMAGE_LOADER_H 0018 0019 // Local includes 0020 0021 #include "dimg.h" 0022 #include "dimgloader.h" 0023 #include "digikam_config.h" 0024 0025 using namespace Digikam; 0026 0027 namespace DigikamQImageDImgPlugin 0028 { 0029 0030 class DImgQImageLoader : public DImgLoader 0031 { 0032 public: 0033 0034 explicit DImgQImageLoader(DImg* const image); 0035 ~DImgQImageLoader() override; 0036 0037 bool load(const QString& filePath, DImgLoaderObserver* const observer) override; 0038 bool save(const QString& filePath, DImgLoaderObserver* const observer) override; 0039 0040 bool hasAlpha() const override; 0041 bool sixteenBit() const override; 0042 bool isReadOnly() const override; 0043 0044 private: 0045 0046 bool m_hasAlpha; 0047 bool m_sixteenBit; 0048 }; 0049 0050 } // namespace DigikamQImageDImgPlugin 0051 0052 #endif // DIGIKAM_DIMG_QIMAGE_LOADER_H