AirframeComponent.h 1.29 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 AIRFRAMECOMPONENT_H
#define AIRFRAMECOMPONENT_H

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

/// @file
///     @brief The Airframe VehicleComponent is used to set the SYS_AUTOSTART airframe id.
///     @author Don Gagne <don@thegagnes.com>

20
class AirframeComponent : public VehicleComponent
21 22 23 24
{
    Q_OBJECT
    
public:
25
    AirframeComponent(Vehicle* vehicles, 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;
Don Gagne's avatar
Don Gagne committed
37
    virtual QUrl summaryQmlSource(void) const;    
38 39

private:
40 41
    const QString   _name;
    QVariantList     _summaryItems;
42 43 44
};

#endif