/**************************************************************************** * * (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. * ****************************************************************************/#pragma once#include "AirspaceManagement.h"#include "QGCMapPolygon.h"classAirspaceController:publicQObject{Q_OBJECTpublic:AirspaceController(QObject*parent=NULL);~AirspaceController()=default;Q_PROPERTY(QmlObjectListModel*polygonsREADpolygonsCONSTANT)///< List of PolygonAirspaceRestriction objectsQ_PROPERTY(QmlObjectListModel*circlesREADcirclesCONSTANT)///< List of CircularAirspaceRestriction objectsQ_INVOKABLEvoidsetROI(QGeoCoordinatecenter,doubleradius){_manager->setROI(center,radius);}QmlObjectListModel*polygons(){return_manager->polygonRestrictions();}QmlObjectListModel*circles(){return_manager->circularRestrictions();}Q_PROPERTY(QStringproviderNameREADproviderNameCONSTANT)QStringproviderName(){return_manager->name();}private:AirspaceManager*_manager;};