mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Add a panic observer
This commit is contained in:
@@ -9,6 +9,7 @@ import org.briarproject.bramble.api.nullsafety.NotNullByDefault;
|
||||
import org.briarproject.bramble.api.sync.ClientId;
|
||||
import org.briarproject.briar.api.conversation.ConversationManager;
|
||||
import org.briarproject.briar.api.conversation.ConversationMessageHeader;
|
||||
import org.briarproject.briar.api.socialbackup.recovery.SecretOwnerTask;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
@@ -16,6 +17,10 @@ import java.util.List;
|
||||
@NotNullByDefault
|
||||
public interface RemoteWipeManager extends ConversationManager.ConversationClient {
|
||||
|
||||
interface Observer {
|
||||
void onPanic();
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique ID of the remote wipe client.
|
||||
*/
|
||||
@@ -31,6 +36,8 @@ public interface RemoteWipeManager extends ConversationManager.ConversationClien
|
||||
*/
|
||||
int MINOR_VERSION = 0;
|
||||
|
||||
void listenForPanic(Observer observer);
|
||||
|
||||
void setup(Transaction txn, List<ContactId> wipers)
|
||||
throws DbException, FormatException;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user