File indexing completed on 2025-01-19 03:55:48

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2012-01-23
0007  * Description : file action progress indicator
0008  *
0009  * SPDX-FileCopyrightText: 2012-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_FILE_ACTION_PROGRESS_H
0016 #define DIGIKAM_FILE_ACTION_PROGRESS_H
0017 
0018 // Qt includes
0019 
0020 #include <QString>
0021 
0022 // Local includes
0023 
0024 #include "progressmanager.h"
0025 
0026 namespace Digikam
0027 {
0028 
0029 class FileActionProgress : public ProgressItem
0030 {
0031     Q_OBJECT
0032 
0033 public:
0034 
0035     explicit FileActionProgress(const QString& name);
0036     ~FileActionProgress() override;
0037 
0038 Q_SIGNALS:
0039 
0040     void signalComplete();
0041 
0042 private Q_SLOTS:
0043 
0044     void slotProgressValue(float);
0045     void slotProgressStatus(const QString&);
0046     void slotCompleted();
0047     void slotCancel();
0048 
0049 private:
0050 
0051     // Disable
0052     FileActionProgress(QObject*);
0053 };
0054 
0055 } // namespace Digikam
0056 
0057 #endif // DIGIKAM_FILE_ACTION_PROGRESS_H