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:
authorDaniel Molkentin <danimo@owncloud.com>2013-11-27 17:11:10 +0400
committerDaniel Molkentin <danimo@owncloud.com>2013-11-27 17:11:10 +0400
commit310278f58025441a986c7885b008f208adde02d8 (patch)
tree85133f8782b43701cd128a943c992eb6c7dadc97
parent59072a81f14efc3f33b0e70f30c40e23cd7ec545 (diff)
Account: Swap connected and disconnected state
Also, avoid full integer enumeration
-rw-r--r--src/mirall/account.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mirall/account.h b/src/mirall/account.h
index de6f1169d..bcd910d9f 100644
--- a/src/mirall/account.h
+++ b/src/mirall/account.h
@@ -64,9 +64,9 @@ public:
class Account : public QObject {
Q_OBJECT
public:
- enum State { Connected = 0, /// account is online
- Disconnected = 1, /// no network connection
- SignedOut = 2 /// Disconnected + credential token has been discarded
+ enum State { Disconnected = 0, /// no network connection
+ Connected, /// account is online
+ SignedOut /// Disconnected + credential token has been discarded
};
static QString davPath() { return "remote.php/webdav/"; }