aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/entities/Account.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/gultsch/chat/entities/Account.java')
-rw-r--r--src/de/gultsch/chat/entities/Account.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/de/gultsch/chat/entities/Account.java b/src/de/gultsch/chat/entities/Account.java
index dcb5516a..79712b15 100644
--- a/src/de/gultsch/chat/entities/Account.java
+++ b/src/de/gultsch/chat/entities/Account.java
@@ -16,6 +16,8 @@ public class Account extends AbstractEntity{
public static final String OPTIONS = "options";
public static final String ROSTERVERSION = "rosterversion";
+ public static final int OPTION_USETLS = 0;
+
protected String username;
protected String server;
protected String password;
@@ -40,6 +42,10 @@ public class Account extends AbstractEntity{
this.rosterVersion = rosterVersion;
}
+ public boolean isOptionSet(int option) {
+ return ((options & (1 << option)) != 0);
+ }
+
public String getUsername() {
return username;
}