Kstars

opsastrometryindexfiles.h
1 
2 #pragma once
3 
4 #include "ui_opsastrometryindexfiles.h"
5 
6 #include <QDialog>
7 #include <QMap>
8 #include <QString>
9 #include <QDir>
10 #include <QTimer>
11 
13 
14 class Align;
15 class KConfigDialog;
16 
17 namespace Ekos
18 {
19 class Align;
20 
21 class OpsAstrometryIndexFiles : public QDialog, public Ui::OpsAstrometryIndexFiles
22 {
23  Q_OBJECT
24 
25  public:
26  explicit OpsAstrometryIndexFiles(Align *parent);
27  virtual ~OpsAstrometryIndexFiles() override = default;
28 
29  protected:
30  void showEvent(QShowEvent *) override;
31 
32  public slots:
33  void slotUpdate();
34  void slotOpenIndexFileDirectory();
35  void downloadOrDeleteIndexFiles(bool checked);
36  void addDirectoryToList(QString directory);
37  void removeDirectoryFromList(QString directory);
38  void updateIndexDirectoryList();
39 
40  private:
41  void downloadIndexFile(const QString &URL, const QString &fileN, QCheckBox *checkBox, int currentIndex,
42  int maxIndex, double fileSize);
43  bool astrometryIndicesAreAvailable();
44  void setDownloadInfoVisible(QString indexSeriesName,QCheckBox *checkBox, bool set);
45  int indexFileCount(QString indexName);
46  bool fileCountMatches(QDir directory, QString indexName);
47  void disconnectDownload(QMetaObject::Connection *cancelConnection, QMetaObject::Connection *replyConnection, QMetaObject::Connection *percentConnection);
48 
49  KConfigDialog *m_ConfigDialog { nullptr };
50  Align *alignModule { nullptr };
51  QNetworkAccessManager *manager { nullptr };
52  QMap<float, QString> astrometryIndex;
53  QTimer timeoutTimer;
54  int downloadSpeed { 0 }; //bytes per millisecond
55  int actualdownloadSpeed { 0 }; //bytes per millisecond
56 };
57 }
Q_OBJECTQ_OBJECT
Ekos is an advanced Astrophotography tool for Linux. It is based on a modular extensible framework to...
Definition: align.cpp:70
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.