Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/align/opsastrometryindexfiles.h
Show All 29 Lines | 29 | protected: | |||
---|---|---|---|---|---|
30 | void showEvent(QShowEvent *) override; | 30 | void showEvent(QShowEvent *) override; | ||
31 | 31 | | |||
32 | public slots: | 32 | public slots: | ||
33 | void slotUpdate(); | 33 | void slotUpdate(); | ||
34 | void slotOpenIndexFileDirectory(); | 34 | void slotOpenIndexFileDirectory(); | ||
35 | void downloadOrDeleteIndexFiles(bool checked); | 35 | void downloadOrDeleteIndexFiles(bool checked); | ||
36 | 36 | | |||
37 | private: | 37 | private: | ||
38 | bool getAstrometryDataDir(QString &dataDir); | | |||
39 | void downloadIndexFile(const QString &URL, const QString &fileN, QCheckBox *checkBox, int currentIndex, | 38 | void downloadIndexFile(const QString &URL, const QString &fileN, QCheckBox *checkBox, int currentIndex, | ||
40 | int maxIndex, double fileSize); | 39 | int maxIndex, double fileSize); | ||
41 | bool astrometryIndicesAreAvailable(); | 40 | bool astrometryIndicesAreAvailable(); | ||
42 | void setDownloadInfoVisible(QString indexSeriesName,QCheckBox *checkBox, bool set); | 41 | void setDownloadInfoVisible(QString indexSeriesName,QCheckBox *checkBox, bool set); | ||
43 | bool fileCountMatches(QDir directory, QString indexName); | 42 | bool fileCountMatches(QDir directory, QString indexName); | ||
44 | void disconnectDownload(QMetaObject::Connection *cancelConnection, QMetaObject::Connection *replyConnection, QMetaObject::Connection *percentConnection); | 43 | void disconnectDownload(QMetaObject::Connection *cancelConnection, QMetaObject::Connection *replyConnection, QMetaObject::Connection *percentConnection); | ||
45 | 44 | | |||
46 | KConfigDialog *m_ConfigDialog { nullptr }; | 45 | KConfigDialog *m_ConfigDialog { nullptr }; | ||
47 | Align *alignModule { nullptr }; | 46 | Align *alignModule { nullptr }; | ||
48 | QNetworkAccessManager *manager { nullptr }; | 47 | QNetworkAccessManager *manager { nullptr }; | ||
49 | QMap<float, QString> astrometryIndex; | 48 | QMap<float, QString> astrometryIndex; | ||
50 | QTimer timeoutTimer; | 49 | QTimer timeoutTimer; | ||
51 | int downloadSpeed { 0 }; //bytes per millisecond | 50 | int downloadSpeed { 0 }; //bytes per millisecond | ||
52 | int actualdownloadSpeed { 0 }; //bytes per millisecond | 51 | int actualdownloadSpeed { 0 }; //bytes per millisecond | ||
53 | }; | 52 | }; | ||
54 | } | 53 | } |