Pimcommon

needupdatecheckexistingnewversionjob.h
1/*
2 SPDX-FileCopyrightText: 2025 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "pimcommon_export.h"
10#include <QDate>
11#include <QObject>
12#include <QUrl>
13namespace PimCommon
14{
15class PIMCOMMON_EXPORT NeedUpdateCheckExistingNewVersionJob : public QObject
16{
17 Q_OBJECT
18public:
19 explicit NeedUpdateCheckExistingNewVersionJob(QObject *parent = nullptr);
20 ~NeedUpdateCheckExistingNewVersionJob() override;
21
22 void start();
23
24 [[nodiscard]] QUrl url() const;
25 void setUrl(const QUrl &newUrl);
26
27 [[nodiscard]] bool canStart() const;
28
29 [[nodiscard]] QDate compileDate() const;
30 void setCompileDate(const QDate &newCompileDate);
31
32Q_SIGNALS:
33 void foundNewVersion(bool state);
34
35private:
36 PIMCOMMON_NO_EXPORT void slotDownloadDone(const QString &str);
37 QUrl mUrl;
38 QDate mCompileDate;
39};
40}
Q_SCRIPTABLE Q_NOREPLY void start()
folderdialogacltab.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.