TaisyncSettings.h 1.6 KB
Newer Older
1 2
/****************************************************************************
 *
3
 * (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
 *
 * 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);
19 20
    bool    start                       () override;
    bool    requestLinkStatus           ();
21
    bool    requestDevInfo              ();
22
    bool    requestFreqScan             ();
23
    bool    requestVideoSettings        ();
Gus Grubba's avatar
Gus Grubba committed
24
    bool    requestRadioSettings        ();
Gus Grubba's avatar
Gus Grubba committed
25 26
    bool    requestIPSettings           ();
    bool    requestRTSPURISettings      ();
27
    bool    setRadioSettings            (const QString& mode, const QString& channel);
Gus Grubba's avatar
Gus Grubba committed
28
    bool    setVideoSettings            (const QString& output, const QString& mode, const QString& rate);
Gus Grubba's avatar
Gus Grubba committed
29 30
    bool    setRTSPSettings             (const QString& uri, const QString& account, const QString& password);
    bool    setIPSettings               (const QString& localIP, const QString& remoteIP, const QString& netMask);
31 32

signals:
33
    void    updateSettings              (QByteArray jSonData);
34 35 36 37

protected slots:
    void    _readBytes                  () override;

Gus Grubba's avatar
Gus Grubba committed
38 39
private:
    bool    _request                    (const QString& request);
40
    bool    _post                       (const QString& post, const QString& postPayload);
41
};