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