MAVLinkSettingsWidget.h 913 Bytes
Newer Older
pixhawk's avatar
pixhawk committed
1 2 3 4 5 6 7
#ifndef MAVLINKSETTINGSWIDGET_H
#define MAVLINKSETTINGSWIDGET_H

#include <QtGui/QWidget>

#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 21 22 23 24
public slots:
    /** @brief Update the log file name display */
    void updateLogfileName(const QString& fileName);
    /** @brief Start the file select dialog for the log file */
    void chooseLogfileName();
25 26 27 28 29 30
    /** @brief Enable DroneOS forwarding */
    void enableDroneOS(bool enable);

    void setDroneOSKey(QString key);

    void setDroneOSHost(QString host);
31

pixhawk's avatar
pixhawk committed
32 33 34
protected:
    MAVLinkProtocol* protocol;
    void changeEvent(QEvent *e);
35
    void hideEvent(QHideEvent* event);
pixhawk's avatar
pixhawk committed
36 37 38 39 40 41

private:
    Ui::MAVLinkSettingsWidget *m_ui;
};

#endif // MAVLINKSETTINGSWIDGET_H