aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/services/AbstractQuickConversationsService.java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-11-23 08:30:12 +0100
committerChristian Schneppe <christian@pix-art.de>2018-11-23 08:51:39 +0100
commit35d5d97544cd6abc45809a19324898dfbf457467 (patch)
tree0d358bcb048a3de2aa99f18d1baa71d71b0c29de /src/main/java/de/pixart/messenger/services/AbstractQuickConversationsService.java
parent9ec0a87cc28d134c974e8ca0e0b3fda3d89bca7a (diff)
refactored phone contact loading in preperation for sync
Diffstat (limited to '')
-rw-r--r--src/main/java/de/pixart/messenger/services/AbstractQuickConversationsService.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/services/AbstractQuickConversationsService.java b/src/main/java/de/pixart/messenger/services/AbstractQuickConversationsService.java
new file mode 100644
index 000000000..f5647bd60
--- /dev/null
+++ b/src/main/java/de/pixart/messenger/services/AbstractQuickConversationsService.java
@@ -0,0 +1,26 @@
+package de.pixart.messenger.services;
+
+public abstract class AbstractQuickConversationsService {
+
+ protected final XmppConnectionService service;
+
+ public AbstractQuickConversationsService(XmppConnectionService service) {
+ this.service = service;
+ }
+
+ public abstract void considerSync();
+
+ public static boolean isQuicksy() {
+ return false;
+ }
+
+ public static boolean isConversations() {
+ return true;
+ }
+
+ public abstract void signalAccountStateChange();
+
+ public abstract boolean isSynchronizing();
+
+ public abstract void considerSyncBackground(boolean force);
+} \ No newline at end of file