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 <QDate> 0010 #include <QMetaType> 0011 #include <QString> 0012 namespace NeedUpdateVersionUtils 0013 { 0014 enum class LIBRUQOLAWIDGETS_TESTS_EXPORT ObsoleteVersion { 0015 Unknown, 0016 NotObsoleteYet, 0017 OlderThan6Months, 0018 OlderThan12Months, 0019 }; 0020 0021 void disableCheckVersion(); 0022 [[nodiscard]] LIBRUQOLAWIDGETS_TESTS_EXPORT bool checkVersion(); 0023 [[nodiscard]] LIBRUQOLAWIDGETS_TESTS_EXPORT NeedUpdateVersionUtils::ObsoleteVersion obsoleteVersionStatus(const QString &str, const QDate ¤tDate); 0024 }; 0025 Q_DECLARE_METATYPE(NeedUpdateVersionUtils::ObsoleteVersion)