BibleTime
|
#include <btinstallthread.h>
Signals | |
void | downloadStarted (int moduleIndex) |
void | installCompleted (int moduleIndex, bool success) |
void | preparingInstall (int moduleIndex) |
void | statusUpdated (int moduleIndex, int progressPercent) |
Public Member Functions | |
BtInstallThread (const QList< CSwordModuleInfo * > &modules, const QString &destination, QObject *const parent=nullptr) | |
void | stopInstall () |
Protected Member Functions | |
void | run () override |
Private Slots | |
void | slotDownloadStarted () |
void | slotManagerStatusUpdated (int totalProgress, int fileProgress) |
Private Member Functions | |
void | installModule () |
bool | removeModule () |
Private Attributes | |
int | m_currentModuleIndex = 0 |
const QString | m_destination |
BtInstallMgr | m_iMgr |
const QList< CSwordModuleInfo * > & | m_modules |
std::atomic< bool > | m_stopRequested |
Definition at line 28 of file btinstallthread.h.
|
inline |
Definition at line 34 of file btinstallthread.h.
References BT_CONNECT, BtInstallMgr::downloadStarted(), m_iMgr, BtInstallMgr::percentCompleted(), slotDownloadStarted(), and slotManagerStatusUpdated().
|
signal |
Emitted when the first file download has been started.
Referenced by BtBookshelfInstallFinalPage::initializePage(), and slotDownloadStarted().
|
signal |
Emitted when installing is complete.
Referenced by BtBookshelfInstallFinalPage::initializePage(), and installModule().
|
private |
Definition at line 67 of file btinstallthread.cpp.
References installCompleted(), BtInstallBackend::isRemote(), m_currentModuleIndex, m_destination, m_iMgr, m_modules, m_stopRequested, CSwordModuleInfo::name(), preparingInstall(), removeModule(), BtInstallBackend::source(), and statusUpdated().
Referenced by run().
|
signal |
Emitted when starting the installation.
Referenced by BtBookshelfInstallFinalPage::initializePage(), and installModule().
|
private |
Definition at line 117 of file btinstallthread.cpp.
References CSwordModuleInfo::AbsoluteDataPath, BtInstallBackend::backend(), CSwordModuleInfo::config(), CSwordModuleInfo::DataPath, CSwordBackend::findModuleByName(), CSwordBackend::instance(), m_currentModuleIndex, m_destination, m_modules, CSwordModuleInfo::name(), CSwordBackend::prefixPath(), and BtInstallBackend::source().
Referenced by installModule().
|
overrideprotected |
Definition at line 46 of file btinstallthread.cpp.
References installModule(), m_currentModuleIndex, m_destination, m_modules, m_stopRequested, and anonymous_namespace{btinstallthread.cpp}::runMkdir().
|
privateslot |
Definition at line 113 of file btinstallthread.cpp.
References downloadStarted(), and m_currentModuleIndex.
Referenced by BtInstallThread().
|
privateslot |
Definition at line 109 of file btinstallthread.cpp.
References m_currentModuleIndex, and statusUpdated().
Referenced by BtInstallThread().
|
signal |
Emitted when the install progress status is updated.
Referenced by BtBookshelfInstallFinalPage::initializePage(), installModule(), and slotManagerStatusUpdated().
|
inline |
Definition at line 50 of file btinstallthread.h.
References m_stopRequested.
Referenced by BtBookshelfInstallFinalPage::destroyThread(), and BtBookshelfInstallFinalPage::slotStopInstall().
|
private |
Definition at line 86 of file btinstallthread.h.
Referenced by installModule(), removeModule(), run(), slotDownloadStarted(), and slotManagerStatusUpdated().
|
private |
Definition at line 84 of file btinstallthread.h.
Referenced by installModule(), removeModule(), and run().
|
private |
Definition at line 85 of file btinstallthread.h.
Referenced by BtInstallThread(), and installModule().
|
private |
Definition at line 83 of file btinstallthread.h.
Referenced by installModule(), removeModule(), and run().
|
private |
Definition at line 87 of file btinstallthread.h.
Referenced by installModule(), run(), and stopInstall().