Kstars

fileutilitycameradatadialog.h
1/*
2 SPDX-FileCopyrightText: 2023 Joseph McGee <joseph.mcgee@sbcglobal.net>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#ifndef FILEUTILITYCAMERADATADIALOG_H
10#define FILEUTILITYCAMERADATADIALOG_H
11
12#include "fileutilitycameradata.h"
13#include <QDialog>
14
15QT_BEGIN_NAMESPACE
16namespace Ui
17{
18class FileUtilityCameraDataDialog;
19}
20QT_END_NAMESPACE
21
22class FileUtilityCameraDataDialog : public QDialog
23{
25
26 public:
27 FileUtilityCameraDataDialog(QWidget *parent = nullptr,
28 const QString &aPreferredCameraId = "");
29 ~FileUtilityCameraDataDialog();
30
31 QNetworkAccessManager *getANetworkAccessManager() const;
32 void setANetworkAccessManager(QNetworkAccessManager *newANetworkAccessManager);
33
34 QNetworkReply *getReply() const;
35 void setReply(QNetworkReply *newReply);
36
37 QNetworkRequest *getRequest() const;
38 void setRequest(QNetworkRequest *newRequest);
39
40 // Available refers to the files in a repository
41 QVector<QString> getAvailableCameraDataFiles();
42 void setAvailableCameraDataFiles(QVector<QString> newAvailableCameraDataFiles);
43 void refreshCameraList(); // call to repaint the file list after download completes
44
45 int getDownloadFileCounter() const;
46 void setDownloadFileCounter(int newDownloadFileCounter);
47 void decrementDownloadFileCounter();
48
49
50 private slots:
51 void startCameraDownload();
52
53 private:
54 Ui::FileUtilityCameraDataDialog *ui;
55 QString aPreferredCameraId;
56
57 QNetworkAccessManager *aNetworkAccessManager;
58 QNetworkRequest *request;
59 QNetworkReply *reply;
60 QVector<QString> availableCameraDataFiles;
61
62 // void delay(int delaySeconds);
63 int downloadFileCounter;
64};
65
66#endif // FILEUTILITYCAMERADATADIALOG_H
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.