Autopsy  4.12.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 
31 final class CVTEvents {
32 
33  private final static EventBus cvtEventBus = new EventBus();
34 
35  static EventBus getCVTEventBus() {
36  return cvtEventBus;
37  }
38 
39  private CVTEvents() {
40  }
41 
45  static final class FilterChangeEvent {
46 
47  private final CommunicationsFilter newFilter;
48  private final DateControlState startControlState;
49  private final DateControlState endControlState;
50 
51  CommunicationsFilter getNewFilter() {
52  return newFilter;
53  }
54 
55  DateControlState getStartControlState() {
56  return startControlState;
57  }
58 
59  DateControlState getEndControlState() {
60  return endControlState;
61  }
62 
63  FilterChangeEvent(CommunicationsFilter newFilter, DateControlState startControlState, DateControlState endControlState) {
64  this.newFilter = newFilter;
65  this.startControlState = startControlState;
66  this.endControlState = endControlState;
67  }
68 
69  }
70 
74  static final class PinAccountsEvent {
75 
76  private final ImmutableSet<AccountDeviceInstanceKey> accountDeviceInstances;
77  private final boolean replace;
78 
79  public boolean isReplace() {
80  return replace;
81  }
82 
83  ImmutableSet<AccountDeviceInstanceKey> getAccountDeviceInstances() {
84  return accountDeviceInstances;
85  }
86 
87  PinAccountsEvent(Collection<? extends AccountDeviceInstanceKey> accountDeviceInstances, boolean replace) {
88  this.accountDeviceInstances = ImmutableSet.copyOf(accountDeviceInstances);
89  this.replace = replace;
90  }
91  }
92 
96  static final class UnpinAccountsEvent {
97 
98  private final ImmutableSet<AccountDeviceInstanceKey> accountDeviceInstances;
99 
100  public ImmutableSet<AccountDeviceInstanceKey> getAccountDeviceInstances() {
101  return accountDeviceInstances;
102  }
103 
104  UnpinAccountsEvent(Collection<? extends AccountDeviceInstanceKey> accountDeviceInstances) {
105  this.accountDeviceInstances = ImmutableSet.copyOf(accountDeviceInstances);
106  }
107  }
108 
112  static final class StateChangeEvent {
113  private final CommunicationsState newState;
114 
115  StateChangeEvent(CommunicationsState newState) {
116  this.newState = newState;
117  }
118 
119  public CommunicationsState getCommunicationsState(){
120  return newState;
121  }
122  }
123 
127  static final class ScaleChangeEvent {
128  private final double scaleValue;
129 
130  ScaleChangeEvent(double scaleValue) {
131  this.scaleValue = scaleValue;
132  }
133 
134  public double getZoomValue(){
135  return scaleValue;
136  }
137  }
138 }

Copyright © 2012-2018 Basis Technology. Generated on: Wed Sep 18 2019
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.