File indexing completed on 2024-02-25 03:49:10

0001 /*
0002     SPDX-FileCopyrightText: 2016 Artem Fedoskin <afedoskin3@gmail.com>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 #ifndef SKYPOINTLITE_H_
0006 #define SKYPOINTLITE_H_
0007 
0008 #include "skypoint.h"
0009 #include <QObject>
0010 
0011 class SkyObject;
0012 
0013 /**
0014  * @class SkyPointLite
0015  * Wrapper for SkyPoint to allow access of some of its properties from QML
0016  *
0017  * @author Artem Fedoskin
0018  * @version 1.0
0019  */
0020 
0021 class SkyPointLite : public QObject
0022 {
0023     Q_OBJECT
0024   public:
0025     /** Constructor **/
0026     SkyPointLite();
0027 
0028     /** @short sets SkyPoint that is needed to be wrapped **/
0029     void setPoint(SkyPoint *point);
0030 
0031     /** @return SkyPoint that is being wrapped **/
0032     Q_INVOKABLE SkyPoint *getPoint() { return point; }
0033 
0034   private:
0035     SkyPoint *point;
0036 };
0037 #endif