Kstars

satellitegroup.h
1/*
2 SPDX-FileCopyrightText: 2011 Jerome SONRIER <jsid@emor3j.fr.eu.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QString>
10#include <QUrl>
11
12class Satellite;
13
14/**
15 * @class SatelliteGroup
16 * Represents a group of artificial satellites.
17 * @author Jérôme SONRIER
18 * @version 1.0
19 */
20class 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 */
39
40 /**
41 * @return TLE filename
42 */
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};
Represents a group of artificial satellites.
void updateSatellitesPos()
Compute current position of the each satellites in the group.
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.
Represents an artificial satellites.
Definition satellite.h:23
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.