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
14class Align;
15class KConfigDialog;
16
17namespace Ekos
18{
19class Align;
20
21class OpsAstrometryIndexFiles : public QDialog, public Ui::OpsAstrometryIndexFiles
22{
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}
Ekos is an advanced Astrophotography tool for Linux.
Definition align.cpp:83
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.