conversations-classic/src/main/java/eu/siacs/conversations/services/AbstractQuickConversationsService.java
Daniel Gultsch 26a4598f3c automatically receive Quicksy SMS. fixes #3962
requires new version of QuicksyServer
2021-01-19 15:45:43 +01:00

36 lines
949 B
Java

package eu.siacs.conversations.services;
import android.content.Intent;
import eu.siacs.conversations.BuildConfig;
public abstract class AbstractQuickConversationsService {
public static final String SMS_RETRIEVED_ACTION = "com.google.android.gms.auth.api.phone.SMS_RETRIEVED";
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);
}
public abstract void signalAccountStateChange();
public abstract boolean isSynchronizing();
public abstract void considerSyncBackground(boolean force);
public abstract void handleSmsReceived(Intent intent);
}