X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=src%2Ftim%2Fprune%2FDataSubscriber.java;fp=src%2Ftim%2Fprune%2FDataSubscriber.java;h=128e35fd9d173bee01547b9c3b3e65f03390c3be;hp=0000000000000000000000000000000000000000;hb=ce6f2161b8596f7018d6a76bff79bc9e571f35fd;hpb=2d8cb72e84d5cc1089ce77baf1e34ea3ea2f8465 diff --git a/src/tim/prune/DataSubscriber.java b/src/tim/prune/DataSubscriber.java new file mode 100644 index 0000000..128e35f --- /dev/null +++ b/src/tim/prune/DataSubscriber.java @@ -0,0 +1,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); +}