Job::Job(InstallationType installType) :
m_handle(0),
m_installationType(installType),
- m_UndoType(false),
+ m_abortStarted(false),
m_paused(false)
{}
return m_installationType;
}
-bool Job::GetUndoType() const
+bool Job::GetAbortStarted() const
{
- return m_UndoType;
+ return m_abortStarted;
}
-void Job::SetUndoType(bool flag)
+void Job::SetAbortStarted(bool flag)
{
- m_UndoType = flag;
+ m_abortStarted = flag;
}
bool Job::IsPaused() const
InstallationType GetInstallationType() const;
// Undo
- void SetUndoType(bool flag);
- bool GetUndoType() const;
+ void SetAbortStarted(bool flag);
+ bool GetAbortStarted() const;
// Pause/resume support
bool IsPaused() const;
private:
JobHandle m_handle;
InstallationType m_installationType;
- bool m_UndoType; //TODO change name to m_AbortStarted
+ bool m_abortStarted;
bool m_paused;
};
} //namespace Jobs
return !job->IsPaused();
}
- if (!job->GetUndoType()) {
+ if (!job->GetAbortStarted()) {
//job successfully finished
//send finished callback
LogDebug("Exception occured: " << exc.getParam() <<
". Reverting job...");
bool hasAbortSteps = job->Abort();
- job->SetUndoType(true);
+ job->SetAbortStarted(true);
job->SaveExceptionData(exc);
if (!hasAbortSteps) {