blob: e2426a31dc2c10e4137524b03290e412224cad92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright 2007-2021 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.
#ifndef MUMBLE_MUMBLE_VERSIONCHECK_H_
#define MUMBLE_MUMBLE_VERSIONCHECK_H_
#include <QFutureWatcher>
#include <QtCore/QByteArray>
#include <QtCore/QObject>
#include <QtCore/QUrl>
class VersionCheck : public QObject {
private:
Q_OBJECT
Q_DISABLE_COPY(VersionCheck)
QFutureWatcher< void > m_preparationWatcher;
QUrl m_requestURL;
protected slots:
void performRequest();
public slots:
void fetched(QByteArray data, QUrl url);
public:
VersionCheck(bool autocheck, QObject *parent = nullptr, bool focus = false);
};
#endif
|