digiKam
redeyecorrectioncontainer.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 : 2010-12-15
7  * Description : Red Eyes auto correction settings container.
8  *
9  * Copyright (C) 2005-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2016 by Omar Amin <Omar dot moh dot amin 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_RED_EYE_CORRECTION_CONTAINER_H
26 #define DIGIKAM_RED_EYE_CORRECTION_CONTAINER_H
27 
28 // Qt includes
29 
30 #include <QString>
31 
32 // Local includes
33 
34 #include "digikam_export.h"
35 
36 namespace Digikam
37 {
38 
39 class FilterAction;
40 
41 class DIGIKAM_EXPORT RedEyeCorrectionContainer
42 {
43 
44 public:
45 
46  explicit RedEyeCorrectionContainer();
47 
48  bool isDefault() const;
49  bool operator==(const RedEyeCorrectionContainer& other) const;
50 
51  void writeToFilterAction(FilterAction& action,
52  const QString& prefix = QString()) const;
53 
54  static RedEyeCorrectionContainer fromFilterAction(const FilterAction& action,
55  const QString& prefix = QString());
56 
57 public:
58 
60 };
61 
62 } // namespace Digikam
63 
64 #endif // DIGIKAM_RED_EYE_CORRECTION_CONTAINER_H
Definition: filteraction.h:43
Definition: redeyecorrectioncontainer.h:42
double m_redToAvgRatio
Definition: redeyecorrectioncontainer.h:59
QStringView prefix
Definition: itemviewutilities.cpp:593
Definition: datefolderview.cpp:43
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition: searchtextbar.cpp:49