digiKam
maintenancetool.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 : 2012-02-02
7  * Description : maintenance tool
8  *
9  * Copyright (C) 2012-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2012 by Andi Clemens <andi dot clemens 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_MAINTENANCE_TOOL_H
26 #define DIGIKAM_MAINTENANCE_TOOL_H
27 
28 // Qt includes
29 
30 #include <QString>
31 
32 // Local includes
33 
34 #include "progressmanager.h"
35 #include "digikam_export.h"
36 
37 namespace Digikam
38 {
39 
40 class DIGIKAM_GUI_EXPORT MaintenanceTool : public ProgressItem
41 {
42  Q_OBJECT
43 
44 public:
45 
46  explicit MaintenanceTool(const QString& id, ProgressItem* const parent = nullptr);
47  ~MaintenanceTool() override;
48 
53  void setNotificationEnabled(bool b);
54 
58  virtual void setUseMultiCoreCPU(bool) {};
59 
60 Q_SIGNALS:
61 
66 
71 
72 public Q_SLOTS:
73 
74  void start();
75 
76 protected Q_SLOTS:
77 
78  virtual void slotStart();
79  virtual void slotDone();
80  virtual void slotCancel();
81 
82 private:
83 
84  class Private;
85  Private* const d;
86 };
87 
88 } // namespace Digikam
89 
90 #endif // DIGIKAM_MAINTENANCE_TOOL_H
Definition: maintenancetool.h:41
virtual void setUseMultiCoreCPU(bool)
Definition: maintenancetool.h:58
Definition: progressmanager.h:45
Definition: datefolderview.cpp:43