File indexing completed on 2024-05-12 15:58:38

0001 /*
0002  *  SPDX-FileCopyrightText: 2011 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef __KIS_QUEUES_PROGRESS_UPDATER_H
0008 #define __KIS_QUEUES_PROGRESS_UPDATER_H
0009 
0010 #include <QObject>
0011 #include "kritaimage_export.h"
0012 
0013 class KoProgressProxy;
0014 
0015 
0016 class KRITAIMAGE_EXPORT KisQueuesProgressUpdater : public QObject
0017 {
0018     Q_OBJECT
0019 
0020 public:
0021     KisQueuesProgressUpdater(KoProgressProxy *progressProxy, QObject *parent = 0);
0022     ~KisQueuesProgressUpdater() override;
0023 
0024     void updateProgress(int queueSizeMetric, const QString &jobName);
0025     void hide();
0026 
0027 private Q_SLOTS:
0028     void startTicking();
0029     void stopTicking();
0030     void timerTicked();
0031 
0032 Q_SIGNALS:
0033     void sigStartTicking();
0034     void sigStopTicking();
0035 
0036 private:
0037     struct Private;
0038     Private * const m_d;
0039 };
0040 
0041 #endif /* __KIS_QUEUES_PROGRESS_UPDATER_H */