ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvUpdateDlg.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 // Qt
11 #include <QDialog>
12 
13 class QSimpleUpdater;
14 
15 namespace Ui {
16 class UpdateDialog;
17 }
18 
19 class ecvUpdateDlg : public QDialog {
20  Q_OBJECT
21 
22 public:
23  explicit ecvUpdateDlg(QWidget* parent = nullptr);
24  ~ecvUpdateDlg();
25 
26 public slots:
27  void resetFields();
28  void checkForUpdates();
29  void updateChangelog(const QString& url);
30  void displayAppcast(const QString& url, const QByteArray& reply);
31 
32 private:
33  Ui::UpdateDialog* m_ui;
34  QSimpleUpdater* m_updater;
35 };
#define slots
Manages the updater instances.
void displayAppcast(const QString &url, const QByteArray &reply)
ecvUpdateDlg(QWidget *parent=nullptr)
void updateChangelog(const QString &url)
void checkForUpdates()
void resetFields()