]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - src/tim/prune/DataSubscriber.java
Moved source into separate src directory due to popular request
[GpsPrune.git] / src / tim / prune / DataSubscriber.java
diff --git a/src/tim/prune/DataSubscriber.java b/src/tim/prune/DataSubscriber.java
new file mode 100644 (file)
index 0000000..128e35f
--- /dev/null
@@ -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);
+}