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;
32 final class CVTEvents {
34 private final static EventBus cvtEventBus =
new EventBus();
36 static EventBus getCVTEventBus() {
46 static final class FilterChangeEvent {
48 private final CommunicationsFilter newFilter;
49 private final DateControlState startControlState;
50 private final DateControlState endControlState;
52 CommunicationsFilter getNewFilter() {
56 DateControlState getStartControlState() {
57 return startControlState;
60 DateControlState getEndControlState() {
61 return endControlState;
64 FilterChangeEvent(CommunicationsFilter newFilter, DateControlState startControlState, DateControlState endControlState) {
65 this.newFilter = newFilter;
66 this.startControlState = startControlState;
67 this.endControlState = endControlState;
75 static final class PinAccountsEvent {
77 private final ImmutableSet<AccountDeviceInstance> accounInstances;
78 private final boolean replace;
80 public boolean isReplace() {
84 ImmutableSet<AccountDeviceInstance> getAccountDeviceInstances() {
85 return accounInstances;
88 PinAccountsEvent(Collection<? extends AccountDeviceInstance> accountDeviceInstances,
boolean replace) {
89 this.accounInstances = ImmutableSet.copyOf(accountDeviceInstances);
90 this.replace = replace;
97 static final class UnpinAccountsEvent {
99 private final ImmutableSet<AccountDeviceInstance> accountInstances;
101 public ImmutableSet<AccountDeviceInstance> getAccountDeviceInstances() {
102 return accountInstances;
105 UnpinAccountsEvent(Collection<? extends AccountDeviceInstance> accountDeviceInstances) {
106 this.accountInstances = ImmutableSet.copyOf(accountDeviceInstances);
113 static final class StateChangeEvent {
114 private final CommunicationsState newState;
116 StateChangeEvent(CommunicationsState newState) {
117 this.newState = newState;
120 public CommunicationsState getCommunicationsState(){
128 static final class ScaleChangeEvent {
129 private final double scaleValue;
131 ScaleChangeEvent(
double scaleValue) {
132 this.scaleValue = scaleValue;
135 public double getZoomValue(){