digiKam
onlineversiondlg.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2020-12-21
7  * Description : Online version dialog.
8  *
9  * Copyright (C) 2010-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_ONLINE_VERSION_DLG_H
25 #define DIGIKAM_ONLINE_VERSION_DLG_H
26 
27 // Qt includes
28 
29 #include <QDialog>
30 
31 // Local includes
32 
33 #include "digikam_export.h"
34 #include "digikam_version.h"
35 
36 namespace Digikam
37 {
38 
39 class DIGIKAM_EXPORT OnlineVersionDlg : public QDialog
40 {
41  Q_OBJECT
42 
43 public:
44 
45  explicit OnlineVersionDlg(QWidget* const parent = nullptr,
46  const QString& version = QLatin1String(digikam_version_short),
47  const QDateTime& buildDt = digiKamBuildDate(),
48  bool checkPreRelease = false,
49  bool updateWithDebug = false);
50  ~OnlineVersionDlg() override;
51 
52 Q_SIGNALS:
53 
55 
56 private Q_SLOTS:
57 
58  void slotNewVersionAvailable(const QString& version);
59  void slotNewVersionCheckError(const QString& error);
60 
61  void slotReleaseNotesData(const QString& notes);
62 
63  void slotDownloadInstaller();
64  void slotDownloadError(const QString& error);
65  void slotDownloadProgress(qint64, qint64);
66 
67  void slotComputeChecksum();
68 
69  void slotRunInstaller();
70  void slotOpenInFileManager();
71 
72  void slotHelp();
73  void slotSetupUpdate();
74 
75  void slotUpdateStats();
76 
77 private:
78 
79  class Private;
80  Private* const d;
81 };
82 
83 } // namespace Digikam
84 
85 #endif // DIGIKAM_ONLINE_VERSION_DLG_H
Definition: onlineversiondlg.h:40
Definition: datefolderview.cpp:43
const QDateTime digiKamBuildDate()
Definition: digikam_version.cpp:55