mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-09 09:48:43 +00:00
df0c4c8208
Apparently having this object around can lead to background network scans happening that cause WiFi perf degradation.
22 lines
381 B
C++
22 lines
381 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QNetworkAccessManager>
|
|
|
|
class CompatFetcher : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CompatFetcher(QObject *parent = nullptr);
|
|
|
|
void start();
|
|
|
|
static bool isGfeVersionSupported(QString gfeVersion);
|
|
|
|
private slots:
|
|
void handleCompatInfoFetched(QNetworkReply* reply);
|
|
|
|
private:
|
|
QNetworkAccessManager* m_Nam;
|
|
};
|