Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kamm <mail@ckamm.de>2017-05-08 13:39:08 +0300
committerMarkus Goetz <markus@woboq.com>2017-05-11 12:39:49 +0300
commit4b6edaa01aad2fc54e1b75dd964845252d40a826 (patch)
tree7f63edb593605a037bff9f310aad470bbd5649d4 /src/gui/accountstate.h
parent8da7919a4375990c69569c56de5a17ff1464ded4 (diff)
Detect maintenance mode #4485
When we first detect a 503 (probably from a PROPFIND) and enter the ServiceUnavailable state, we new trigger a status.php query that will switch the state to MaintenanceMode if necessary.
Diffstat (limited to 'src/gui/accountstate.h')
-rw-r--r--src/gui/accountstate.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/accountstate.h b/src/gui/accountstate.h
index ed7f03376..ef81bb39f 100644
--- a/src/gui/accountstate.h
+++ b/src/gui/accountstate.h
@@ -54,6 +54,10 @@ public:
/// don't bother the user too much and try again.
ServiceUnavailable,
+ /// Similar to ServiceUnavailable, but we know the server is down
+ /// for maintenance
+ MaintenanceMode,
+
/// Could not communicate with the server for some reason.
/// We assume this may resolve itself over time and will try
/// again automatically.
@@ -101,7 +105,6 @@ public:
void signIn();
bool isConnected() const;
- bool isConnectedOrTemporarilyUnavailable() const;
/// Triggers a ping to the server to update state and
/// connection status and errors.