pgLab/core/ControllableTask.h

20 lines
394 B
C
Raw Normal View History

#ifndef CONTROLLABLETASK_H
#define CONTROLLABLETASK_H
/** From answer by Hatter
*
* https://stackoverflow.com/questions/5423058/qfuture-that-can-be-cancelled-and-report-progress
*/
2018-08-05 09:05:24 +02:00
//#include "TaskControl.h"
class TaskControl;
template <class T>
class ControllableTask
{
public:
virtual ~ControllableTask() {}
virtual T run(TaskControl& control) = 0;
};
#endif // CONTROLLABLETASK_H