digiKam
|
Classes | |
class | Private |
Public Member Functions | |
void | cleanUp () |
bool | isShowingOnlyAvailableAlbums () const |
void | prepareItemCounts () |
void | refresh () |
void | setShowOnlyAvailableAlbums (bool onlyAvailable) |
void | startScan () |
Static Public Member Functions | |
static AlbumManager * | instance () |
Operations on Face Album | |
class | AlbumManagerCreator |
template<class T > | |
class | AlbumPointer |
class | Album |
QMap< int, int > | getFaceCount () const |
QMap< int, int > | getUnconfirmedFaceCount () const |
void | signalFaceCountsDirty (const QMap< int, int > &faceCount, const QMap< int, int > &uFaceCount, const QList< int > &toUpdatedFaces) |
Operations with database | |
static void | checkDatabaseDirsAfterFirstRun (const QString &dbPath, const QString &albumPath) |
bool | setDatabase (const DbEngineParameters ¶ms, bool priority, const QString &suggestedAlbumRoot=QString()) |
void | changeDatabase (const DbEngineParameters ¶ms) |
bool | databaseEqual (const DbEngineParameters ¶meters) const |
void | addFakeConnection () |
void | removeFakeConnection () |
Operations on Date Album | |
AlbumList | allDAlbums () const |
DAlbum * | findDAlbum (int id) const |
QMap< YearMonth, int > | getDAlbumsCount () const |
void | signalDAlbumsDirty (const QMap< YearMonth, int > &) |
void | signalDatesHashDirty (const QHash< QDateTime, int > &) |
void | signalAllDAlbumsLoaded () |
Operations on Physical Album | |
AlbumList | allPAlbums () const |
PAlbum * | currentPAlbum () const |
PAlbum * | findPAlbum (const QUrl &url) const |
PAlbum * | findPAlbum (int id) const |
QMap< int, int > | getPAlbumsCount () const |
void | removeWatchedPAlbums (const PAlbum *const album) |
PAlbum * | createPAlbum (PAlbum *parent, const QString &name, const QString &caption, const QDate &date, const QString &category, QString &errMsg) |
PAlbum * | createPAlbum (const QString &albumRootPath, const QString &name, const QString &caption, const QDate &date, const QString &category, QString &errMsg) |
PAlbum * | createPAlbum (const CollectionLocation &location, const QString &name, const QString &caption, const QDate &date, const QString &category, QString &errMsg) |
bool | renamePAlbum (PAlbum *album, const QString &newName, QString &errMsg) |
bool | updatePAlbumIcon (PAlbum *album, qlonglong iconID, QString &errMsg) |
void | signalPAlbumsDirty (const QMap< int, int > &) |
Operations on Tag Album | |
AlbumList | allTAlbums () const |
QList< TAlbum * > | currentTAlbums () const |
TAlbum * | findTAlbum (int id) const |
TAlbum * | findTAlbum (const QString &tagPath) const |
QMap< int, int > | getTAlbumsCount () const |
TAlbum * | createTAlbum (TAlbum *parent, const QString &name, const QString &iconkde, QString &errMsg) |
AlbumList | findOrCreateTAlbums (const QStringList &tagPaths) |
bool | deleteTAlbum (TAlbum *album, QString &errMsg, bool askUser=true) |
bool | renameTAlbum (TAlbum *album, const QString &name, QString &errMsg) |
bool | moveTAlbum (TAlbum *album, TAlbum *newParent, QString &errMsg) |
bool | mergeTAlbum (TAlbum *album, TAlbum *destAlbum, bool dialog, QString &errMsg) |
bool | updateTAlbumIcon (TAlbum *album, const QString &iconKDE, qlonglong iconID, QString &errMsg) |
AlbumList | getRecentlyAssignedTags (bool includeInternal=false) const |
QStringList | tagPaths (const QList< int > &tagIDs, bool leadingSlash=true, bool includeInternal=false) const |
QStringList | tagNames (const QList< int > &tagIDs, bool includeInternal=false) const |
QHash< int, QString > | tagPaths (bool leadingSlash=true, bool includeInternal=false) const |
QHash< int, QString > | tagNames (bool includeInternal=false) const |
AlbumList | findTagsWithProperty (const QString &property) |
AlbumList | findTagsWithProperty (const QString &property, const QString &value) |
QList< int > | subTags (int tagId, bool recursive=false) |
void | signalTAlbumsDirty (const QMap< int, int > &) |
void | signalTagPropertiesChanged (TAlbum *album) |
Operations on Search Album | |
AlbumList | allSAlbums () const |
SAlbum * | findSAlbum (int id) const |
SAlbum * | findSAlbum (const QString &name) const |
QList< SAlbum * > | findSAlbumsBySearchType (int searchType) const |
SAlbum * | createSAlbum (const QString &name, DatabaseSearch::Type type, const QString &query) |
bool | updateSAlbum (SAlbum *album, const QString &changedQuery, const QString &changedName=QString(), DatabaseSearch::Type type=DatabaseSearch::UndefinedType) |
bool | deleteSAlbum (SAlbum *album) |
void | signalUpdateDuplicatesAlbums (const QList< SAlbum * > &modifiedAlbums, const QList< qlonglong > &deletedImages) |
void | signalSearchUpdated (SAlbum *album) |
AlbumManager manages albums: does listing of albums and controls the lifetime of it. For PAlbums and TAlbums, the listing is done by reading the db directly and building the hierarchy of the albums. For DAlbums, since the listing takes time, the work is delegated to a dbjob. Interested frontend entities can connect to the albummanager to receive notifications of new Albums, when Albums are deleted and when the current album is changed.
Additional operations are provided for: creating/deleting/rename Albums, updating icons and moving Albums.
void Digikam::AlbumManager::addFakeConnection | ( | ) |
References Digikam::AlbumManager::Private::dbFakeConnection.
Referenced by setDatabase().
QHash< int, QString > Digikam::AlbumManager::albumTitles | ( | ) | const |
References Digikam::AlbumIterator::current(), Digikam::Album::id(), Digikam::AlbumManager::Private::rootPAlbum, and Digikam::Album::title().
AlbumList Digikam::AlbumManager::allDAlbums | ( | ) | const |
References Digikam::AlbumIterator::current(), and Digikam::AlbumManager::Private::rootDAlbum.
AlbumList Digikam::AlbumManager::allPAlbums | ( | ) | const |
References Digikam::AlbumIterator::current(), and Digikam::AlbumManager::Private::rootPAlbum.
Referenced by Digikam::FacesDetector::FacesDetector(), Digikam::MetadataSynchronizer::MetadataSynchronizer(), and Digikam::AlbumSelectors::selectedAlbums().
AlbumList Digikam::AlbumManager::allSAlbums | ( | ) | const |
References Digikam::AlbumIterator::current(), and Digikam::AlbumManager::Private::rootSAlbum.
Referenced by Digikam::FindDuplicatesView::populateTreeView().
AlbumList Digikam::AlbumManager::allTAlbums | ( | ) | const |
References Digikam::AlbumIterator::current(), and Digikam::AlbumManager::Private::rootTAlbum.
Referenced by Digikam::AlbumSelectors::selectedTags(), and Digikam::TagEditDlg::TagEditDlg().
void Digikam::AlbumManager::changeDatabase | ( | const DbEngineParameters & | params | ) |
Sets new database when chosen by the user in setup. Handles user notification about problems. Call this instead of setDatabase when digiKam is up and running.
References Digikam::ScanController::completeCollectionScan(), Digikam::DbEngineParameters::getCoreDatabaseNameOrDir(), Digikam::DatabaseServerStarter::instance(), Digikam::ScanController::instance(), Digikam::DbEngineParameters::isSQLite(), Digikam::CoreDbAccess::parameters(), setDatabase(), Digikam::DbEngineParameters::SQLiteDatabaseFile(), startScan(), and Digikam::DatabaseServerStarter::stopServerManagerProcess().
Referenced by Digikam::SetupDatabase::applySettings().
|
static |
Some checks for settings done in first run wizard in case of QSlite Database.
References Digikam::DbEngineParameters::parametersForSQLiteDefaultFile(), and Digikam::DbEngineParameters::SQLiteDatabaseFile().
void Digikam::AlbumManager::cleanUp | ( | ) |
Stop ongoing operations, prepare for application shutdown
References Digikam::AlbumManager::Private::albumListJob, Digikam::ActionThreadBase::cancel(), Digikam::AlbumManager::Private::dateListJob, Digikam::AlbumManager::Private::personListJob, and Digikam::AlbumManager::Private::tagListJob.
Referenced by setDatabase(), and Digikam::DigikamApp::~DigikamApp().
void Digikam::AlbumManager::clearCurrentAlbums | ( | ) |
clear current albums.
References Digikam::AlbumManager::Private::currentAlbums, and signalAlbumCurrentChanged().
Referenced by Digikam::GPSSearchView::doLoadState(), Digikam::FuzzySearchView::dropEvent(), and Digikam::SearchModificationHelper::slotCreateTimeLineSearch().
PAlbum * Digikam::AlbumManager::createPAlbum | ( | const CollectionLocation & | location, |
const QString & | name, | ||
const QString & | caption, | ||
const QDate & | date, | ||
const QString & | category, | ||
QString & | errMsg | ||
) |
Overloaded method. Here you can supply a collection location (which must be available).
location | the collection for the new album |
References Digikam::AlbumManager::Private::albumRootAlbumHash, createPAlbum(), and Digikam::RedEye::location().
PAlbum * Digikam::AlbumManager::createPAlbum | ( | const QString & | albumRootPath, |
const QString & | name, | ||
const QString & | caption, | ||
const QDate & | date, | ||
const QString & | category, | ||
QString & | errMsg | ||
) |
Overloaded method. Here you can supply an albumRootPath which must correspond to an available collection location.
References createPAlbum(), Digikam::CollectionManager::instance(), Digikam::RedEye::location(), and Digikam::CollectionManager::locationForAlbumRootPath().
PAlbum * Digikam::AlbumManager::createPAlbum | ( | PAlbum * | parent, |
const QString & | name, | ||
const QString & | caption, | ||
const QDate & | date, | ||
const QString & | category, | ||
QString & | errMsg | ||
) |
Create a new PAlbum with supplied properties as a child of the parent This is equivalent to creating a new folder on the disk with supplied name in the parent's folder path. Also the supplied attributes are written out to the database
parent | The parent album under which to create the new Album. Parent must not be root. Otherwise, use the other variants of this method. If parent is root, the albumRootPath must be supplied. |
name | the name of the new album |
caption | the caption for the new album |
date | the date for the new album |
errMsg | this will contain the error message describing why the operation failed |
References Digikam::CoreDB::addAlbum(), Digikam::PAlbum::albumPath(), Digikam::PAlbum::albumRootId(), Digikam::PAlbum::databaseUrl(), Digikam::CoreDbAccess::db(), Digikam::CoreDbUrl::fileUrl(), Digikam::Album::firstChild(), Digikam::PAlbum::isAlbumRoot(), Digikam::Album::isRoot(), Digikam::Album::next(), Digikam::Album::PHYSICAL, and signalAlbumsUpdated().
Referenced by createPAlbum(), and Digikam::AlbumModificationHelper::slotAlbumNew().
SAlbum * Digikam::AlbumManager::createSAlbum | ( | const QString & | name, |
DatabaseSearch::Type | type, | ||
const QString & | query | ||
) |
Create a new SAlbum with supplied url. If an existing SAlbum with same name exists this function will return a pointer to that album, instead of creating a new one. A newly created search album is added to the database. For an existing SAlbum, the url is updated and written out to the database
name | name for the new search |
type | the type of the search |
query | search query to use |
References Digikam::CoreDB::addSearch(), Digikam::AlbumManager::Private::allAlbumsIdHash, Digikam::CoreDbAccess::db(), findSAlbum(), Digikam::Album::globalID(), Digikam::Album::lastChild(), Digikam::AlbumManager::Private::rootSAlbum, Digikam::Album::setParent(), signalAlbumAboutToBeAdded(), signalAlbumAdded(), and updateSAlbum().
Referenced by Digikam::SearchModificationHelper::createFuzzySearchFromDropped(), Digikam::SearchModificationHelper::createFuzzySearchFromImage(), Digikam::SearchModificationHelper::createFuzzySearchFromSketch(), and Digikam::SearchModificationHelper::slotCreateTimeLineSearch().
TAlbum * Digikam::AlbumManager::createTAlbum | ( | TAlbum * | parent, |
const QString & | name, | ||
const QString & | iconkde, | ||
QString & | errMsg | ||
) |
Create a new TAlbum with supplied properties as a child of the parent The tag is added to the database
parent | the parent album under which to create the new Album |
name | the name of the new album |
iconkde | the iconkde for the new album (this is a filename which kde iconloader can load up |
errMsg | this will contain the error message describing why the operation failed |
References Digikam::CoreDB::addTag(), Digikam::CoreDbAccess::db(), Digikam::FaceTags::ensureIsPerson(), findTAlbum(), Digikam::Album::id(), Digikam::Album::isAncestorOf(), Digikam::FaceTags::personParentTag(), signalAlbumsUpdated(), and Digikam::Album::TAG.
Referenced by Digikam::TagEditDlg::createTAlbum().
AlbumList Digikam::AlbumManager::currentAlbums | ( | ) | const |
References Digikam::AlbumManager::Private::currentAlbums.
Referenced by Digikam::ContextMenuHelper::addGotoMenu(), Digikam::AbstractAlbumTreeView::currentAlbums(), Digikam::DBInfoIface::defaultUploadUrl(), Digikam::DigikamApp::DigikamApp(), Digikam::AlbumHistory::slotAlbumCurrentChanged(), Digikam::ItemIconView::slotAlbumOpenInFileManager(), Digikam::ItemIconView::slotAlbumReadMetadata(), Digikam::AlbumHistory::slotAlbumSelected(), Digikam::ItemIconView::slotAlbumWriteMetadata(), Digikam::AlbumHistory::slotCurrentChange(), Digikam::ImportUI::slotDownload(), and Digikam::AlbumHistory::slotImageSelected().
PAlbum * Digikam::AlbumManager::currentPAlbum | ( | ) | const |
Temporary fix, to return multiple items, iterate and cast each element
References Digikam::AlbumManager::Private::currentAlbums.
Referenced by Digikam::AlbumSelectWidget::AlbumSelectWidget(), and Digikam::ItemIconView::slotAlbumPropsEdit().
This method is not yet used
References Digikam::AlbumManager::Private::currentAlbums.
Referenced by Digikam::ItemIconView::slotDeleteTag(), Digikam::ItemIconView::slotEditTag(), and Digikam::ItemIconView::slotNewTag().
bool Digikam::AlbumManager::databaseEqual | ( | const DbEngineParameters & | parameters | ) | const |
Checks if the given database path is equal to the current one
References Digikam::CoreDbAccess::parameters().
bool Digikam::AlbumManager::deleteSAlbum | ( | SAlbum * | album | ) |
Delete a SAlbum from the database
album | the album to delete |
References Digikam::AlbumManager::Private::allAlbumsIdHash, Digikam::CoreDbAccess::db(), Digikam::CoreDB::deleteSearch(), Digikam::Album::globalID(), Digikam::Album::id(), signalAlbumAboutToBeDeleted(), signalAlbumDeleted(), and signalAlbumHasBeenDeleted().
Referenced by Digikam::SearchModificationHelper::slotSearchDelete().
bool Digikam::AlbumManager::deleteTAlbum | ( | TAlbum * | album, |
QString & | errMsg, | ||
bool | askUser = true |
||
) |
Delete a TAlbum. The tag is removed from the database
album | the TAlbum to delete |
errMsg | this will contain the error message describing why the |
askUser | ask user to write metadata to images operation failed |
References Digikam::FaceTagsEditor::addManually(), Digikam::AlbumIterator::current(), Digikam::FaceTagsEditor::databaseFaces(), Digikam::CoreDbAccess::db(), Digikam::CoreDB::deleteTag(), Digikam::CoreDB::getItemIDsInTag(), Digikam::Album::id(), Digikam::FaceTags::isPerson(), Digikam::FaceTags::isSystemPersonTagId(), Digikam::FaceTagsIface::region(), Digikam::FaceTagsEditor::removeFace(), Digikam::AlbumManager::Private::rootTAlbum, signalAlbumsUpdated(), Digikam::Album::TAG, Digikam::FaceTagsIface::tagId(), Digikam::FaceTagsIface::UnknownName, and Digikam::FaceTags::unknownPersonTagId().
Referenced by mergeTAlbum().
Album * Digikam::AlbumManager::findAlbum | ( | Album::Type | type, |
int | id | ||
) | const |
id | the id for the album (not the global id) |
References findAlbum(), and Digikam::Album::globalID().
Album * Digikam::AlbumManager::findAlbum | ( | int | gid | ) | const |
gid | the global id for the album |
References Digikam::AlbumManager::Private::allAlbumsIdHash.
Referenced by findAlbum(), Digikam::AlbumThumbnailLoader::slotDispatchThumbnailInternal(), Digikam::ImportUI::slotDownload(), and Digikam::AlbumThumbnailLoader::slotGotThumbnailFromIcon().
DAlbum * Digikam::AlbumManager::findDAlbum | ( | int | id | ) | const |
id | the id for the DAlbum |
References Digikam::AlbumManager::Private::allAlbumsIdHash, Digikam::Album::globalID(), and Digikam::AlbumManager::Private::rootDAlbum.
Referenced by Digikam::DateAlbumModel::albumForId(), and Digikam::DateTreeView::setCurrentAlbum().
AlbumList Digikam::AlbumManager::findOrCreateTAlbums | ( | const QStringList & | tagPaths | ) |
A list of tag paths is supplied. If no corresponding TAlbum exists, a new one will be created.
tagPaths | A list of tag paths |
References findTAlbum(), Digikam::TagsCache::getOrCreateTags(), Digikam::TagsCache::instance(), and tagPaths().
PAlbum * Digikam::AlbumManager::findPAlbum | ( | const QUrl & | url | ) | const |
Given a complete file url (kde url with file protocol), it will try to find a PAlbum corresponding to it.
url
url | the url we need to check |
References Digikam::CollectionManager::album(), Digikam::AlbumManager::Private::albumPathHash, Digikam::CollectionManager::instance(), Digikam::RedEye::location(), and Digikam::CollectionManager::locationForUrl().
Referenced by Digikam::AlbumDragDropHandler::accepts(), Digikam::ItemCategorizedView::albumAt(), Digikam::AlbumModel::albumData(), Digikam::AlbumModel::albumForId(), Digikam::ItemAlbumFilterModel::compareInfosCategories(), Digikam::DTrash::deleteImage(), Digikam::AlbumDragDropHandler::dropEvent(), Digikam::ImageWindow::dropEvent(), Digikam::FindDuplicatesAlbumItem::FindDuplicatesAlbumItem(), Digikam::ToolTipFiller::imageInfoTipContents(), Digikam::SearchFieldAlbum::read(), Digikam::AlbumTreeView::setCurrentAlbum(), Digikam::AlbumSelectWidget::setCurrentAlbumUrl(), Digikam::ItemIconView::slotAlbumSelected(), Digikam::AlbumHistory::slotClearSelectPAlbum(), Digikam::ItemAlbumModel::slotCollectionImageChange(), Digikam::ImportUI::slotDownload(), Digikam::ItemIconView::slotGotoAlbumAndItem(), and Digikam::ItemIconView::slotSelectAlbum().
PAlbum * Digikam::AlbumManager::findPAlbum | ( | int | id | ) | const |
id | the id for the PAlbum |
References Digikam::AlbumManager::Private::allAlbumsIdHash, Digikam::Album::globalID(), and Digikam::AlbumManager::Private::rootPAlbum.
SAlbum * Digikam::AlbumManager::findSAlbum | ( | const QString & | name | ) | const |
name | the name of the search |
References Digikam::Album::firstChild(), Digikam::Album::next(), and Digikam::AlbumManager::Private::rootSAlbum.
SAlbum * Digikam::AlbumManager::findSAlbum | ( | int | id | ) | const |
id | the id for the SAlbum |
References Digikam::AlbumManager::Private::allAlbumsIdHash, Digikam::Album::globalID(), and Digikam::AlbumManager::Private::rootSAlbum.
Referenced by Digikam::SearchModel::albumForId(), createSAlbum(), Digikam::SearchTreeView::setCurrentAlbum(), and Digikam::ItemAlbumModel::slotSearchChange().
searchType | the type of the search |
References Digikam::Album::firstChild(), Digikam::Album::next(), Digikam::AlbumManager::Private::rootSAlbum, and Digikam::SAlbum::searchType().
AlbumList Digikam::AlbumManager::findTagsWithProperty | ( | const QString & | property | ) |
Returns a list of TAlbums which have the given property, or the given property/value combination.
References findTAlbum(), Digikam::TagsCache::instance(), and Digikam::TagsCache::tagsWithProperty().
AlbumList Digikam::AlbumManager::findTagsWithProperty | ( | const QString & | property, |
const QString & | value | ||
) |
TAlbum * Digikam::AlbumManager::findTAlbum | ( | const QString & | tagPath | ) | const |
tagPath | the tag path ("People/Friend/John") |
References Digikam::AlbumIterator::current(), Digikam::AlbumManager::Private::rootTAlbum, and Digikam::TAlbum::tagPath().
TAlbum * Digikam::AlbumManager::findTAlbum | ( | int | id | ) | const |
id | the id for the TAlbum |
References Digikam::AlbumManager::Private::allAlbumsIdHash, Digikam::Album::globalID(), and Digikam::AlbumManager::Private::rootTAlbum.
Referenced by Digikam::TagDragDropHandler::accepts(), Digikam::FaceUtils::addNormalTag(), Digikam::TagModel::albumForId(), Digikam::TagEditDlg::createTAlbum(), createTAlbum(), Digikam::ListItem::data(), Digikam::TagDragDropHandler::dropEvent(), Digikam::ImageWindow::dropEvent(), findOrCreateTAlbums(), findTagsWithProperty(), Digikam::ColorLabelFilter::getCheckedColorLabelTags(), Digikam::PickLabelFilter::getCheckedPickLabelTags(), getRecentlyAssignedTags(), Digikam::TagsManagerFilterModel::matches(), moveTAlbum(), Digikam::SearchFieldAlbum::read(), Digikam::SearchFieldLabels::read(), Digikam::FaceUtils::removeNormalTag(), Digikam::TagList::restoreSettings(), Digikam::TagTreeView::setCurrentAlbum(), Digikam::AssignNameWidget::setCurrentFace(), Digikam::AlbumHistory::slotClearSelectTAlbum(), Digikam::ItemIconView::slotGotoTagAndItem(), Digikam::ItemAlbumModel::slotImageTagChange(), Digikam::ItemIconView::slotRemoveTag(), Digikam::TagModificationHelper::slotTagNew(), subTags(), tagNames(), and tagPaths().
QMap< YearMonth, int > Digikam::AlbumManager::getDAlbumsCount | ( | ) | const |
Returns the latest count for DAlbums as also emitted via signalDAlbumsDirty.
References Digikam::AlbumManager::Private::dAlbumsCount.
QMap< int, int > Digikam::AlbumManager::getFaceCount | ( | ) | const |
Returns the latest count for faces as also emitted via signalFaceCountsDirty.
References Digikam::AlbumManager::Private::fAlbumsCount.
qlonglong Digikam::AlbumManager::getItemFromAlbum | ( | Album *const | album, |
const QString & | fileName | ||
) |
Returns the id of the item with the given filename in the given Album.
album | The album in which we search the item. |
fileName | The name of the item file. |
References Digikam::CoreDbAccess::db(), Digikam::CoreDB::getItemFromAlbum(), and Digikam::Album::id().
Referenced by Digikam::DTrash::deleteImage().
QMap< int, int > Digikam::AlbumManager::getPAlbumsCount | ( | ) | const |
Returns the latest count for PAlbums as also emitted via signalPAlbumsDirty.
References Digikam::AlbumManager::Private::pAlbumsCount.
AlbumList Digikam::AlbumManager::getRecentlyAssignedTags | ( | bool | includeInternal = false | ) | const |
Get a list of recently assigned tags (only last 6 tags are listed)
includeInternal | include internal tags in the returned list, or skip them |
References Digikam::CoreDbAccess::db(), findTAlbum(), Digikam::CoreDB::getRecentlyAssignedTags(), and Digikam::TAlbum::isInternalTag().
QMap< int, int > Digikam::AlbumManager::getTAlbumsCount | ( | ) | const |
Returns the latest count for TAlbums as also emitted via signalTAlbumsDirty.
References Digikam::AlbumManager::Private::tAlbumsCount.
QMap< int, int > Digikam::AlbumManager::getUnconfirmedFaceCount | ( | ) | const |
Returns the latest count for unconfirmed faces only as also emitted via signalFaceCountsDirty.
References Digikam::AlbumManager::Private::uAlbumsCount.
Referenced by Digikam::AlbumFilterModel::lessThan().
|
static |
A convenience function to get the instance of the AlbumManager
Referenced by Digikam::AbstractAlbumModel::AbstractAlbumModel(), Digikam::AlbumDragDropHandler::accepts(), Digikam::TagDragDropHandler::accepts(), Digikam::TagModel::activateFaceTagModel(), Digikam::ContextMenuHelper::addGotoMenu(), Digikam::FaceUtils::addNormalTag(), Digikam::ItemCategorizedView::albumAt(), Digikam::AbstractCountingAlbumModel::albumCleared(), Digikam::AbstractCheckableAlbumModel::albumCleared(), Digikam::AlbumModel::albumData(), Digikam::AlbumFilterModel::AlbumFilterModel(), Digikam::AlbumModel::albumForId(), Digikam::TagModel::albumForId(), Digikam::SearchModel::albumForId(), Digikam::DateAlbumModel::albumForId(), Digikam::AlbumModel::AlbumModel(), Digikam::AlbumPointer< T >::AlbumPointer(), Digikam::AlbumSelectWidget::AlbumSelectWidget(), Digikam::SetupDatabase::applySettings(), Digikam::ItemAlbumFilterModel::compareInfosCategories(), Digikam::FaceGroup::Private::createAssignNameWidget(), Digikam::SearchModificationHelper::createFuzzySearchFromDropped(), Digikam::SearchModificationHelper::createFuzzySearchFromImage(), Digikam::SearchModificationHelper::createFuzzySearchFromSketch(), Digikam::TagEditDlg::createTAlbum(), Digikam::AbstractAlbumTreeView::currentAlbums(), Digikam::ListItem::data(), Digikam::TableViewColumns::ColumnDigikamProperties::data(), Digikam::DateAlbumModel::DateAlbumModel(), Digikam::DateFolderView::DateFolderView(), Digikam::DBInfoIface::defaultUploadUrl(), Digikam::DIO::del(), Digikam::DTrash::deleteImage(), Digikam::DigikamApp::DigikamApp(), Digikam::GPSSearchView::doLoadState(), Digikam::AlbumDragDropHandler::dropEvent(), Digikam::TagDragDropHandler::dropEvent(), Digikam::FuzzySearchView::dropEvent(), Digikam::ImageWindow::dropEvent(), Digikam::FaceGroup::FaceGroup(), Digikam::FacesDetector::FacesDetector(), Digikam::FindDuplicatesAlbumItem::FindDuplicatesAlbumItem(), Digikam::FindDuplicatesView::FindDuplicatesView(), Digikam::FocusPointGroup::FocusPointGroup(), Digikam::ColorLabelFilter::getCheckedColorLabelTags(), Digikam::PickLabelFilter::getCheckedPickLabelTags(), Digikam::CommonKeys::getDbValue(), Digikam::TagFolderView::handleCustomContextMenuAction(), Digikam::ToolTipFiller::imageInfoTipContents(), Digikam::ItemAlbumFilterModel::ItemAlbumFilterModel(), Digikam::ItemAlbumModel::ItemAlbumModel(), Digikam::ItemIconView::ItemIconView(), Digikam::DBInfoIface::itemInfo(), Digikam::ItemViewUtilities::ItemViewUtilities(), Digikam::AlbumFilterModel::lessThan(), Digikam::TagsManagerFilterModel::matches(), Digikam::MetadataSynchronizer::MetadataSynchronizer(), Digikam::DIO::move(), Digikam::AlbumPointer< T >::operator=(), Digikam::ItemDelegate::paint(), Digikam::ImportDelegate::paint(), Digikam::FindDuplicatesView::populateTreeView(), Digikam::SearchFieldAlbum::read(), Digikam::SearchFieldLabels::read(), Digikam::FaceUtils::removeNormalTag(), Digikam::TagList::restoreSettings(), Digikam::AlbumSelectors::selectedAlbums(), Digikam::AlbumSelectors::selectedTags(), Digikam::AlbumFolderViewSideBarWidget::setActive(), Digikam::FuzzySearchSideBarWidget::setActive(), Digikam::SearchSideBarWidget::setActive(), Digikam::TagViewSideBarWidget::setActive(), Digikam::TimelineSideBarWidget::setActive(), Digikam::GPSSearchView::setActive(), Digikam::DateFolderView::setActive(), Digikam::ItemViewUtilities::setAsAlbumThumbnail(), Digikam::AlbumTreeView::setCurrentAlbum(), Digikam::DateTreeView::setCurrentAlbum(), Digikam::SearchTreeView::setCurrentAlbum(), Digikam::TagTreeView::setCurrentAlbum(), Digikam::AbstractAlbumTreeView::setCurrentAlbums(), Digikam::AlbumSelectWidget::setCurrentAlbumUrl(), Digikam::AssignNameWidget::setCurrentFace(), Digikam::AssignNameWidget::setCurrentTag(), Digikam::AbstractCountingAlbumModel::setup(), Digikam::AlbumHistory::slotAlbumCurrentChanged(), Digikam::AlbumModificationHelper::slotAlbumEdit(), Digikam::AlbumModificationHelper::slotAlbumNew(), Digikam::AlbumModificationHelper::slotAlbumRename(), Digikam::AlbumModificationHelper::slotAlbumResetIcon(), Digikam::AlbumHistory::slotAlbumSelected(), Digikam::AlbumHistory::slotClearSelectPAlbum(), Digikam::AlbumHistory::slotClearSelectTAlbum(), Digikam::ItemAlbumModel::slotCollectionImageChange(), Digikam::SearchModificationHelper::slotCreateTimeLineSearch(), Digikam::AlbumHistory::slotCurrentChange(), Digikam::ItemIconView::slotDeleteTag(), Digikam::AlbumThumbnailLoader::slotDispatchThumbnailInternal(), Digikam::ImportUI::slotDownload(), Digikam::ItemIconView::slotEditTag(), Digikam::ItemIconView::slotGotoAlbumAndItem(), Digikam::ItemIconView::slotGotoTagAndItem(), Digikam::AlbumThumbnailLoader::slotGotThumbnailFromIcon(), Digikam::AlbumHistory::slotImageSelected(), Digikam::ItemAlbumModel::slotImageTagChange(), Digikam::TagModificationHelper::slotMultipleFaceTagDel(), Digikam::TagModificationHelper::slotMultipleTagDel(), Digikam::ItemIconView::slotNewTag(), Digikam::ItemIconView::slotRemoveTag(), Digikam::ItemAlbumModel::slotSearchChange(), Digikam::SearchModificationHelper::slotSearchDelete(), Digikam::SearchModificationHelper::slotSearchRename(), Digikam::AbstractAlbumTreeView::slotSelectionChanged(), Digikam::TagModificationHelper::slotTagDelete(), Digikam::TagModificationHelper::slotTagEdit(), Digikam::TagModificationHelper::slotTagNew(), Digikam::TagModificationHelper::slotTagToFaceTag(), Digikam::TagEditDlg::TagEditDlg(), Digikam::TagFolderView::TagFolderView(), Digikam::TagList::TagList(), Digikam::TagModel::TagModel(), Digikam::TagPropertiesFilterModel::TagPropertiesFilterModel(), Digikam::TagsActionMngr::TagsActionMngr(), Digikam::ThumbsGenerator::ThumbsGenerator(), Digikam::TimelineSideBarWidget::TimelineSideBarWidget(), Digikam::AlbumPointer< T >::~AlbumPointer(), and Digikam::DigikamApp::~DigikamApp().
bool Digikam::AlbumManager::isMovingAlbum | ( | Album * | album | ) | const |
Returns if the given album is currently being moved, that is, if this album is in between signalAlbumAboutToBeMoved and signalAlbumMoved. In this case, you can preserve state of such an album because the object is guaranteed not to be deleted, even if signalAlbumAboutToBeDeleted is emitted.
References Digikam::AlbumManager::Private::currentlyMovingAlbum.
bool Digikam::AlbumManager::isShowingOnlyAvailableAlbums | ( | ) | const |
bool Digikam::AlbumManager::mergeTAlbum | ( | TAlbum * | album, |
TAlbum * | destAlbum, | ||
bool | dialog, | ||
QString & | errMsg | ||
) |
Merge a TAlbum to a TAlbum. This updates the image tags in the database
album | the Album which should be merged |
destAlbum | the Album to which album should be merged |
dialog | show dialog to ask the user if he wants to merge |
errMsg | this will contain the error message describing why the operation failed |
References Digikam::FaceTagsEditor::add(), Digikam::CoreDbOperationGroup::allowLift(), Digikam::AlbumManager::Private::askMergeMessageBoxResult, Digikam::FaceTagsEditor::databaseFaces(), Digikam::CoreDbAccess::db(), deleteTAlbum(), Digikam::Album::firstChild(), Digikam::CoreDB::getItemIDsInTag(), Digikam::Album::id(), Digikam::ProgressManager::instance(), Digikam::FaceTags::isSystemPersonTagId(), Digikam::FaceTagsIface::region(), Digikam::FaceTagsEditor::removeFace(), Digikam::ItemInfo::removeTag(), Digikam::AlbumManager::Private::rootTAlbum, Digikam::CoreDbOperationGroup::setMaximumTime(), Digikam::ItemInfo::setTag(), Digikam::FaceTagsIface::tagId(), and Digikam::Album::title().
Referenced by moveTAlbum().
Move a TAlbum to a new parent. This updates the tag parent ID in the database
album | the Album which should be moved |
newParent | the Parent Album to which album should be moved |
errMsg | this will contain the error message describing why the operation failed |
References Digikam::AlbumManager::Private::currentlyMovingAlbum, Digikam::CoreDbAccess::db(), Digikam::FaceTags::ensureIsPerson(), findTAlbum(), Digikam::Album::id(), Digikam::ProgressManager::instance(), Digikam::Album::isAncestorOf(), Digikam::Album::lastChild(), mergeTAlbum(), Digikam::Album::parent(), Digikam::FaceTags::personParentTag(), Digikam::Album::removeChild(), Digikam::AlbumManager::Private::rootTAlbum, Digikam::Album::setParent(), Digikam::CoreDB::setTagParentID(), signalAlbumAboutToBeAdded(), signalAlbumAboutToBeDeleted(), signalAlbumAboutToBeMoved(), signalAlbumAdded(), signalAlbumDeleted(), signalAlbumHasBeenDeleted(), signalAlbumMoved(), signalAlbumsUpdated(), Digikam::Album::TAG, Digikam::TAlbum::tagPath(), and Digikam::Album::title().
void Digikam::AlbumManager::prepareItemCounts | ( | ) |
Ensures that valid item counts for physical and tag albums are available
void Digikam::AlbumManager::refresh | ( | ) |
This is similar to startScan, except that it assumes you have run startScan at least once. It checks the database to see if any new albums have been added and updates them accordingly. Use this when a change in the filesystem is detected (but the album library path hasn't changed)
Referenced by startScan().
void Digikam::AlbumManager::removeFakeConnection | ( | ) |
References Digikam::AlbumManager::Private::dbFakeConnection.
Referenced by Digikam::DigikamApp::~DigikamApp().
void Digikam::AlbumManager::removeWatchedPAlbums | ( | const PAlbum *const | album | ) |
References Digikam::AlbumManager::Private::albumWatch, and Digikam::AlbumWatch::removeWatchedPAlbums().
Referenced by Digikam::DIO::del(), and Digikam::DIO::move().
bool Digikam::AlbumManager::renamePAlbum | ( | PAlbum * | album, |
const QString & | newName, | ||
QString & | errMsg | ||
) |
Renames a PAlbum. This is equivalent to actually renaming the corresponding folder on the disk.
album | the Album which should be renamed |
newName | the new name for the album |
errMsg | this will contain the error message describing why the operation failed |
References Digikam::PAlbum::albumPath(), Digikam::PAlbum::albumRootId(), Digikam::PAlbum::albumRootPath(), Digikam::AlbumManager::Private::albumWatch, Digikam::AlbumIterator::current(), Digikam::CoreDbAccess::db(), Digikam::Album::id(), Digikam::ScanController::instance(), Digikam::PAlbum::isAlbumRoot(), Digikam::AlbumWatch::removeWatchedPAlbums(), Digikam::CoreDB::renameAlbum(), Digikam::ScanController::resumeCollectionScan(), Digikam::AlbumManager::Private::rootPAlbum, Digikam::Album::setTitle(), signalAlbumNewPath(), signalAlbumRenamed(), Digikam::ScanController::suspendCollectionScan(), and Digikam::Album::title().
bool Digikam::AlbumManager::renameTAlbum | ( | TAlbum * | album, |
const QString & | name, | ||
QString & | errMsg | ||
) |
Renames a TAlbum. This updates the tag name in the database
album | the Album which should be renamed |
name | the new name for the album |
errMsg | this will contain the error message describing why the operation failed |
References Digikam::CoreDbAccess::db(), Digikam::Album::id(), Digikam::AlbumManager::Private::rootTAlbum, Digikam::CoreDB::setTagName(), Digikam::Album::setTitle(), and signalAlbumRenamed().
set current album to albums
.
Filter out the null pointers
Sort is needed to identify selection correctly, ex AlbumHistory
References Digikam::AlbumManager::Private::currentAlbums, and signalAlbumCurrentChanged().
Referenced by Digikam::SearchModificationHelper::createFuzzySearchFromDropped(), Digikam::SearchModificationHelper::createFuzzySearchFromImage(), Digikam::SearchModificationHelper::createFuzzySearchFromSketch(), Digikam::AlbumFolderViewSideBarWidget::setActive(), Digikam::FuzzySearchSideBarWidget::setActive(), Digikam::SearchSideBarWidget::setActive(), Digikam::TagViewSideBarWidget::setActive(), Digikam::TimelineSideBarWidget::setActive(), Digikam::GPSSearchView::setActive(), Digikam::DateFolderView::setActive(), Digikam::AbstractAlbumTreeView::setCurrentAlbums(), Digikam::SearchModificationHelper::slotCreateTimeLineSearch(), Digikam::ItemIconView::slotGotoAlbumAndItem(), and Digikam::AbstractAlbumTreeView::slotSelectionChanged().
bool Digikam::AlbumManager::setDatabase | ( | const DbEngineParameters & | params, |
bool | priority, | ||
const QString & | suggestedAlbumRoot = QString() |
||
) |
Initialize. Informs the user about failures. Returns true on success, false on failure. A return value of false during startup indicates termination of the program (user is informed)
References Digikam::ScanController::AbortImmediately, addFakeConnection(), Digikam::CollectionManager::addLocation(), Digikam::AlbumManager::Private::albumPathHash, Digikam::AlbumManager::Private::albumRootAlbumHash, Digikam::AlbumManager::Private::albumWatch, Digikam::AlbumManager::Private::allAlbumsIdHash, Digikam::ScanController::cancelAllAndSuspendCollectionScan(), Digikam::AlbumManager::Private::changed, Digikam::CollectionManager::changeType(), Digikam::DbEngineGuiErrorHandler::checkDatabaseConnection(), Digikam::CollectionManager::checkHardWiredLocations(), Digikam::SimilarityDbAccess::checkReadyForUse(), cleanUp(), Digikam::AlbumWatch::clear(), Digikam::Setup::CollectionsPage, Digikam::ScanController::ContinueWithoutDatabase, Digikam::AlbumManager::Private::currentAlbums, Digikam::ScanController::databaseInitialization(), Digikam::DbEngineParameters::databaseNameCore, Digikam::CoreDbAccess::DatabaseSlave, Digikam::CoreDbAccess::databaseWatch(), Digikam::CoreDbAccess::db(), Digikam::Setup::execSinglePage(), Digikam::ApplicationSettings::getDatabaseDirSetAtCmd(), Digikam::DatabaseServerError::getErrorText(), Digikam::DatabaseServerError::getErrorType(), Digikam::CoreDB::getSetting(), Digikam::AlbumManager::Private::hasPriorizedDbPath, Digikam::CoreDbAccess::initDbEngineErrorHandler(), Digikam::SimilarityDbAccess::initDbEngineErrorHandler(), Digikam::ThumbsDbAccess::initDbEngineErrorHandler(), Digikam::ThumbnailLoadThread::initializeThumbnailDatabase(), Digikam::CollectionManager::instance(), Digikam::DatabaseServerStarter::instance(), Digikam::ScanController::instance(), Digikam::ApplicationSettings::instance(), Digikam::DbEngineParameters::internalServer, Digikam::DbEngineParameters::internalServerMysqlAdminCmd, Digikam::DbEngineParameters::internalServerMysqlServCmd, Digikam::DbEngineParameters::internalServerPath(), Digikam::DbEngineParameters::isMySQL(), Digikam::DbEngineParameters::isSQLite(), Digikam::CollectionLocation::label(), Digikam::CoreDbAccess::lastError(), Digikam::CoreDbAccess::MainApplication, Digikam::CollectionManager::migrateToVolume(), Digikam::CollectionManager::migrationCandidates(), Digikam::DatabaseServerError::NoErrors, Digikam::CoreDbAccess::parameters(), Digikam::SimilarityDbAccess::parameters(), Digikam::ThumbsDbAccess::parameters(), Digikam::ScanController::resumeCollectionScan(), Digikam::AlbumManager::Private::rootDAlbum, Digikam::AlbumManager::Private::rootPAlbum, Digikam::AlbumManager::Private::rootSAlbum, Digikam::AlbumManager::Private::rootTAlbum, Digikam::AlbumWatch::setDbEngineParameters(), Digikam::CoreDbAccess::setParameters(), Digikam::SimilarityDbAccess::setParameters(), Digikam::CoreDB::setSetting(), Digikam::CollectionManager::setWatchDisabled(), signalAlbumCurrentChanged(), signalAlbumsCleared(), Digikam::DbEngineParameters::similarityParameters(), Digikam::DatabaseServerStarter::startServerManagerProcess(), Digikam::DatabaseServerStarter::stopServerManagerProcess(), Digikam::ScanController::Success, and Digikam::CollectionLocation::TypeVolumeRemovable.
Referenced by changeDatabase().
void Digikam::AlbumManager::setShowOnlyAvailableAlbums | ( | bool | onlyAvailable | ) |
|
signal |
Emitted when an album is about to be added to the given parent (0 if album is root) after the item given by prev (prev is 0 if parent has no children yet).
Referenced by Digikam::AbstractAlbumModel::AbstractAlbumModel(), createSAlbum(), moveTAlbum(), and startScan().
|
signal |
Emitted when the album is about to be deleted, but is still fully valid.
Referenced by Digikam::AbstractAlbumModel::AbstractAlbumModel(), deleteSAlbum(), and moveTAlbum().
|
signal |
Emittedd when an album is about to be moved. Signals for deleting and adding will be sent afterwards, but the album object is guaranteed not to be deleted until after signalAlbumMoved.
Referenced by moveTAlbum().
|
signal |
Emitted when the album has been added.
Referenced by Digikam::AbstractAlbumModel::AbstractAlbumModel(), createSAlbum(), moveTAlbum(), and startScan().
Referenced by clearCurrentAlbums(), setCurrentAlbums(), setDatabase(), and updateSAlbum().
|
signal |
Emitted when the album is deleted, but the object can still be accessed.
Referenced by deleteSAlbum(), and moveTAlbum().
|
signal |
Emitted when the album is deleted, the object can no longer be accessed. For identification purposes, the former album pointer is passed.
Referenced by Digikam::AbstractAlbumModel::AbstractAlbumModel(), deleteSAlbum(), and moveTAlbum().
|
signal |
Referenced by Digikam::AbstractAlbumModel::AbstractAlbumModel(), updatePAlbumIcon(), and updateTAlbumIcon().
|
signal |
Emitted when the album is moved to its new parent. After signalAlbumAboutToBeMoved, all four signals for first deleting and then adding will have been sent.
Referenced by moveTAlbum().
|
signal |
Referenced by renamePAlbum().
|
signal |
Referenced by Digikam::AbstractAlbumModel::AbstractAlbumModel(), renamePAlbum(), renameTAlbum(), and updateSAlbum().
|
signal |
Referenced by Digikam::AbstractAlbumModel::AbstractAlbumModel(), and setDatabase().
|
signal |
Referenced by createPAlbum(), createTAlbum(), deleteTAlbum(), and moveTAlbum().
|
signal |
Referenced by startScan().
|
signal |
|
signal |
|
signal |
|
signal |
Referenced by Digikam::TagModel::activateFaceTagModel(), and Digikam::TagFolderView::TagFolderView().
|
signal |
|
signal |
|
signal |
Emitted when a change is done on available Albums. Please note that affected albums may appear or disappear after this signal has been emitted.
Referenced by setShowOnlyAvailableAlbums().
|
signal |
|
signal |
|
signal |
void Digikam::AlbumManager::startScan | ( | ) |
starts scanning the libraryPath and listing the albums. If the libraryPath has not changed since the last scan, then nothing happens
References Digikam::AlbumManager::Private::allAlbumsIdHash, Digikam::AlbumManager::Private::changed, Digikam::CoreDbAccess::databaseWatch(), Digikam::Album::globalID(), Digikam::CollectionManager::instance(), Digikam::ItemAttributesWatch::instance(), Digikam::RedEye::location(), Digikam::CollectionLocation::LocationNull, refresh(), Digikam::AlbumManager::Private::rootDAlbum, Digikam::AlbumManager::Private::rootPAlbum, Digikam::AlbumManager::Private::rootSAlbum, Digikam::AlbumManager::Private::rootTAlbum, Digikam::AlbumManager::Private::scanDAlbumsTimer, signalAlbumAboutToBeAdded(), signalAlbumAdded(), and signalAllAlbumsLoaded().
Referenced by changeDatabase(), and Digikam::DigikamApp::DigikamApp().
QList< int > Digikam::AlbumManager::subTags | ( | int | tagId, |
bool | recursive = false |
||
) |
TODO
References Digikam::Album::childAlbumIds(), and findTAlbum().
QHash< int, QString > Digikam::AlbumManager::tagNames | ( | bool | includeInternal = false | ) | const |
References Digikam::AlbumIterator::current(), Digikam::Album::id(), Digikam::TAlbum::isInternalTag(), Digikam::AlbumManager::Private::rootTAlbum, and Digikam::Album::title().
QStringList Digikam::AlbumManager::tagNames | ( | const QList< int > & | tagIDs, |
bool | includeInternal = false |
||
) | const |
tagIDs | list of tag album IDs |
References findTAlbum(), Digikam::TAlbum::isInternalTag(), and Digikam::Album::title().
Referenced by Digikam::CommonKeys::getDbValue(), Digikam::DBInfoIface::itemInfo(), Digikam::ItemDelegate::paint(), and Digikam::ImportDelegate::paint().
QHash< int, QString > Digikam::AlbumManager::tagPaths | ( | bool | leadingSlash = true , |
bool | includeInternal = false |
||
) | const |
References Digikam::AlbumIterator::current(), Digikam::Album::id(), Digikam::TAlbum::isInternalTag(), Digikam::AlbumManager::Private::rootTAlbum, and Digikam::TAlbum::tagPath().
QStringList Digikam::AlbumManager::tagPaths | ( | const QList< int > & | tagIDs, |
bool | leadingSlash = true , |
||
bool | includeInternal = false |
||
) | const |
tagIDs | list of tag album IDs |
leadingSlash | if true return tags with a leading slash |
includeInternal | include internal tags in the returned list, or skip them |
References findTAlbum(), Digikam::TAlbum::isInternalTag(), and Digikam::TAlbum::tagPath().
Referenced by Digikam::TableViewColumns::ColumnDigikamProperties::data(), findOrCreateTAlbums(), Digikam::CommonKeys::getDbValue(), Digikam::ToolTipFiller::imageInfoTipContents(), and Digikam::DBInfoIface::itemInfo().
bool Digikam::AlbumManager::updatePAlbumIcon | ( | PAlbum * | album, |
qlonglong | iconID, | ||
QString & | errMsg | ||
) |
Update the icon for an album. The icon
is the name (and not full path) of the file in the album
album | the album for which icon should be changed |
iconID | the filename of the new icon |
errMsg | if the operation fails, this will contain the error message describing why the operation failed |
References Digikam::CoreDbAccess::db(), Digikam::Album::id(), Digikam::AlbumManager::Private::rootPAlbum, Digikam::CoreDB::setAlbumIcon(), and signalAlbumIconChanged().
Referenced by Digikam::AlbumDragDropHandler::dropEvent(), Digikam::ItemViewUtilities::setAsAlbumThumbnail(), and Digikam::AlbumModificationHelper::slotAlbumResetIcon().
bool Digikam::AlbumManager::updateSAlbum | ( | SAlbum * | album, |
const QString & | changedQuery, | ||
const QString & | changedName = QString() , |
||
DatabaseSearch::Type | type = DatabaseSearch::UndefinedType |
||
) |
Update the url for a SAlbum
album | the album to update |
changedQuery | the new query data of the album |
changedName | a new name, or null to keep the current name |
type | a new type, or UndefinedType to keep the current type |
References Digikam::AlbumManager::Private::currentAlbums, Digikam::CoreDbAccess::db(), Digikam::Album::id(), Digikam::SAlbum::searchType(), Digikam::Album::setTitle(), signalAlbumCurrentChanged(), signalAlbumRenamed(), Digikam::Album::title(), Digikam::DatabaseSearch::UndefinedType, and Digikam::CoreDB::updateSearch().
Referenced by createSAlbum(), and Digikam::SearchModificationHelper::slotSearchRename().
bool Digikam::AlbumManager::updateTAlbumIcon | ( | TAlbum * | album, |
const QString & | iconKDE, | ||
qlonglong | iconID, | ||
QString & | errMsg | ||
) |
Update the icon for a TAlbum.
album | the album for which icon should be changed |
iconKDE | a simple filename which can be loaded by KIconLoader |
iconID | id of the icon image file |
errMsg | this will contain the error message describing why the operation failed |
References Digikam::CoreDbAccess::db(), Digikam::Album::id(), Digikam::AlbumManager::Private::rootTAlbum, Digikam::CoreDB::setTagIcon(), and signalAlbumIconChanged().
Referenced by Digikam::TagDragDropHandler::dropEvent(), Digikam::TagFolderView::handleCustomContextMenuAction(), Digikam::ItemViewUtilities::setAsAlbumThumbnail(), Digikam::TagModificationHelper::slotMultipleFaceTagDel(), and Digikam::TagModificationHelper::slotTagToFaceTag().
|
friend |
|
friend |
|
friend |