QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
UdpIODevice.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QByteArray>
4#include <QtCore/QLoggingCategory>
5#include <QtNetwork/QUdpSocket>
6
7Q_DECLARE_LOGGING_CATEGORY(UdpIODeviceLog)
8
9
11class UdpIODevice: public QUdpSocket
12{
13 Q_OBJECT
14
15public:
16 explicit UdpIODevice(QObject *parent = nullptr);
18
19 bool canReadLine() const override;
20 qint64 readLineData(char* data, qint64 maxSize) override;
21 qint64 readData(char* data, qint64 maxSize) override;
22 bool isSequential() const override { return true; }
23
24private slots:
25 void _readAvailableData();
26
27private:
28 QByteArray _buffer;
29};
Q_DECLARE_LOGGING_CATEGORY(AndroidSerialLog)
bool isSequential() const override
Definition UdpIODevice.h:22