19 package org.sleuthkit.autopsy.communications;
21 import com.google.common.collect.ImmutableSet;
22 import com.google.common.eventbus.EventBus;
23 import java.util.Collection;
29 final class CVTEvents {
31 private final static EventBus cvtEventBus =
new EventBus();
33 static EventBus getCVTEventBus() {
40 static final class FilterChangeEvent {
42 private final CommunicationsFilter newFilter;
44 CommunicationsFilter getNewFilter() {
48 FilterChangeEvent(CommunicationsFilter newFilter) {
49 this.newFilter = newFilter;
54 static final class PinAccountsEvent {
56 private final ImmutableSet<AccountDeviceInstanceKey> accountDeviceInstances;
57 private final boolean replace;
59 public boolean isReplace() {
63 ImmutableSet<AccountDeviceInstanceKey> getAccountDeviceInstances() {
64 return accountDeviceInstances;
67 PinAccountsEvent(Collection<? extends AccountDeviceInstanceKey> accountDeviceInstances,
boolean replace) {
68 this.accountDeviceInstances = ImmutableSet.copyOf(accountDeviceInstances);
69 this.replace = replace;
73 static final class UnpinAccountsEvent {
75 private final ImmutableSet<AccountDeviceInstanceKey> accountDeviceInstances;
77 public ImmutableSet<AccountDeviceInstanceKey> getAccountDeviceInstances() {
78 return accountDeviceInstances;
81 UnpinAccountsEvent(Collection<? extends AccountDeviceInstanceKey> accountDeviceInstances) {
82 this.accountDeviceInstances = ImmutableSet.copyOf(accountDeviceInstances);