Pimcommon

verifynewversionwidget.h
1/*
2 SPDX-FileCopyrightText: 2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8#include "pimcommon_export.h"
9#include <QMap>
10#include <QObject>
11class QAction;
12namespace PimCommon
13{
14class PIMCOMMON_EXPORT VerifyNewVersionWidget : public QObject
15{
16 Q_OBJECT
17public:
18 enum class OsVersion : uint8_t {
19 Unknown,
20 Windows,
21 MacOsArm64,
22 MacOs,
23 };
24
25 explicit VerifyNewVersionWidget(QObject *parent = nullptr);
26 ~VerifyNewVersionWidget() override;
27
28 [[nodiscard]] bool canVerifyNewVersion() const;
29
30 [[nodiscard]] QAction *verifyNewVersionAction();
31
32 void addOsUrlInfo(VerifyNewVersionWidget::OsVersion os, const QString &url);
33
34private:
35 PIMCOMMON_NO_EXPORT void slotVerifyNewVersion();
37 QAction *mVerifyNewVersionAction = nullptr;
38};
39}
folderdialogacltab.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.