MAVLinkSettingsWidget.h 917 Bytes
Newer Older
pixhawk's avatar
pixhawk committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef MAVLINKSETTINGSWIDGET_H
#define MAVLINKSETTINGSWIDGET_H

#include <QtGui/QWidget>

#include "MAVLinkProtocol.h"

namespace Ui {
    class MAVLinkSettingsWidget;
}

class MAVLinkSettingsWidget : public QWidget {
    Q_OBJECT
public:
    MAVLinkSettingsWidget(MAVLinkProtocol* protocol, QWidget *parent = 0);
    ~MAVLinkSettingsWidget();

18 19 20 21 22
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();
23 24 25 26 27 28
    /** @brief Enable DroneOS forwarding */
    void enableDroneOS(bool enable);

    void setDroneOSKey(QString key);

    void setDroneOSHost(QString host);
29

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

private:
    Ui::MAVLinkSettingsWidget *m_ui;
};

#endif // MAVLINKSETTINGSWIDGET_H