MAVLinkSettingsWidget.h 709 Bytes
Newer Older
pixhawk's avatar
pixhawk committed
1 2 3
#ifndef MAVLINKSETTINGSWIDGET_H
#define MAVLINKSETTINGSWIDGET_H

4
#include <QWidget>
pixhawk's avatar
pixhawk committed
5 6 7

#include "MAVLinkProtocol.h"

8 9 10
namespace Ui
{
class MAVLinkSettingsWidget;
pixhawk's avatar
pixhawk committed
11 12
}

13 14
class MAVLinkSettingsWidget : public QWidget
{
pixhawk's avatar
pixhawk committed
15 16 17 18 19
    Q_OBJECT
public:
    MAVLinkSettingsWidget(MAVLinkProtocol* protocol, QWidget *parent = 0);
    ~MAVLinkSettingsWidget();

20
public slots:
21 22 23 24 25 26
    /** @brief Enable DroneOS forwarding */
    void enableDroneOS(bool enable);

    void setDroneOSKey(QString key);

    void setDroneOSHost(QString host);
27

pixhawk's avatar
pixhawk committed
28 29 30
protected:
    MAVLinkProtocol* protocol;
    void changeEvent(QEvent *e);
31
    void hideEvent(QHideEvent* event);
pixhawk's avatar
pixhawk committed
32 33 34 35 36 37

private:
    Ui::MAVLinkSettingsWidget *m_ui;
};

#endif // MAVLINKSETTINGSWIDGET_H