AutoConnectSettings.h 1.97 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/****************************************************************************
 *
 *   (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.
 *
 ****************************************************************************/

#ifndef AutoConnectSettings_H
#define AutoConnectSettings_H

#include "SettingsGroup.h"

class AutoConnectSettings : public SettingsGroup
{
    Q_OBJECT
    
public:
    AutoConnectSettings(QObject* parent = NULL);

22 23 24 25 26 27 28 29 30 31 32 33 34 35
    Q_PROPERTY(Fact* autoConnectUDP         READ autoConnectUDP         CONSTANT)
    Q_PROPERTY(Fact* autoConnectPixhawk     READ autoConnectPixhawk     CONSTANT)
    Q_PROPERTY(Fact* autoConnectSiKRadio    READ autoConnectSiKRadio    CONSTANT)
    Q_PROPERTY(Fact* autoConnectPX4Flow     READ autoConnectPX4Flow     CONSTANT)
    Q_PROPERTY(Fact* autoConnectRTKGPS      READ autoConnectRTKGPS      CONSTANT)
    Q_PROPERTY(Fact* autoConnectLibrePilot  READ autoConnectLibrePilot  CONSTANT)

    Fact* autoConnectUDP        (void);
    Fact* autoConnectPixhawk    (void);
    Fact* autoConnectSiKRadio   (void);
    Fact* autoConnectPX4Flow    (void);
    Fact* autoConnectRTKGPS     (void);
    Fact* autoConnectLibrePilot (void);

36 37
    static const char* autoConnectSettingsGroupName;

38 39 40 41 42 43 44
    static const char* autoConnectUDPSettingsName;
    static const char* autoConnectPixhawkSettingsName;
    static const char* autoConnectSiKRadioSettingsName;
    static const char* autoConnectPX4FlowSettingsName;
    static const char* autoConnectRTKGPSSettingsName;
    static const char* autoConnectLibrePilotSettingsName;

45
private:
46 47 48 49 50 51 52 53
    SettingsFact* _autoConnectUDPFact;
    SettingsFact* _autoConnectPixhawkFact;
    SettingsFact* _autoConnectSiKRadioFact;
    SettingsFact* _autoConnectPX4FlowFact;
    SettingsFact* _autoConnectRTKGPSFact;
    SettingsFact* _autoConnectLibrePilotFact;

    static const char* _settingsGroup;
54 55 56
};

#endif