You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.3 KiB
37 lines
1.3 KiB
/**************************************************************************** |
|
* |
|
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> |
|
* |
|
* QGroundControl is licensed according to the terms in the file |
|
* COPYING.md in the root of the source code directory. |
|
* |
|
****************************************************************************/ |
|
|
|
#pragma once |
|
|
|
#include "TaisyncHandler.h" |
|
|
|
class TaisyncSettings : public TaisyncHandler |
|
{ |
|
Q_OBJECT |
|
public: |
|
explicit TaisyncSettings (QObject* parent = nullptr); |
|
bool start () override; |
|
bool requestLinkStatus (); |
|
bool requestDevInfo (); |
|
bool requestFreqScan (); |
|
bool requestVideoSettings (); |
|
bool requestRadioSettings (); |
|
bool setRadioSettings (const QString& mode, const QString& channel); |
|
bool setVideoSettings (const QString& output, const QString& mode, const QString& rate); |
|
|
|
signals: |
|
void updateSettings (QByteArray jSonData); |
|
|
|
protected slots: |
|
void _readBytes () override; |
|
|
|
private: |
|
bool _request (const QString& request); |
|
bool _post (const QString& post, const QString& postPayload); |
|
};
|
|
|