ESP8266Component.cc 1.36 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.
 *
 ****************************************************************************/

dogmaphobic's avatar
dogmaphobic committed
10

11 12
#include "ESP8266Component.h"
#include "AutoPilotPlugin.h"
dogmaphobic's avatar
dogmaphobic committed
13

14 15
ESP8266Component::ESP8266Component(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent)
    : VehicleComponent(vehicle, autopilot, parent)
dogmaphobic's avatar
dogmaphobic committed
16 17 18 19 20
    , _name(tr("WiFi Bridge"))
{

}

21
QString ESP8266Component::name(void) const
dogmaphobic's avatar
dogmaphobic committed
22 23 24 25
{
    return _name;
}

26
QString ESP8266Component::description(void) const
dogmaphobic's avatar
dogmaphobic committed
27 28 29 30
{
    return tr("The ESP8266 WiFi Bridge Component is used to setup the WiFi link.");
}

31
QString ESP8266Component::iconResource(void) const
dogmaphobic's avatar
dogmaphobic committed
32 33 34 35
{
    return "/qmlimages/wifi.svg";
}

36
bool ESP8266Component::requiresSetup(void) const
dogmaphobic's avatar
dogmaphobic committed
37 38 39 40
{
    return false;
}

41
bool ESP8266Component::setupComplete(void) const
dogmaphobic's avatar
dogmaphobic committed
42 43 44 45
{
    return true;
}

46
QStringList ESP8266Component::setupCompleteChangedTriggerList(void) const
dogmaphobic's avatar
dogmaphobic committed
47 48 49 50
{
    return QStringList();
}

51
QUrl ESP8266Component::setupSource(void) const
dogmaphobic's avatar
dogmaphobic committed
52 53 54 55
{
    return QUrl::fromUserInput("qrc:/qml/ESP8266Component.qml");
}

56
QUrl ESP8266Component::summaryQmlSource(void) const
dogmaphobic's avatar
dogmaphobic committed
57 58 59
{
    return QUrl::fromUserInput("qrc:/qml/ESP8266ComponentSummary.qml");
}