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 signals:
41 void newDownloadProgress(QString info);
42
43 private:
44 void downloadIndexFile(const QString &URL, const QString &fileN, QCheckBox *checkBox, int currentIndex,
45 int maxIndex, double fileSize);
46 bool astrometryIndicesAreAvailable();
47 void setDownloadInfoVisible(QString indexSeriesName,QCheckBox *checkBox, bool set);
48 int indexFileCount(QString indexName);
49 bool fileCountMatches(QDir directory, QString indexName);
50 void disconnectDownload(QMetaObject::Connection *cancelConnection, QMetaObject::Connection *replyConnection, QMetaObject::Connection *percentConnection);
51
52 KConfigDialog *m_ConfigDialog { nullptr };
53 Align *alignModule { nullptr };
54 QNetworkAccessManager *manager { nullptr };
55 QMap<float, QString> astrometryIndex;
56 QTimer timeoutTimer;
57 int downloadSpeed { 0 }; //bytes per millisecond
58 int actualdownloadSpeed { 0 }; //bytes per millisecond
59};
60}
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 18 2024 12:16:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.