11 #ifndef BACKEND_PHOTO_H 12 #define BACKEND_PHOTO_H 25 #include <Q3TextStream> 64 QString slideshowName,
65 QString thumbnailName);
68 bool setImage(QString imageName,
int uniqueID);
72 bool setImage(QString editedImageFilename);
232 #endif //BACKEND_PHOTO_H QString getSlideshowChecksum()
Get thumbanil checksum.
QString getImageFilename()
Gets the image filename.
QString originalImageFilename()
orig filename
int initialSubalbumNumber
QString slideshowLocation
A photo consists of a full size image, a smaller slide show image, a very small thumbnail image...
void revertPhoto()
revert photo to original form
QString imageChecksum
MD5 checksums, used to determine if image/thumbnail have been changed.
QString description
Photo description.
void setInitialSubalbumNumber(int val)
Sets initial subalbum number.
void setImageFilename(QString val)
Sets the image filename.
QString getThumbnailFilename()
Gets the thumbnail filename.
void rotate270()
Rotates image clockwise 270 degrees.
bool everSaved
Has the photo ever been saved?
bool getRecentlyReverted()
was the photo recently reverted? if so ignore the presence of orig files on disk
Subalbum * subalbum
Subalbum photo is in.
void exportToXML(Q3TextStream &stream)
Exports photo to xml.
Photo * getNext()
Returns next photo pointer.
bool recentlyReverted
Has the photo recently been reverted to it's original form? If so during the next save the orig file ...
void setRecentlyReverted(bool val)
reset the recently reverted value to val
QString slideshowChecksum
bool setImage(QString imageName, QString slideshowName, QString thumbnailName)
Setup photo using preexisting full size, slideshow, and thumbnail images.
int getInitialSubalbumNumber()
Returns initial subalbum number.
A subalbum contains photos.
void setImageChecksum(QString val)
Update image checksum.
int getInitialPhotoNumber()
Returns initial photo number.
void setDescription(QString val)
Sets the description.
QString thumbnailChecksum
void setSlideshowChecksum(QString val)
Update slideshow checksum.
QImage * getThumbnailImage()
Gets thumbnail image.
void rotate90()
Rotates image clockwise 90 degrees.
void setEverSaved(bool val)
sets everSaved
Photo(Subalbum *subalbum, Photo *prev, int photoNumber)
Sets default information.
void setThumbnailFilename(QString val)
Sets the thumbnail filename.
bool needsSaving
Unsaved modifications?
void setNeedsSavingVal(bool val)
Sets if the image needs to be saved to its permanent location.
QString thumbnailLocation
bool getEverSaved()
Returns if the image has ever been saved to a permanant location.
void setThumbnailChecksum(QString val)
Update thumbnail checksum.
void setSlideshowFilename(QString val)
Sets the slideshow filename.
QDateTime * importFromDisk(QDomNode *root)
Builds photo from XML DOM node, returns date modified info from xml.
bool getNeedsSavingVal()
Returns if the image needs to be saved to its permament location.
QString getSlideshowFilename()
Gets the slideshow filename.
Photo * prev
Pointer to prev photo.
Photo * next
Pointer to next photo.
QString imageLocation
Filenames.
QImage * thumbnailImage
Thumbnail Image.
QString getDescription()
Gets the description.
void applyTransformation(TRANSFORM_CODE transformation)
Apply transformation.
void flipVertically()
Flips image about vertical axis.
void setNext(Photo *val)
Sets next photo pointer.
bool constructSmallerImages()
Construct thumbnail and slideshow images, load up thumbnail image, and set photo has being modified...
void setInitialPhotoNumber(int val)
Sets initial photo number.
Photo * getPrev()
Returns the previous photo pointer.
QString getImageChecksum()
Get image checksum.
QString getThumbnailChecksum()
Get thumbanil checksum.
void setPrev(Photo *val)
Sets prev photo pointer.
void flipHorizontally()
Flips image about horizontal axis.
bool revertPossible()
can photo be reverted to a differnt original form