Warning, file /frameworks/threadweaver/examples/ThumbNailer/AverageLoadManager.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 #ifndef AVERAGELOADMANAGER_H
0002 #define AVERAGELOADMANAGER_H
0003 
0004 #include <QObject>
0005 
0006 class QTimer;
0007 
0008 class AverageLoadManager : public QObject
0009 {
0010     Q_OBJECT
0011 public:
0012     explicit AverageLoadManager(QObject *parent = nullptr);
0013 
0014     void activate(bool enabled);
0015     bool available() const;
0016     QPair<int, int> workersRange() const;
0017 
0018 Q_SIGNALS:
0019     void recommendedWorkerCount(int);
0020 
0021 private Q_SLOTS:
0022     void update();
0023 
0024 private:
0025     QTimer *m_timer;
0026     int m_min, m_max;
0027 };
0028 
0029 #endif // AVERAGELOADMANAGER_H