GH-1053 explode launch task into many small steps, each a Task
This commit is contained in:
@ -73,12 +73,13 @@ void YggdrasilTask::heartbeat()
|
||||
progress(count, timeout_max);
|
||||
}
|
||||
|
||||
void YggdrasilTask::abort()
|
||||
bool YggdrasilTask::abort()
|
||||
{
|
||||
progress(timeout_max, timeout_max);
|
||||
// TODO: actually use this in a meaningful way
|
||||
m_aborted = YggdrasilTask::BY_USER;
|
||||
m_netReply->abort();
|
||||
return true;
|
||||
}
|
||||
|
||||
void YggdrasilTask::abortByTimeout()
|
||||
|
@ -131,7 +131,7 @@ slots:
|
||||
void changeState(State newState, QString reason=QString());
|
||||
public
|
||||
slots:
|
||||
virtual void abort() override;
|
||||
virtual bool abort() override;
|
||||
void abortByTimeout();
|
||||
State state();
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user