|
Krita Source Code Documentation
|
#include <KisAppimageUpdater.h>
Inheritance diagram for KisAppimageUpdater:Public Member Functions | |
| void | checkForUpdate () override |
| start the process checking whether there is an update available or not When the check is done, the updater emits sigUpdateCheckStateChange with the check result | |
| void | doUpdate () override |
| if the updater has update capability, start the update process When the update is done, the updater emits sigUpdateCheckStateChange with the check result | |
| bool | hasUpdateCapability () override |
| Returns true if this updater can actually perform an update. If it can only check for new versions, return false. | |
| KisAppimageUpdater () | |
| KisAppimageUpdater (QString dummyUpdaterPath) | |
Public Member Functions inherited from KisUpdaterBase | |
| KisUpdaterBase () | |
Private Slots | |
| void | slotAppendCheckOutput () |
| void | slotAppendUpdateOutput () |
| void | slotUpdateCheckErrorOccurred (QProcess::ProcessError error) |
| void | slotUpdateCheckFinished (int result, QProcess::ExitStatus exitStatus) |
| void | slotUpdateCheckStarted () |
| void | slotUpdateErrorOccurred (QProcess::ProcessError error) |
| void | slotUpdateFinished (int result, QProcess::ExitStatus exitStatus) |
Private Member Functions | |
| bool | findUpdaterBinary () |
| void | initialize (QString &updaterPath) |
Private Attributes | |
| QString | m_appimagePath |
| QString | m_checkOutput |
| QScopedPointer< QProcess > | m_checkProcess |
| bool | m_updateCapability |
| QString | m_updateOutput |
| QScopedPointer< QProcess > | m_updateProcess |
| QString | m_updaterBinary |
| bool | m_updaterInProgress {false} |
Additional Inherited Members | |
Signals inherited from KisUpdaterBase | |
| void | sigUpdateCheckStateChange (KisUpdaterStatus) |
Protected Attributes inherited from KisUpdaterBase | |
| KisUpdaterStatus | m_updaterStatus |
Definition at line 22 of file KisAppimageUpdater.h.
| KisAppimageUpdater::KisAppimageUpdater | ( | ) |
Definition at line 22 of file KisAppimageUpdater.cpp.
References initialize().
|
explicit |
Definition at line 47 of file KisAppimageUpdater.cpp.
References initialize().
|
overridevirtual |
start the process checking whether there is an update available or not When the check is done, the updater emits sigUpdateCheckStateChange with the check result
Implements KisUpdaterBase.
Definition at line 54 of file KisAppimageUpdater.cpp.
References m_appimagePath, m_checkOutput, m_checkProcess, m_updateCapability, m_updateOutput, m_updaterBinary, m_updaterInProgress, KisUpdaterBase::m_updaterStatus, and KisUpdaterStatus::setUpdaterOutput().
|
overridevirtual |
if the updater has update capability, start the update process When the update is done, the updater emits sigUpdateCheckStateChange with the check result
Implements KisUpdaterBase.
Definition at line 80 of file KisAppimageUpdater.cpp.
References m_appimagePath, m_updateProcess, and m_updaterBinary.
|
private |
Definition at line 243 of file KisAppimageUpdater.cpp.
References KisUsageLogger::log(), and m_updaterBinary.
|
overridevirtual |
Returns true if this updater can actually perform an update. If it can only check for new versions, return false.
Implements KisUpdaterBase.
Definition at line 75 of file KisAppimageUpdater.cpp.
References m_updateCapability.
|
private |
Definition at line 216 of file KisAppimageUpdater.cpp.
References connect(), findUpdaterBinary(), m_appimagePath, m_checkProcess, m_updateCapability, m_updateProcess, m_updaterBinary, slotAppendCheckOutput(), slotAppendUpdateOutput(), slotUpdateCheckErrorOccurred(), slotUpdateCheckFinished(), slotUpdateCheckStarted(), slotUpdateErrorOccurred(), and slotUpdateFinished().
|
privateslot |
Definition at line 206 of file KisAppimageUpdater.cpp.
References m_checkOutput, and m_checkProcess.
|
privateslot |
Definition at line 211 of file KisAppimageUpdater.cpp.
References m_updateOutput, and m_updateProcess.
|
privateslot |
Definition at line 134 of file KisAppimageUpdater.cpp.
References UpdaterStatus::CHECK_ERROR, KisUsageLogger::log(), m_appimagePath, m_checkOutput, m_updaterInProgress, KisUpdaterBase::m_updaterStatus, KisUpdaterStatus::setStatus(), and KisUpdaterBase::sigUpdateCheckStateChange().
|
privateslot |
Definition at line 86 of file KisAppimageUpdater.cpp.
References UpdaterStatus::CHECK_ERROR, KisUsageLogger::log(), m_appimagePath, m_updateOutput, m_updaterInProgress, KisUpdaterBase::m_updaterStatus, KisUpdaterStatus::setStatus(), KisUpdaterStatus::setUpdaterOutput(), KisUpdaterBase::sigUpdateCheckStateChange(), UpdaterStatus::UPDATE_AVAILABLE, and UpdaterStatus::UPTODATE.
|
privateslot |
Definition at line 128 of file KisAppimageUpdater.cpp.
References UpdaterStatus::IN_PROGRESS, KisUpdaterBase::m_updaterStatus, KisUpdaterStatus::setStatus(), and KisUpdaterBase::sigUpdateCheckStateChange().
|
privateslot |
Definition at line 189 of file KisAppimageUpdater.cpp.
References KisUsageLogger::log(), m_appimagePath, m_updateOutput, m_updaterInProgress, KisUpdaterBase::m_updaterStatus, KisUpdaterStatus::setStatus(), KisUpdaterStatus::setUpdaterOutput(), KisUpdaterBase::sigUpdateCheckStateChange(), and UpdaterStatus::UPDATE_ERROR.
|
privateslot |
Definition at line 150 of file KisAppimageUpdater.cpp.
References KisUsageLogger::log(), m_appimagePath, m_updateOutput, m_updaterInProgress, KisUpdaterBase::m_updaterStatus, UpdaterStatus::RESTART_REQUIRED, KisUpdaterStatus::setDetails(), KisUpdaterStatus::setStatus(), KisUpdaterStatus::setUpdaterOutput(), KisUpdaterBase::sigUpdateCheckStateChange(), and UpdaterStatus::UPDATE_ERROR.
|
private |
Definition at line 50 of file KisAppimageUpdater.h.
|
private |
Definition at line 53 of file KisAppimageUpdater.h.
|
private |
Definition at line 56 of file KisAppimageUpdater.h.
|
private |
Definition at line 51 of file KisAppimageUpdater.h.
|
private |
Definition at line 54 of file KisAppimageUpdater.h.
|
private |
Definition at line 57 of file KisAppimageUpdater.h.
|
private |
Definition at line 49 of file KisAppimageUpdater.h.
|
private |
Definition at line 52 of file KisAppimageUpdater.h.