File: DataSubscriber.java

package info (click to toggle)
gpsprune 17-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,984 kB
  • ctags: 5,218
  • sloc: java: 39,403; sh: 25; makefile: 17; python: 15
file content (30 lines) | stat: -rw-r--r-- 897 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package tim.prune;

/**
 * Interface implemented by clients who want to know
 * about changes made to the data or its selection
 */
public interface DataSubscriber
{
	public static final byte DATA_ADDED_OR_REMOVED = 1;
	public static final byte DATA_EDITED           = 2;
	public static final byte SELECTION_CHANGED     = 4;
	public static final byte WAYPOINTS_MODIFIED    = 8;
	public static final byte PHOTOS_MODIFIED       = 16;
	public static final byte UNITS_CHANGED         = 32;
	public static final byte ALL                   = 63;
	public static final byte MAPSERVER_CHANGED     = 64;


	/**
	 * Inform clients that data has been updated
	 * @param inUpdateType type of update
	 */
	public void dataUpdated(byte inUpdateType);

	/**
	 * Inform clients that an action has been completed
	 * @param inMessage message describing action
	 */
	public void actionCompleted(String inMessage);
}