X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fdata%2FPhoto.java;h=2f230cc45dae35db740159724b7bd989002dbfae;hp=3646cb5201ba706d3d2aae30fa021d8407a41adf;hb=da0b1f449260a0b4a94318006382a9039726ef3e;hpb=5625a1abadb5f2ca5f017fe7dbda1d5141cb637b diff --git a/tim/prune/data/Photo.java b/tim/prune/data/Photo.java index 3646cb5..2f230cc 100644 --- a/tim/prune/data/Photo.java +++ b/tim/prune/data/Photo.java @@ -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