Kstars

satellitegroup.h
1 /*
2  SPDX-FileCopyrightText: 2011 Jerome SONRIER <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <QString>
10 #include <QUrl>
11 
12 class Satellite;
13 
14 /**
15  * @class SatelliteGroup
16  * Represents a group of artificial satellites.
17  * @author Jérôme SONRIER
18  * @version 1.0
19  */
20 class SatelliteGroup : public QList<Satellite *>
21 {
22  public:
23  /**
24  * @short Constructor
25  */
26  SatelliteGroup(const QString& name, const QString& tle_filename, const QUrl& update_url);
27 
28  virtual ~SatelliteGroup() = default;
29 
30  /**
31  * Read TLE file of the group and create all satellites found in the file.
32  */
33  void readTLE();
34 
35  /**
36  * Compute current position of the each satellites in the group.
37  */
38  void updateSatellitesPos();
39 
40  /**
41  * @return TLE filename
42  */
43  QUrl tleFilename();
44 
45  /**
46  * @return URL from which new TLE file must be download
47  */
48  QUrl tleUrl();
49 
50  /**
51  * @return Name of the group
52  */
53  QString name();
54 
55  private:
56  /// Group name
57  QString m_name;
58  /// TLE filename
59  QString m_tle_file;
60  /// URL used to update TLE file
61  QUrl m_tle_url;
62 };
SatelliteGroup(const QString &name, const QString &tle_filename, const QUrl &update_url)
Constructor.
void readTLE()
Read TLE file of the group and create all satellites found in the file.
void updateSatellitesPos()
Compute current position of the each satellites in the group.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 04:02:43 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.