Deskflow 1.24.0.365
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
12class QNetworkAccessManager;
13class QNetworkReply;
14
15class VersionChecker : public QObject
16{
17 Q_OBJECT
18public:
19 explicit VersionChecker(QObject *parent = nullptr);
20 void checkLatest() const;
21public Q_SLOTS:
22 void replyFinished(QNetworkReply *reply);
23Q_SIGNALS:
24 void updateFound(const QString &version);
25
26private:
27 static int compareVersions(const QString &left, const QString &right);
28
35 static int getStageVersion(QString stage);
36 QNetworkAccessManager *m_network = nullptr;
37};
void replyFinished(QNetworkReply *reply)
Definition VersionChecker.cpp:37
VersionChecker(QObject *parent=nullptr)
Definition VersionChecker.cpp:20
void updateFound(const QString &version)
void checkLatest() const
Definition VersionChecker.cpp:25