Autopsy  4.16.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
CVTEvents.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2017-18 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.communications;
20 
21 import com.google.common.collect.ImmutableSet;
22 import com.google.common.eventbus.EventBus;
23 import java.util.Collection;
25 import org.sleuthkit.datamodel.CommunicationsFilter;
27 import org.sleuthkit.datamodel.AccountDeviceInstance;
28 
32 final class CVTEvents {
33 
34  private final static EventBus cvtEventBus = new EventBus();
35 
36  static EventBus getCVTEventBus() {
37  return cvtEventBus;
38  }
39 
40  private CVTEvents() {
41  }
42 
46  static final class FilterChangeEvent {
47 
48  private final CommunicationsFilter newFilter;
49  private final DateControlState startControlState;
50  private final DateControlState endControlState;
51 
52  CommunicationsFilter getNewFilter() {
53  return newFilter;
54  }
55 
56  DateControlState getStartControlState() {
57  return startControlState;
58  }
59 
60  DateControlState getEndControlState() {
61  return endControlState;
62  }
63 
64  FilterChangeEvent(CommunicationsFilter newFilter, DateControlState startControlState, DateControlState endControlState) {
65  this.newFilter = newFilter;
66  this.startControlState = startControlState;
67  this.endControlState = endControlState;
68  }
69 
70  }
71 
75  static final class PinAccountsEvent {
76 
77  private final ImmutableSet<AccountDeviceInstance> accounInstances;
78  private final boolean replace;
79 
80  public boolean isReplace() {
81  return replace;
82  }
83 
84  ImmutableSet<AccountDeviceInstance> getAccountDeviceInstances() {
85  return accounInstances;
86  }
87 
88  PinAccountsEvent(Collection<? extends AccountDeviceInstance> accountDeviceInstances, boolean replace) {
89  this.accounInstances = ImmutableSet.copyOf(accountDeviceInstances);
90  this.replace = replace;
91  }
92  }
93 
97  static final class UnpinAccountsEvent {
98 
99  private final ImmutableSet<AccountDeviceInstance> accountInstances;
100 
101  public ImmutableSet<AccountDeviceInstance> getAccountDeviceInstances() {
102  return accountInstances;
103  }
104 
105  UnpinAccountsEvent(Collection<? extends AccountDeviceInstance> accountDeviceInstances) {
106  this.accountInstances = ImmutableSet.copyOf(accountDeviceInstances);
107  }
108  }
109 
113  static final class StateChangeEvent {
114  private final CommunicationsState newState;
115 
116  StateChangeEvent(CommunicationsState newState) {
117  this.newState = newState;
118  }
119 
120  public CommunicationsState getCommunicationsState(){
121  return newState;
122  }
123  }
124 
128  static final class ScaleChangeEvent {
129  private final double scaleValue;
130 
131  ScaleChangeEvent(double scaleValue) {
132  this.scaleValue = scaleValue;
133  }
134 
135  public double getZoomValue(){
136  return scaleValue;
137  }
138  }
139 }

Copyright © 2012-2020 Basis Technology. Generated on: Tue Sep 22 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.