digiKam
dimgqimageloader.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 : 2005-06-14
7  * Description : A QImage loader for DImg framework.
8  *
9  * Copyright (C) 2005 by Renchi Raju <renchi dot raju at gmail dot com>
10  * Copyright (C) 2006-2021 by Caulier Gilles <caulier dot gilles at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_DIMG_QIMAGE_LOADER_H
26 #define DIGIKAM_DIMG_QIMAGE_LOADER_H
27 
28 // Local includes
29 
30 #include "dimg.h"
31 #include "dimgloader.h"
32 #include "digikam_config.h"
33 
34 using namespace Digikam;
35 
37 {
38 
40 {
41 public:
42 
43  explicit DImgQImageLoader(DImg* const image);
44  ~DImgQImageLoader() override;
45 
46  bool load(const QString& filePath, DImgLoaderObserver* const observer) override;
47  bool save(const QString& filePath, DImgLoaderObserver* const observer) override;
48 
49  bool hasAlpha() const override;
50  bool sixteenBit() const override;
51  bool isReadOnly() const override;
52 
53 private:
54 
55  bool m_hasAlpha;
56  bool m_sixteenBit;
57 };
58 
59 } // namespace DigikamQImageDImgPlugin
60 
61 #endif // DIGIKAM_DIMG_QIMAGE_LOADER_H
Definition: dimgqimageloader.h:40
Definition: dimgloaderobserver.h:41
Definition: dimgloader.h:51
Definition: dimg.h:62
Definition: dimgqimageloader.cpp:40
Definition: datefolderview.cpp:43