14#ifndef BACKEND_SUBALBUM_H
15#define BACKEND_SUBALBUM_H
80 bool addPhoto(QString fileName,
bool replaceDescription =
false,
Photo* newPhoto = NULL);
84 QString slideshowName,
85 QString thumbnailName,
An album contains Subalbums.
A photo consists of a full size image, a smaller slide show image, a very small thumbnail image,...
A subalbum contains photos.
Subalbum * getPrev()
Returns pointer to prev subalbum.
int numPhotos
Number of photos in subalbum.
bool addPhoto(QString fileName, bool replaceDescription=false, Photo *newPhoto=NULL)
Adds a new photo to the Subalbum and appends it to the end, returns TRUE if successful.
int number
Subalbum Number.
int getNumPhotos()
Returns the number of photos in the subalbum.
Photo * getLast()
Returns last photo in subalbum.
QString name
Short Name for subalbum.
int getSubalbumNumber()
Returns subalbum number.
bool lazyAddPhoto(QString imageName, QString slideshowName, QString thumbnailName, Photo *newPhoto)
Lazily adds a new photo to the subalbum without rescaling from scrath, returns TRUE if successful.
void removePhoto(Photo *val)
Removes a specified photo.
void setSubalbumNumber(int newVal)
Sets the subalbum number to newVal.
Subalbum * getNext()
Returns pointer to next subalbum.
Subalbum * prevSubalbum
Pointer to prev subalbum.
void setRepresentativeImage(QString imageFilename)
sets a sized representative image
Album * albm
Pointer to album subalbum is in.
Subalbum * nextSubalbum
Pointer to next subalbum.
Photo * lastPhoto
Pointer to last photo.
void photoMoved(Photo *val)
Removes a specified photo without deleting the object.
QString getDescription()
Gets the Subalbum description.
void setName(QString val)
Sets the Subalbum Name.
Photo * firstPhoto
Pointer to first photo.
void setPrev(Subalbum *val)
Sets pointer of prev subalbum.
QString description
Longer description of subalbum.
QPixmap * getRepresentativeImage(int size)
gets a sized representative image
QString getName()
Gets the Subalbum Name.
Photo * getFirst()
Returns first photo in subalbum.
void resetNumLoadedPhotos()
Album * getAlbum()
returns the album pointer
void setNext(Subalbum *val)
Sets pointer of next subalbum.
int loadedPhotos
Number of photos in subalbum when last loaded.
void importFromDisk(QDomNode *root, int subalbumNum, StatusWidget *status, QString dirName, bool disableCheckPhotoMods)
Builds subalbum from XML DOM node.
QPixmap * largeRepresentativeImage
void setDescription(QString val)
Sets the Subalbum description.
QPixmap * mediumRepresentativeImage
int getNumLoadedPhotos()
Returns the number of loaded photos in subalbum.
void exportToXML(StatusWidget *status, Q3TextStream &stream)
Exports subalbum to xml.
QPixmap * smallRepresentativeImage
void syncPhotoList(PhotoPreviewWidget *item)
Syncs photo ordering with front end gui ordering.
Subalbum(Album *albm, int number)
Sets default information.