mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
c4c8094e32
See https://www.kdab.com/goodbye-q_foreach/ This is reduced to the places where the container is const or can be made const without the need to always introduce an extra variable. Sadly qAsConst (Qt 5.7) and std::as_const (C++17) are not available in all supported setups. Also do some minor cleanups along the way. Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
21 lines
425 B
C++
21 lines
425 B
C++
// 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();
|
|
private:
|
|
QNetworkReply *reply;
|
|
private
|
|
slots:
|
|
void sslErrors(const QList<QSslError> &errorList);
|
|
};
|
|
|
|
#endif // CHECKCLOUDCONNECTION_H
|