/* * complextask.h * * Created on: 06.06.2013 * Author: trifon */ #ifndef COMPLEXTASK_H_ #define COMPLEXTASK_H_ #include "basetask.h" #include "stack.h" class ComplexTask : public Stack, public BaseTask { private: // напредъкът от задачите, които вече са завършени int progress; Task* getCurrent() const; void cloneAll(); void deleteAll(); public: // ще използваме конструктора на BaseTask ComplexTask(char const*); ComplexTask(ComplexTask const&); ComplexTask& operator=(ComplexTask const&); ~ComplexTask(); void print() const; int time() const; int getProgress() const; int work(int=1); Cloneable* clone() const; }; #endif /* COMPLEXTASK_H_ */