QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QGCMapTaskBase.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QObject>
4#include <QtCore/QString>
5
6class QGCMapTask : public QObject
7{
8 Q_OBJECT
9
10public:
26 Q_ENUM(TaskType);
27
28 explicit QGCMapTask(TaskType type, QObject *parent = nullptr)
29 : QObject(parent)
30 , m_type(type)
31 {}
32 ~QGCMapTask() override = default;
33
34 TaskType type() const { return m_type; }
35
36 void setError(const QString &errorString = QString())
37 {
38 emit error(m_type, errorString);
39 }
40
41signals:
43
44private:
45 const TaskType m_type = TaskType::taskInit;
46};
QString errorString
Error error
void setError(const QString &errorString=QString())
~QGCMapTask() override=default
QGCMapTask(TaskType type, QObject *parent=nullptr)
TaskType type() const
void error(QGCMapTask::TaskType type, const QString &errorString)