summaryrefslogtreecommitdiffstats
path: root/core/checkcloudconnection.h
blob: 92e1b1a35020e1670018d71960e6a24e65042e57 (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
25
// 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;
	bool nextServer();
private
slots:
	void sslErrors(const QList<QSslError> &errorList);
	void gotIP(QNetworkReply *reply);
	void gotContinent(QNetworkReply *reply);
};

#endif // CHECKCLOUDCONNECTION_H