aboutsummaryrefslogtreecommitdiffstats
path: root/core/checkcloudconnection.h
blob: 414ddc434b06969121ae677541f82f9e6df5ad4b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// SPDX-License-Identifier: GPL-2.0
#ifndef CHECKCLOUDCONNECTION_H
#define CHECKCLOUDCONNECTION_H

#include <QObject>
#include <QNetworkReply>
#include <QSsl>

class CheckCloudConnection : public QObject {
	Q_OBJECT
public:
	CheckCloudConnection(QObject *parent = 0);
	bool checkServer();
	void pickServer();
private:
	QNetworkReply *reply;
private
slots:
	void sslErrors(const QList<QSslError> &errorList);
	void gotIP(QNetworkReply *reply);
	void gotContinent(QNetworkReply *reply);
};

#endif // CHECKCLOUDCONNECTION_H