Tome
A generic data editor for games supporting arbitrary input and output formats.
task.h
1 #ifndef TASK
2 #define TASK
3 
4 #include "../Model/messagelist.h"
5 
6 
7 namespace Tome
8 {
9  class TaskContext;
10 
14  class Task
15  {
16  public:
20  Task();
21  virtual ~Task();
22 
27  virtual const QString getDisplayName() const = 0;
28 
34  virtual const MessageList execute(const TaskContext& context) const = 0;
35  };
36 }
37 #endif // TASK
38 
Definition: commandlineoptions.h:6
virtual const MessageList execute(const TaskContext &context) const =0
Executes this task, generating a list of messages, warnings and errors.
virtual const QString getDisplayName() const =0
Gets the localized display name of this task, as shown next to progress bars.
Context to run automated tasks in.
Definition: taskcontext.h:16
Automated task that may result in a list of messages, warnings and errors.
Definition: task.h:14
Task()
Constructs a new automated task that may result in a list of messages, warnings and errors...
Definition: task.cpp:6