digiKam
dprogresswdg.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-01-26
7  * Description : a progress bar with information dispatched to progress manager
8  *
9  * Copyright (C) 2012-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_DPROGRESS_WDG_H
25 #define DIGIKAM_DPROGRESS_WDG_H
26 
27 // Qt includes
28 
29 #include <QProgressBar>
30 
31 // Local includes
32 
33 #include "digikam_export.h"
34 
35 namespace Digikam
36 {
37 
38 class DIGIKAM_EXPORT DProgressWdg : public QProgressBar
39 {
40  Q_OBJECT
41 
42 public:
43 
44  explicit DProgressWdg(QWidget* const parent);
45  ~DProgressWdg() override;
46 
53  void progressScheduled(const QString& title, bool canBeCanceled, bool hasThumb);
54 
58  void progressThumbnailChanged(const QPixmap& thumb);
59 
63  void progressStatusChanged(const QString& status);
64 
68  void progressCompleted();
69 
70 Q_SIGNALS:
71 
76 
77 private Q_SLOTS:
78 
79  void slotValueChanged(int);
80  void slotProgressCanceled(const QString& id);
81 
82 private:
83 
84  class Private;
85  Private* const d;
86 };
87 
88 } // namespace Digikam
89 
90 #endif // DIGIKAM_DPROGRESS_WDG_H
Definition: dprogresswdg.h:39
Definition: datefolderview.cpp:43