aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/services/XmppConnectionService.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-01-28 19:21:54 +0100
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-01-28 19:21:54 +0100
commit52da0fe7c9c68d4545f068fb84efbf0854c37392 (patch)
tree4c6bfae86fc90274b26e0c18ebd7793040663759 /src/de/gultsch/chat/services/XmppConnectionService.java
parent4f902d8210d50a586c7ece1bb7da2ab26fd18da5 (diff)
account management
Diffstat (limited to 'src/de/gultsch/chat/services/XmppConnectionService.java')
-rw-r--r--src/de/gultsch/chat/services/XmppConnectionService.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/de/gultsch/chat/services/XmppConnectionService.java b/src/de/gultsch/chat/services/XmppConnectionService.java
index 20af9742..b8a54523 100644
--- a/src/de/gultsch/chat/services/XmppConnectionService.java
+++ b/src/de/gultsch/chat/services/XmppConnectionService.java
@@ -48,6 +48,10 @@ public class XmppConnectionService extends Service {
return databaseBackend.getConversations(status);
}
+ public List<Account> getAccounts() {
+ return databaseBackend.getAccounts();
+ }
+
public List<Message> getMessages(Conversation conversation) {
return databaseBackend.getMessages(conversation, 100);
}
@@ -72,4 +76,16 @@ public class XmppConnectionService extends Service {
public int getConversationCount() {
return this.databaseBackend.getConversationCount();
}
+
+ public void createAccount(Account account) {
+ databaseBackend.createAccount(account);
+ }
+
+ public void updateAccount(Account account) {
+ databaseBackend.updateAccount(account);
+ }
+
+ public void deleteAccount(Account account) {
+ databaseBackend.deleteAccount(account);
+ }
}