Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
VersionChecker.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2012 Symless Ltd.
4 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
5 */
6
7#pragma once
8
9#include <QObject>
10#include <QString>
11#include <memory>
12
13class QNetworkAccessManager;
14class QNetworkReply;
15
16class VersionChecker : public QObject
17{
18 Q_OBJECT
19public:
20 explicit VersionChecker(QObject *parent = nullptr);
21 void checkLatest() const;
22public Q_SLOTS:
23 void replyFinished(QNetworkReply *reply);
24Q_SIGNALS:
25 void updateFound(const QString &version);
26
27private:
28 static int compareVersions(const QString &left, const QString &right);
29
36 static int getStageVersion(QString stage);
37 QNetworkAccessManager *m_network = nullptr;
38};
void replyFinished(QNetworkReply *reply)
Definition VersionChecker.cpp:36
VersionChecker(QObject *parent=nullptr)
Definition VersionChecker.cpp:19
void updateFound(const QString &version)
void checkLatest() const
Definition VersionChecker.cpp:24