]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/data/MediaObject.java
Version 15, March 2013
[GpsPrune.git] / tim / prune / data / MediaObject.java
index e028f4ab4ddc7f1050f0c9e2e3792da90c3e6c41..8c53cafac220580338375300a6edbc583cacbd63 100644 (file)
@@ -105,6 +105,15 @@ public abstract class MediaObject
                return _url;
        }
 
+       /**
+        * @return the full path to the media, either filename or url
+        */
+       public String getFullPath()
+       {
+               if (_file != null) return _file.getAbsolutePath();
+               return getUrl();
+       }
+
        /**
         * @return true if details are valid (might not have timestamp)
         */
@@ -202,6 +211,14 @@ public abstract class MediaObject
                return _currentStatus != Status.NOT_CONNECTED;
        }
 
+       /**
+        * @return true if status has changed since load
+        */
+       public boolean isModified()
+       {
+               return _currentStatus != _originalStatus;
+       }
+
        /**
         * Reset any cached data (eg thumbnail)
         */