/**************************************************************************** * * (c) 2017 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 <QObject>#include "AirspaceRestrictionProvider.h"/** * @file AirMapRestrictionManager.h * Class to download polygons from AirMap */classAirMapRestrictionManager:publicAirspaceRestrictionProvider,publicLifetimeChecker{Q_OBJECTpublic:AirMapRestrictionManager(AirMapSharedState&shared);voidsetROI(constQGeoCoordinate¢er,doubleradiusMeters)override;signals:voiderror(constQString&what,constQString&airmapdMessage,constQString&airmapdDetails);private:staticvoid_addPolygonToList(constairmap::Geometry::Polygon&polygon,QList<AirspacePolygonRestriction*>&list);enumclassState{Idle,RetrieveItems,};State_state=State::Idle;AirMapSharedState&_shared;};