#include <albummanager.h>
Signals | |
| void | signalAlbumAdded (Digikam::AlbumInfo *album) |
| void | signalAlbumDeleted (Digikam::AlbumInfo *album) |
| void | signalAlbumsCleared () |
| void | signalAlbumCurrentChanged (Digikam::AlbumInfo *album) |
Public Member Functions | |
| AlbumManager (QObject *parent) | |
| ~AlbumManager () | |
| void | setLibraryPath (const QString &libraryPath) |
| QString | getLibraryPath () |
| AlbumInfo * | firstAlbum () |
| AlbumInfo * | lastAlbum () |
| AlbumInfo * | findAlbum (const QString &title) |
| void | setCurrentAlbum (AlbumInfo *album) |
| AlbumInfo * | currentAlbum () |
| void | renameAlbum (AlbumInfo *album, const QString &newTitle) |
| void | insertAlbum (AlbumInfo *album) |
| void | takeAlbum (AlbumInfo *album) |
| void | setItemHandler (AlbumItemHandler *handler) |
| AlbumItemHandler * | getItemHandler () |
Static Public Member Functions | |
| AlbumManager * | instance () |
This is the base album manager, which manages the albums in the library path. You can traverse through all the albums like this
for(AlbumInfo *album=AlbumManager::instance()->firstAlbum();
album; album = album->nextAlbum()) {
doSomething(album);
}
Definition at line 50 of file albummanager.h.
|
|
Contructor
|
|
|
Destructor
|
|
|
|
|
|
Set the base library path
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set the current/selected album
|
|
|
|
|
||||||||||||
|
rename this album with given title |
|
|
insert an album
|
|
|
remove an album
|
|
|
Set the item handler
|
|
|
Get the item handler
|
|
|
emitted when a album is added |
|
|
emitted when a album is deleted |
|
|
emitted when all albums are cleared, for eg, when the album library path is changed |
|
|
emitted when the current/selected album changes |
1.3.2