/**************************************************************************** * * (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 <QObject>#include <QGeoCoordinate>/// This is a QGeoCoordinate within a QObject such that it can be used on a QmlObjectListModelclassQGCQGeoCoordinate:publicQObject{Q_OBJECTpublic:QGCQGeoCoordinate(constQGeoCoordinate&coord,QObject*parent=NULL);Q_PROPERTY(QGeoCoordinatecoordinateREADcoordinateWRITEsetCoordinateNOTIFYcoordinateChanged)QGeoCoordinatecoordinate(void)const{return_coordinate;}voidsetCoordinate(constQGeoCoordinate&coordinate);signals:voidcoordinateChanged(QGeoCoordinatecoordinate);private:QGeoCoordinate_coordinate;};