File indexing completed on 2024-12-08 04:34:26

0001 /*
0002   SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
0003 
0004   SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 #include "libruqolawidgets_private_export.h"
0009 #include "needupdateversionutils.h"
0010 #include <KMessageWidget>
0011 /**
0012  * @brief The NeedUpdateVersionWidget class
0013  * @author Laurent Montel <montel@kde.org>
0014  */
0015 class LIBRUQOLAWIDGETS_TESTS_EXPORT NeedUpdateVersionWidget : public KMessageWidget
0016 {
0017     Q_OBJECT
0018 public:
0019     explicit NeedUpdateVersionWidget(QWidget *parent = nullptr);
0020     ~NeedUpdateVersionWidget() override;
0021 
0022     void setObsoleteVersion(NeedUpdateVersionUtils::ObsoleteVersion obsolete);
0023 
0024 private:
0025     LIBRUQOLAWIDGETS_NO_EXPORT void slotDisableVersionCheck();
0026 };