|
AlbumShaper 1.0a3
|
This class maintains and handles saving and loading a list of recently viewed albums. More...
#include <recentAlbums.h>

Public Member Functions | |
| RecentAlbums () | |
| void | clearList () |
| int | numEntries () |
| int | getMaxItems () |
| void | getEntry (int index, QString &name, QString &location, QString &photoCount) |
| void | insertEntry (QString name, QString location, QString photos="-1", bool insertAtBack=true) |
Private Attributes | |
| QStringList | albumNames |
| lists of album names and locations | |
| QStringList | albumLocations |
| QStringList | albumPhotoCounts |
| uint | maxItems |
| max allowable items in list | |
This class maintains and handles saving and loading a list of recently viewed albums.
Definition at line 26 of file recentAlbums.h.
| RecentAlbums::RecentAlbums | ( | ) |
| void RecentAlbums::clearList | ( | ) |
Definition at line 25 of file recentAlbums.cpp.
References albumLocations, albumNames, and albumPhotoCounts.
Referenced by TitleWidget::clearOpenRecentMenu().
| void RecentAlbums::getEntry | ( | int | index, |
| QString & | name, | ||
| QString & | location, | ||
| QString & | photoCount ) |
Definition at line 42 of file recentAlbums.cpp.
References albumLocations, albumNames, and albumPhotoCounts.
Referenced by TitleWidget::loadRecentAlbum(), TitleWidget::refreshOpenRecentMenu(), and Window::~Window().
| int RecentAlbums::getMaxItems | ( | ) |
Definition at line 37 of file recentAlbums.cpp.
References maxItems.
Referenced by TitleWidget::populateOpenRecentMenu(), and TitleWidget::TitleWidget().
| void RecentAlbums::insertEntry | ( | QString | name, |
| QString | location, | ||
| QString | photos = "-1", | ||
| bool | insertAtBack = true ) |
Definition at line 49 of file recentAlbums.cpp.
References albumLocations, albumNames, albumPhotoCounts, and maxItems.
Referenced by TitleWidget::loadAlbum(), TitleWidget::saveAlbum(), TitleWidget::saveAsAlbum(), and TitleWidget::TitleWidget().
| int RecentAlbums::numEntries | ( | ) |
Definition at line 32 of file recentAlbums.cpp.
References albumNames.
Referenced by TitleWidget::refreshOpenRecentMenu(), and Window::~Window().
|
private |
Definition at line 56 of file recentAlbums.h.
Referenced by clearList(), getEntry(), and insertEntry().
|
private |
lists of album names and locations
Definition at line 55 of file recentAlbums.h.
Referenced by clearList(), getEntry(), insertEntry(), and numEntries().
|
private |
Definition at line 57 of file recentAlbums.h.
Referenced by clearList(), getEntry(), and insertEntry().
|
private |
max allowable items in list
Definition at line 60 of file recentAlbums.h.
Referenced by getMaxItems(), insertEntry(), and RecentAlbums().