2018-10-28 11:34:17 +00:00
|
|
|
package eu.siacs.conversations.services;
|
|
|
|
|
2021-01-19 14:45:41 +00:00
|
|
|
import android.content.Intent;
|
|
|
|
|
2018-10-28 11:34:17 +00:00
|
|
|
import eu.siacs.conversations.BuildConfig;
|
|
|
|
|
|
|
|
public abstract class AbstractQuickConversationsService {
|
|
|
|
|
2021-01-19 14:45:41 +00:00
|
|
|
|
|
|
|
public static final String SMS_RETRIEVED_ACTION = "com.google.android.gms.auth.api.phone.SMS_RETRIEVED";
|
|
|
|
|
2018-10-28 11:34:17 +00:00
|
|
|
protected final XmppConnectionService service;
|
|
|
|
|
|
|
|
public AbstractQuickConversationsService(XmppConnectionService service) {
|
|
|
|
this.service = service;
|
|
|
|
}
|
|
|
|
|
|
|
|
public abstract void considerSync();
|
|
|
|
|
|
|
|
public static boolean isQuicksy() {
|
|
|
|
return "quicksy".equals(BuildConfig.FLAVOR_mode);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static boolean isConversations() {
|
|
|
|
return "conversations".equals(BuildConfig.FLAVOR_mode);
|
|
|
|
}
|
2018-10-31 11:52:23 +00:00
|
|
|
|
|
|
|
public abstract void signalAccountStateChange();
|
2018-11-07 12:42:01 +00:00
|
|
|
|
|
|
|
public abstract boolean isSynchronizing();
|
|
|
|
|
2018-11-07 14:44:39 +00:00
|
|
|
public abstract void considerSyncBackground(boolean force);
|
2021-01-19 14:45:41 +00:00
|
|
|
|
|
|
|
public abstract void handleSmsReceived(Intent intent);
|
2018-10-28 11:34:17 +00:00
|
|
|
}
|