]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/data/Photo.java
Version 4, January 2008
[GpsPrune.git] / tim / prune / data / Photo.java
index 3646cb5201ba706d3d2aae30fa021d8407a41adf..2f230cc45dae35db740159724b7bd989002dbfae 100644 (file)
@@ -23,7 +23,8 @@ public class Photo
        /** Current photo status */
        private byte _currentStatus = PhotoStatus.NOT_CONNECTED;
        // TODO: Need to store caption for image?
-       // TODO: Need to store thumbnail for image?
+       // thumbnail for image (from exif)
+       private byte[] _exifThumbnail = null;
 
 
        /**
@@ -171,6 +172,21 @@ public class Photo
                _currentStatus = inStatus;
        }
 
+       /**
+        * @return byte array of thumbnail data
+        */
+       public byte[] getExifThumbnail()
+       {
+               return _exifThumbnail;
+       }
+
+       /**
+        * @param inBytes byte array from exif
+        */
+       public void setExifThumbnail(byte[] inBytes)
+       {
+               _exifThumbnail = inBytes;
+       }
 
        /**
         * Delete the cached data when the Photo is no longer needed