FlightModesComponent.h 1.31 KB
Newer Older
1 2 3 4 5 6 7 8 9
/****************************************************************************
 *
 *   (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.
 *
 ****************************************************************************/

10 11 12 13

#ifndef FLIGHTMODESCOMPONENT_H
#define FLIGHTMODESCOMPONENT_H

14
#include "VehicleComponent.h"
15 16 17 18 19

/// @file
///     @brief The FlightModes VehicleComponent is used to set the associated Flight Mode switches.
///     @author Don Gagne <don@thegagnes.com>

20
class FlightModesComponent : public VehicleComponent
21 22 23 24
{
    Q_OBJECT
    
public:
25
    FlightModesComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent = NULL);
26
    
27
    // Virtuals from VehicleComponent
Don Gagne's avatar
Don Gagne committed
28
    virtual QStringList setupCompleteChangedTriggerList(void) const;
29 30 31 32
    
    // Virtuals from VehicleComponent
    virtual QString name(void) const;
    virtual QString description(void) const;
33
    virtual QString iconResource(void) const;
34 35
    virtual bool requiresSetup(void) const;
    virtual bool setupComplete(void) const;
36
    virtual QUrl setupSource(void) const;
37
    virtual QUrl summaryQmlSource(void) const;
38 39
    
private:
40 41
    const QString   _name;
    QVariantList    _summaryItems;
42 43 44
};

#endif