File indexing completed on 2024-04-28 15:09:02

0001 /*
0002     SPDX-FileCopyrightText: 2012 Jasem Mutlaq <mutlaqja@ikarustech.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QObject>
0010 
0011 namespace Ekos
0012 {
0013 class Align;
0014 
0015 /**
0016  * @class AstrometryParser
0017  * AstrometryParser is an interface for online and offline astrometry parsers.
0018  *
0019  * @author Jasem Mutlaq
0020  */
0021 
0022 class AstrometryParser : public QObject
0023 {
0024         Q_OBJECT
0025 
0026     public:
0027         AstrometryParser();
0028         virtual ~AstrometryParser() = default;
0029 
0030         virtual void setAlign(Align *align)                                                               = 0;
0031         virtual bool init()                                                                               = 0;
0032         virtual void verifyIndexFiles(double fov_x, double fov_y)                                         = 0;
0033         virtual bool startSolver(const QString &filename, const QStringList &args, bool generated = true) = 0;
0034         virtual bool stopSolver()                                                                         = 0;
0035 
0036     signals:
0037         void solverFinished(double orientation, double ra, double dec, double pixscale, bool eastToTheRight);
0038         void solverFailed();
0039 };
0040 }