File indexing completed on 2024-06-23 05:14:06

0001 /*  dialogs/updatenotification.h
0002 
0003     This file is part of Kleopatra, the KDE keymanager
0004     SPDX-FileCopyrightText: 2017 Bundesamt für Sicherheit in der Informationstechnik
0005     SPDX-FileContributor: Intevation GmbH
0006 
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 
0010 #pragma once
0011 
0012 #include <QDialog>
0013 #include <QString>
0014 
0015 namespace Kleo
0016 {
0017 
0018 /** Updatenotification for Gpg4win
0019  *
0020  * On Windows it is usual for Applications to notify the user
0021  * about updates. To avoid network access in Kleopatra and
0022  * to have only one TLS stack in our package this is implemented
0023  * in dirmngr.
0024  */
0025 class UpdateNotification : public QDialog
0026 {
0027 public:
0028     /* Force an update check dirmngr loadswdb --force callse
0029      * check update afterwards. */
0030     static void forceUpdateCheck(QWidget *parent);
0031     /* Check for an update. The force parameter overrides the
0032      * NeverShow setting */
0033     static void checkUpdate(QWidget *parent, bool force = false);
0034     UpdateNotification(QWidget *parent, const QString &version);
0035 };
0036 } // namespace Kleo