26 #ifndef DIGIKAM_ALBUM_MANAGER_H
27 #define DIGIKAM_ALBUM_MANAGER_H
51 class CollectionLocation;
54 class SearchChangeset;
55 class CollectionImageChangeset;
56 class ImageTagChangeset;
108 void prepareItemCounts();
110 bool isShowingOnlyAvailableAlbums()
const;
111 void setShowOnlyAvailableAlbums(
bool onlyAvailable);
134 const QString& suggestedAlbumRoot = QString());
148 void addFakeConnection();
149 void removeFakeConnection();
154 static void checkDatabaseDirsAfterFirstRun(
const QString& dbPath,
const QString& albumPath);
158 static bool moveToBackup(
const QFileInfo& info);
159 static bool copyToNewLocation(
const QFileInfo& oldFile,
160 const QFileInfo& newFile,
161 const QString& otherMessage = QString());
214 void clearCurrentAlbums();
220 Album* findAlbum(
int gid)
const;
231 QHash<int, QString> albumTitles()
const;
240 bool isMovingAlbum(
Album* album)
const;
249 qlonglong getItemFromAlbum(
Album*
const album,
const QString& fileName);
253 bool hasDirectChildAlbumWithTitle(
Album* parent,
const QString& title);
254 void notifyAlbumDeletion(
Album* album);
255 void updateAlbumPathHash();
256 void addGuardedPointer(
Album* a,
Album** pointer);
257 void removeGuardedPointer(
Album* a,
Album** pointer);
259 void invalidateGuardedPointers(
Album* album);
263 void slotAlbumsJobResult();
264 void slotAlbumsJobData(
const QMap<int, int>& albumsStatMap);
266 void getAlbumItemsCount();
345 DAlbum* findDAlbum(
int id)
const;
353 QMap<YearMonth, int> getDAlbumsCount()
const;
357 void slotDatesJobResult();
358 void slotDatesJobData(
const QHash<QDateTime, int>& datesStatMap);
363 void scanDAlbumsScheduled();
392 PAlbum* currentPAlbum()
const;
401 PAlbum* findPAlbum(
const QUrl& url)
const;
407 PAlbum* findPAlbum(
int id)
const;
415 QMap<int, int> getPAlbumsCount()
const;
417 void removeWatchedPAlbums(
const PAlbum*
const album);
436 PAlbum* createPAlbum(
PAlbum* parent,
const QString& name,
437 const QString& caption,
const QDate& date,
438 const QString& category,
445 PAlbum* createPAlbum(
const QString& albumRootPath,
const QString& name,
446 const QString& caption,
const QDate& date,
447 const QString& category,
457 const QString& caption,
const QDate& date,
458 const QString& category,
470 bool renamePAlbum(
PAlbum* album,
const QString& newName,
482 bool updatePAlbumIcon(
PAlbum* album, qlonglong iconID, QString& errMsg);
486 bool showDatabaseSetupPage(
const QString& error,
bool priority,
const QString& suggestedAlbumRoot);
488 void removePAlbum(
PAlbum* album);
498 void updateChangedPAlbums();
530 TAlbum* findTAlbum(
int id)
const;
536 TAlbum* findTAlbum(
const QString& tagPath)
const;
544 QMap<int, int> getTAlbumsCount()
const;
559 TAlbum* createTAlbum(
TAlbum* parent,
const QString& name,
560 const QString& iconkde, QString& errMsg);
568 AlbumList findOrCreateTAlbums(
const QStringList& tagPaths);
581 bool deleteTAlbum(
TAlbum* album, QString& errMsg,
bool askUser =
true);
592 bool renameTAlbum(
TAlbum* album,
const QString& name, QString& errMsg);
603 bool moveTAlbum(
TAlbum* album,
TAlbum* newParent, QString& errMsg);
616 bool mergeTAlbum(
TAlbum* album,
TAlbum* destAlbum,
bool dialog, QString& errMsg);
630 bool updateTAlbumIcon(
TAlbum* album,
const QString& iconKDE,
631 qlonglong iconID, QString& errMsg);
638 AlbumList getRecentlyAssignedTags(
bool includeInternal =
false)
const;
646 QStringList tagPaths(
const QList<int>& tagIDs,
bool leadingSlash=
true,
bool includeInternal =
false)
const;
652 QStringList tagNames(
const QList<int>& tagIDs,
bool includeInternal =
false)
const;
657 QHash<int, QString> tagPaths(
bool leadingSlash=
true,
bool includeInternal =
false)
const;
662 QHash<int, QString> tagNames(
bool includeInternal =
false)
const;
668 AlbumList findTagsWithProperty(
const QString& property);
669 AlbumList findTagsWithProperty(
const QString& property,
const QString&
value);
674 QList<int> subTags(
int tagId,
bool recursive =
false);
686 void askUserForWriteChangedTAlbumToFiles(
TAlbum*
const album);
690 void removeTAlbum(
TAlbum* album);
701 void slotTagsJobResult();
702 void slotTagsJobData(
const QMap<int, int>& tagsStatMap);
706 void getTagItemsCount();
707 void tagItemsCount();
735 SAlbum* findSAlbum(
int id)
const;
741 SAlbum* findSAlbum(
const QString& name)
const;
761 SAlbum* createSAlbum(
const QString& name,
763 const QString& query);
773 bool updateSAlbum(
SAlbum* album,
774 const QString& changedQuery,
775 const QString& changedName = QString(),
785 bool deleteSAlbum(
SAlbum* album);
822 QMap<int, int> getFaceCount()
const;
830 QMap<int, int> getUnconfirmedFaceCount()
const;
834 void slotPeopleJobResult();
835 void slotPeopleJobData(
const QMap<QString,
836 QMap<int, int> >& facesStatMap);
837 void personItemsCount();
842 const QMap<int, int>& uFaceCount,
Definition: coredbchangesets.h:262
Definition: albummanager_p.h:227
Definition: albummanager_p.h:149
Definition: albummanager.h:73
void signalAllAlbumsLoaded()
void signalAlbumAboutToBeMoved(Album *album)
void signalAlbumHasBeenDeleted(quintptr)
void signalTAlbumsDirty(const QMap< int, int > &)
void signalAlbumAboutToBeAdded(Album *album, Album *parent, Album *prev)
void signalUpdateDuplicatesAlbums(const QList< SAlbum * > &modifiedAlbums, const QList< qlonglong > &deletedImages)
void signalAlbumDeleted(Album *album)
void signalAlbumsCleared()
void signalPAlbumsDirty(const QMap< int, int > &)
void signalDAlbumsDirty(const QMap< YearMonth, int > &)
void signalDatesHashDirty(const QHash< QDateTime, int > &)
void signalFaceCountsDirty(const QMap< int, int > &faceCount, const QMap< int, int > &uFaceCount, const QList< int > &toUpdatedFaces)
void signalShowOnlyAvailableAlbumsChanged(bool showsOnlyAvailableAlbums)
void signalAlbumCurrentChanged(const QList< Album * > &albums)
void signalTagPropertiesChanged(TAlbum *album)
void signalAlbumMoved(Album *album)
void signalAlbumIconChanged(Album *album)
void signalAllDAlbumsLoaded()
void signalAlbumRenamed(Album *album)
void signalAlbumNewPath(Album *album)
void signalAlbumsUpdated(int type)
void signalAlbumAdded(Album *album)
void signalSearchUpdated(SAlbum *album)
void signalAlbumAboutToBeDeleted(Album *album)
Definition: albumpointer.h:48
Abstract base class for all album types.
Definition: album.h:67
Type
Definition: album.h:71
Definition: coredbchangesets.h:152
Definition: collectionlocation.h:41
Definition: dbengineparameters.h:49
Definition: coredbchangesets.h:80
Definition: coredbchangesets.h:372
Definition: coredbchangesets.h:298
qulonglong value
Definition: itemviewutilities.cpp:592
Type
Definition: coredbconstants.h:60
@ UndefinedType
Definition: coredbconstants.h:61
std::vector< T > location(const std::vector< T > &shape, unsigned long idx)
Definition: shapepredictor.h:109
Definition: datefolderview.cpp:43