SafetyComponent.h 1.41 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.
 *
 ****************************************************************************/

Don Gagne's avatar
Don Gagne committed
10 11 12 13

#ifndef SafetyComponent_H
#define SafetyComponent_H

14
#include "VehicleComponent.h"
Don Gagne's avatar
Don Gagne committed
15 16 17 18 19 20

/// @file
///     @brief The Radio VehicleComponent is used to calibrate the trasmitter and assign function mapping
///             to channels.
///     @author Don Gagne <don@thegagnes.com>

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

Don Gagne's avatar
Don Gagne committed
42 43 44 45 46 47
private:
    const QString   _name;
    QVariantList    _summaryItems;
};

#endif