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 Q_SCRIPTABLE void downloadSingleIndexFile(const QString &indexFileName);
30
31 protected:
32 void showEvent(QShowEvent *) override;
33
34 public slots:
35 void slotUpdate();
36 void slotOpenIndexFileDirectory();
37 void downloadOrDeleteIndexFiles(bool checked);
38 void addDirectoryToList(QString directory);
39 void removeDirectoryFromList(QString directory);
40 void updateIndexDirectoryList();
41
42 signals:
43 void newDownloadProgress(QString info);
44
45 private:
46 void downloadIndexFile(const QString &URL, const QString &fileN, const QString &indexSeriesName, int currentIndex,
47 int maxIndex, double fileSize);
48 bool astrometryIndicesAreAvailable();
49 void setDownloadInfoVisible(const QString &indexSeriesName, bool set);
50 int indexFileCount(QString indexName);
51 bool fileCountMatches(QDir directory, QString indexName);
52 void disconnectDownload(QMetaObject::Connection *cancelConnection, QMetaObject::Connection *replyConnection,
53 QMetaObject::Connection *percentConnection);
54 QString findFirstWritableDir();
55
56 KConfigDialog *m_ConfigDialog { nullptr };
57 Align *alignModule { nullptr };
58 QNetworkAccessManager *manager { nullptr };
59 QMap<float, QString> astrometryIndex;
60 QTimer timeoutTimer;
61 int downloadSpeed { 0 }; //bytes per millisecond
62 int actualdownloadSpeed { 0 }; //bytes per millisecond
63};
64}
Align class handles plate-solving and polar alignment measurement and correction using astrometry....
Definition align.h:77
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-2025 The KDE developers.
Generated on Fri Feb 28 2025 11:55:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.