SkyPulse UAV
V0.1
Loading...
Searching...
No Matches
SkyPulseUAV_GroundStation
TOOLS
decodetask.h
Go to the documentation of this file.
1
#ifndef DECODETASK_H
2
#define DECODETASK_H
3
4
#include <QObject>
5
#include <QRunnable>
6
#include <QByteArray>
7
#include "
MediatorInterface.h
"
8
9
class
DecodeTask
:
public
QObject,
public
QRunnable
10
{
11
Q_OBJECT
12
13
public
:
14
explicit
DecodeTask
(
const
QByteArray &data,
MediatorInterface
* mediator);
15
void
run
()
override
;
16
17
private
:
18
QByteArray dataToDecode;
19
MediatorInterface
* mediator;
20
void
decodeDataDistribution();
21
22
signals:
23
void
decodeDataReady
(
const
QString &result);
24
25
};
26
27
#endif
// DECODETASK_H
MediatorInterface.h
DecodeTask
Definition
decodetask.h:8
DecodeTask::run
void run() override
DecodeTask::decodeDataReady
void decodeDataReady(const QString &result)
DecodeTask::DecodeTask
DecodeTask(const QByteArray &data)
Definition
decodetask.cpp:4
MediatorInterface
Definition
MediatorInterface.h:6
Generated by
1.10.0