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;
31 final class CVTEvents {
33 private final static EventBus cvtEventBus =
new EventBus();
35 static EventBus getCVTEventBus() {
45 static final class FilterChangeEvent {
47 private final CommunicationsFilter newFilter;
48 private final DateControlState startControlState;
49 private final DateControlState endControlState;
51 CommunicationsFilter getNewFilter() {
55 DateControlState getStartControlState() {
56 return startControlState;
59 DateControlState getEndControlState() {
60 return endControlState;
63 FilterChangeEvent(CommunicationsFilter newFilter, DateControlState startControlState, DateControlState endControlState) {
64 this.newFilter = newFilter;
65 this.startControlState = startControlState;
66 this.endControlState = endControlState;
74 static final class PinAccountsEvent {
76 private final ImmutableSet<AccountDeviceInstanceKey> accountDeviceInstances;
77 private final boolean replace;
79 public boolean isReplace() {
83 ImmutableSet<AccountDeviceInstanceKey> getAccountDeviceInstances() {
84 return accountDeviceInstances;
87 PinAccountsEvent(Collection<? extends AccountDeviceInstanceKey> accountDeviceInstances,
boolean replace) {
88 this.accountDeviceInstances = ImmutableSet.copyOf(accountDeviceInstances);
89 this.replace = replace;
96 static final class UnpinAccountsEvent {
98 private final ImmutableSet<AccountDeviceInstanceKey> accountDeviceInstances;
100 public ImmutableSet<AccountDeviceInstanceKey> getAccountDeviceInstances() {
101 return accountDeviceInstances;
104 UnpinAccountsEvent(Collection<? extends AccountDeviceInstanceKey> accountDeviceInstances) {
105 this.accountDeviceInstances = ImmutableSet.copyOf(accountDeviceInstances);
112 static final class StateChangeEvent {
113 private final CommunicationsState newState;
115 StateChangeEvent(CommunicationsState newState) {
116 this.newState = newState;
119 public CommunicationsState getCommunicationsState(){
127 static final class ScaleChangeEvent {
128 private final double scaleValue;
130 ScaleChangeEvent(
double scaleValue) {
131 this.scaleValue = scaleValue;
134 public double getZoomValue(){