3 #include <Q3TextStream> 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,
120 StatusWidget* status, QString dirName,
bool disableCheckPhotoMods);
184 #endif //BACKEND_SUBALBUM_H void resetNumLoadedPhotos()
Photo * firstPhoto
Pointer to first photo.
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.
void importFromDisk(QDomNode *root, int subalbumNum, StatusWidget *status, QString dirName, bool disableCheckPhotoMods)
Builds subalbum from XML DOM node.
A photo consists of a full size image, a smaller slide show image, a very small thumbnail image...
int number
Subalbum Number.
void setRepresentativeImage(QString imageFilename)
sets a sized representative image
Photo * lastPhoto
Pointer to last photo.
void exportToXML(StatusWidget *status, Q3TextStream &stream)
Exports subalbum to xml.
void setPrev(Subalbum *val)
Sets pointer of prev subalbum.
QPixmap * mediumRepresentativeImage
Album * getAlbum()
returns the album pointer
QString description
Longer description of subalbum.
int getNumLoadedPhotos()
Returns the number of loaded photos in subalbum.
void setNext(Subalbum *val)
Sets pointer of next subalbum.
A subalbum contains photos.
int numPhotos
Number of photos in subalbum.
Subalbum * prevSubalbum
Pointer to prev subalbum.
int getNumPhotos()
Returns the number of photos in the subalbum.
Subalbum(Album *albm, int number)
Sets default information is the Subalbum number.
QPixmap * getRepresentativeImage(int size)
gets a sized representative image
Photo * getFirst()
Returns first photo in subalbum.
Album * albm
Pointer to album subalbum is in.
void photoMoved(Photo *val)
Removes a specified photo without deleting the object.
QString getDescription()
Gets the Subalbum description.
Subalbum * nextSubalbum
Pointer to next subalbum.
QString getName()
Gets the Subalbum Name.
void setName(QString val)
Sets the Subalbum Name.
An album contains Subalbums.
Subalbum * getNext()
Returns pointer to next subalbum.
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...
QPixmap * largeRepresentativeImage
int getSubalbumNumber()
Returns subalbum number.
QString name
Short Name for subalbum.
void setDescription(QString val)
Sets the Subalbum description.
void setSubalbumNumber(int newVal)
Sets the subalbum number to newVal.
QPixmap * smallRepresentativeImage
void syncPhotoList(PhotoPreviewWidget *item)
Syncs photo ordering with front end gui ordering.
Subalbum * getPrev()
Returns pointer to prev subalbum.
void removePhoto(Photo *val)
Removes a specified photo.
Photo * getLast()
Returns last photo in subalbum.
int loadedPhotos
Number of photos in subalbum when last loaded.