Tome
A generic data editor for games supporting arbitrary input and output formats.
componenthasnofieldstask.h
1 #ifndef COMPONENTHASNOFIELDSTASK_H
2 #define COMPONENTHASNOFIELDSTASK_H
3 
4 #include <QObject>
5 
6 #include "../../Tasks/Controller/task.h"
7 
8 namespace Tome
9 {
10  class TaskContext;
11 
15  class ComponentHasNoFieldsTask : public QObject, public Task
16  {
17  public:
18  const QString getDisplayName() const Q_DECL_OVERRIDE;
19  const MessageList execute(const TaskContext& context) const Q_DECL_OVERRIDE;
20 
24  static const QString MessageCode;
25  };
26 }
27 
28 #endif // COMPONENTHASNOFIELDSTASK_H
Definition: commandlineoptions.h:6
Finds components who aren&#39;t referenced by any field definitions.
Definition: componenthasnofieldstask.h:15
const MessageList execute(const TaskContext &context) const Q_DECL_OVERRIDE
Executes this task, generating a list of messages, warnings and errors.
Definition: componenthasnofieldstask.cpp:20
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
static const QString MessageCode
Unique message code of this task. Used for looking up more verbose documentation. ...
Definition: componenthasnofieldstask.h:24
const QString getDisplayName() const Q_DECL_OVERRIDE
Gets the localized display name of this task, as shown next to progress bars.
Definition: componenthasnofieldstask.cpp:15