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
6
class
QGCMapTask
:
public
QObject
7
{
8
Q_OBJECT
9
10
public
:
11
enum class
TaskType
{
12
taskInit
,
13
taskCacheTile
,
14
taskFetchTile
,
15
taskFetchTileSets
,
16
taskCreateTileSet
,
17
taskGetTileDownloadList
,
18
taskUpdateTileDownloadState
,
19
taskDeleteTileSet
,
20
taskRenameTileSet
,
21
taskPruneCache
,
22
taskReset
,
23
taskExport
,
24
taskImport
25
};
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
41
signals:
42
void
error
(
QGCMapTask::TaskType
type
,
const
QString &
errorString
);
43
44
private
:
45
const
TaskType
m_type =
TaskType::taskInit
;
46
};
errorString
QString errorString
Definition
QGCCompression.cc:115
error
Error error
Definition
QGCCompression.cc:114
QGCMapTask
Definition
QGCMapTaskBase.h:7
QGCMapTask::setError
void setError(const QString &errorString=QString())
Definition
QGCMapTaskBase.h:36
QGCMapTask::TaskType
TaskType
Definition
QGCMapTaskBase.h:11
QGCMapTask::TaskType::taskRenameTileSet
@ taskRenameTileSet
QGCMapTask::TaskType::taskCacheTile
@ taskCacheTile
QGCMapTask::TaskType::taskFetchTileSets
@ taskFetchTileSets
QGCMapTask::TaskType::taskReset
@ taskReset
QGCMapTask::TaskType::taskUpdateTileDownloadState
@ taskUpdateTileDownloadState
QGCMapTask::TaskType::taskPruneCache
@ taskPruneCache
QGCMapTask::TaskType::taskExport
@ taskExport
QGCMapTask::TaskType::taskInit
@ taskInit
QGCMapTask::TaskType::taskDeleteTileSet
@ taskDeleteTileSet
QGCMapTask::TaskType::taskImport
@ taskImport
QGCMapTask::TaskType::taskGetTileDownloadList
@ taskGetTileDownloadList
QGCMapTask::TaskType::taskFetchTile
@ taskFetchTile
QGCMapTask::TaskType::taskCreateTileSet
@ taskCreateTileSet
QGCMapTask::~QGCMapTask
~QGCMapTask() override=default
QGCMapTask::QGCMapTask
QGCMapTask(TaskType type, QObject *parent=nullptr)
Definition
QGCMapTaskBase.h:28
QGCMapTask::type
TaskType type() const
Definition
QGCMapTaskBase.h:34
QGCMapTask::error
void error(QGCMapTask::TaskType type, const QString &errorString)
src
QtLocationPlugin
QGCMapTaskBase.h
Generated by
1.9.8