BibleTime
btbookshelfsourcesprogresspage.h
Go to the documentation of this file.
1 /*********
2 *
3 * In the name of the Father, and of the Son, and of the Holy Spirit.
4 *
5 * This file is part of BibleTime's source code, https://bibletime.info/
6 *
7 * Copyright 1999-2021 by the BibleTime developers.
8 * The BibleTime source code is licensed under the GNU General Public License
9 * version 2.0.
10 *
11 **********/
12 
13 #pragma once
14 
15 #include "btbookshelfwizardpage.h"
16 
17 #include <QObject>
18 #include <QString>
19 
20 
21 class BtSourcesThread;
22 class QLabel;
23 class QProgressBar;
24 class QPushButton;
25 class QWidget;
26 
28 
29  Q_OBJECT
30 
31 public: // methods:
32 
33  BtBookshelfSourcesProgressPage(QWidget * parent = nullptr);
35 
36  void destroyThread() noexcept;
37 
38  void initializePage() final override;
39  bool isComplete() const final override;
40  int nextId() const final override;
41 
42 public Q_SLOTS:
43  void slotStopInstall();
44 
45 private Q_SLOTS:
46 
47  void slotThreadFinished();
48 
49 private: // methods:
50 
51  void retranslateUi();
52 
53 private: // methods:
54 
55  bool m_installCompleted = false;
56  QLabel * m_msgLabel;
57  QProgressBar * m_progressBar;
58  QPushButton * m_stopButton;
60 
61 };
BtBookshelfSourcesProgressPage(QWidget *parent=nullptr)