aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/entities/Account.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-03 09:21:45 +0200
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-03 09:21:45 +0200
commit21be7bc16080f89778b0df4c7c55fd93b9f991a1 (patch)
tree78cf4decd7bb8310d0db53a1e97d646fa7c1acd6 /src/eu/siacs/conversations/entities/Account.java
parentd53dc28f4cb79d3508db2a30c5fab758f8a8ff13 (diff)
added permenant notification when one or more accounts are unable to connect
Diffstat (limited to '')
-rw-r--r--src/eu/siacs/conversations/entities/Account.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/entities/Account.java b/src/eu/siacs/conversations/entities/Account.java
index 8fd9444a..7c12c69b 100644
--- a/src/eu/siacs/conversations/entities/Account.java
+++ b/src/eu/siacs/conversations/entities/Account.java
@@ -35,8 +35,8 @@ public class Account extends AbstractEntity{
public static final int STATUS_DISABLED = -2;
public static final int STATUS_OFFLINE = -1;
public static final int STATUS_ONLINE = 1;
- public static final int STATUS_UNAUTHORIZED = 2;
- public static final int STATUS_NO_INTERNET = 3;
+ public static final int STATUS_NO_INTERNET = 2;
+ public static final int STATUS_UNAUTHORIZED = 3;
public static final int STATUS_TLS_ERROR = 4;
public static final int STATUS_SERVER_NOT_FOUND = 5;
@@ -133,6 +133,10 @@ public class Account extends AbstractEntity{
}
}
+ public boolean hasErrorStatus() {
+ return getStatus() > STATUS_NO_INTERNET;
+ }
+
public void setResource(String resource) {
this.resource = resource;
}