Kstars

scope.h
1/*
2 SPDX-FileCopyrightText: 2009 Prakash Mohan <prakash.mohan@kdemail.net>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6#pragma once
7
8#include "oal/oal.h"
9
10#include <QString>
11
12/**
13 * @class OAL::Scope
14 *
15 * Information on telescope used in observation
16 */
18{
19 public:
20 Scope(const QString &id, const QString &model, const QString &vendor, const QString &type, double focalLength,
21 double aperture)
22 {
23 setScope(id, model, vendor, type, focalLength, aperture);
24 }
25 QString id() const
26 {
27 return m_Id;
28 }
29 QString model() const
30 {
31 return m_Model;
32 }
33 QString vendor() const
34 {
35 return m_Vendor;
36 }
37 QString type() const
38 {
39 return m_Type;
40 }
41 QString name() const
42 {
43 return m_Name;
44 }
45 QString driver() const
46 {
47 return m_INDIDriver;
48 }
49 double focalLength() const
50 {
51 return m_FocalLength;
52 }
53 double aperture() const
54 {
55 return m_Aperture;
56 }
57 void setScope(const QString &_id, const QString &_model, const QString &_vendor, const QString &_type,
58 double _focalLength, double _aperture);
59 inline void setINDIDriver(const QString &driver)
60 {
61 m_INDIDriver = driver;
62 }
63
64 QJsonObject toJson() const;
65
66 private:
67 QString m_Id, m_Model, m_Vendor, m_Type, m_Name, m_INDIDriver;
68 double m_FocalLength, m_Aperture;
69};
Information on telescope used in observation.
Definition scope.h:18
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:53:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.