diff options
author | Teus Benschop <teusjannette@gmail.com> | 2017-10-06 12:24:31 +0200 |
---|---|---|
committer | Teus Benschop <teusjannette@gmail.com> | 2017-10-06 12:24:31 +0200 |
commit | 90d2181239761f8950b95768d3b037843e9e8b50 (patch) | |
tree | 6cc667ab420cc04029de2de7e361d2305e214595 /src/frontend/bookshelfwizard/btbookshelfsourcesprogresspage.h | |
parent | 1ea03c0fce8066c1e22188447b4a6ca4dcef1201 (diff) |
New upstream version 2.11.0
Diffstat (limited to 'src/frontend/bookshelfwizard/btbookshelfsourcesprogresspage.h')
-rw-r--r-- | src/frontend/bookshelfwizard/btbookshelfsourcesprogresspage.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/frontend/bookshelfwizard/btbookshelfsourcesprogresspage.h b/src/frontend/bookshelfwizard/btbookshelfsourcesprogresspage.h new file mode 100644 index 0000000..459167e --- /dev/null +++ b/src/frontend/bookshelfwizard/btbookshelfsourcesprogresspage.h @@ -0,0 +1,60 @@ +/********* +* +* In the name of the Father, and of the Son, and of the Holy Spirit. +* +* This file is part of BibleTime's source code, http://www.bibletime.info/. +* +* Copyright 1999-2016 by the BibleTime developers. +* The BibleTime source code is licensed under the GNU General Public License version 2.0. +* +**********/ + +#ifndef BTBOOKSHELFSOURCESPROGRESSPAGE +#define BTBOOKSHELFSOURCESPROGRESSPAGE + +#include "frontend/bookshelfwizard/btbookshelfwizardpage.h" + + +class BtSourcesThread; +class QLabel; +class QProgressBar; +class QPushButton; + +class BtBookshelfSourcesProgressPage final: public BtBookshelfWizardPage { + + Q_OBJECT + +public: /* Methods: */ + + BtBookshelfSourcesProgressPage(QWidget * parent = 0); + inline ~BtBookshelfSourcesProgressPage() noexcept override + { destroyThread(); } + + void destroyThread() noexcept; + + void initializePage() final override; + bool isComplete() const final override; + int nextId() const final override; + +public slots: + void slotStopInstall(); + +private slots: + + void slotThreadFinished(); + +private: /* Methods: */ + + void retranslateUi(); + +private: /* Methods: */ + + bool m_installCompleted = false; + QLabel * m_msgLabel; + QProgressBar * m_progressBar; + QPushButton * m_stopButton; + BtSourcesThread * m_thread = nullptr; + +}; + +#endif |