digiKam
imagequalitytask.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 : 2013-08-19
7  * Description : Thread actions task for image quality sorter.
8  *
9  * Copyright (C) 2013-2022 by Gilles Caulier <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_IMAGE_QUALITY_TASK_H
25 #define DIGIKAM_IMAGE_QUALITY_TASK_H
26 
27 // Qt includes
28 
29 #include <QImage>
30 
31 // Local includes
32 
33 #include "actionthreadbase.h"
34 
35 namespace Digikam
36 {
37 
38 class ImageQualityContainer;
39 class MaintenanceData;
40 
42 {
43  Q_OBJECT
44 
45 public:
46 
47  explicit ImageQualityTask();
48  ~ImageQualityTask() override;
49 
50  void setQuality(const ImageQualityContainer& quality);
51  void setMaintenanceData(MaintenanceData* const data = nullptr);
52 
53 Q_SIGNALS:
54 
55  void signalFinished(const QImage&);
56 
57 public Q_SLOTS:
58 
59  void slotCancel();
60 
61 protected:
62 
63  void run() override;
64 
65 private:
66 
67  // Disable
68  ImageQualityTask(QObject*) = delete;
69 
70 private:
71 
72  class Private;
73  Private* const d;
74 };
75 
76 } // namespace Digikam
77 
78 #endif // DIGIKAM_IMAGE_QUALITY_TASK_H
Definition: actionthreadbase.h:45
Definition: imagequalitycontainer.h:39
Definition: imagequalitytask.h:42
void signalFinished(const QImage &)
void setMaintenanceData(MaintenanceData *const data=nullptr)
Definition: imagequalitytask.cpp:75
void run() override
Definition: imagequalitytask.cpp:88
ImageQualityTask()
Definition: imagequalitytask.cpp:57
void setQuality(const ImageQualityContainer &quality)
Definition: imagequalitytask.cpp:70
void slotCancel()
Definition: imagequalitytask.cpp:80
~ImageQualityTask() override
Definition: imagequalitytask.cpp:63
Definition: maintenancedata.h:42
Definition: datefolderview.cpp:43