aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/subsurfacewebservices.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-12 06:31:16 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-12 09:22:36 -0700
commit4d06e8f7b520625d743816afbd9e0dc6945a25db (patch)
treefae81fef7d790e887c2ce38024af0d3822daaca9 /qt-ui/subsurfacewebservices.h
parent5e0c546beb48fd04758520bd3c6ff68bcc5b6d16 (diff)
downloadsubsurface-4d06e8f7b520625d743816afbd9e0dc6945a25db.tar.gz
Cloud storage: check connection before connecting
libgit2 takes forever (a minute or so) to figure out that it can't connect to a remote server. So if we are using https as connection protocol, quickly check utilizing RFCs 2324/7168 to make sure we can reach the cloud server (and not some captive portal or something). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/subsurfacewebservices.h')
-rw-r--r--qt-ui/subsurfacewebservices.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/qt-ui/subsurfacewebservices.h b/qt-ui/subsurfacewebservices.h
index 6f8d6279a..d08f64aa8 100644
--- a/qt-ui/subsurfacewebservices.h
+++ b/qt-ui/subsurfacewebservices.h
@@ -129,6 +129,13 @@ private:
};
+class CheckCloudConnection : public QObject {
+ Q_OBJECT
+public:
+ explicit CheckCloudConnection(QObject *parent = 0);
+ static bool checkServer();
+};
+
#ifdef __cplusplus
extern "C" {
#endif