24 #ifndef DIGIKAM_COLLECTION_SCANNER_HINTS_H
25 #define DIGIKAM_COLLECTION_SCANNER_HINTS_H
27 #include "digikam_config.h"
33 #include <QStringList>
36 # include <QDBusArgument>
47 class AlbumCopyMoveHint;
48 class CollectionLocation;
49 class CollectionScannerObserver;
51 class ItemCopyMoveHint;
53 class ItemMetadataAdjustmentHint;
78 namespace CollectionScannerHints
81 class DIGIKAM_DATABASE_EXPORT
Album
86 Album(
int albumRootId,
int albumId);
105 DstPath(
int albumRootId,
const QString& relativePath);
119 class DIGIKAM_DATABASE_EXPORT
Item
124 explicit Item(qlonglong
id);
165 int dstAlbumRootId,
const QString& dstRelativePath);
167 int albumRootIdSrc()
const;
168 int albumIdSrc()
const;
169 bool isSrcAlbum(
int albumRootId,
int albumId)
const;
176 int albumRootIdDst()
const;
177 QString relativePathDst()
const;
178 bool isDstAlbum(
int albumRootId,
const QString& relativePath)
const;
189 return (src == m_src);
194 return (dst == m_dst);
236 const QStringList& dstNames);
239 bool isSrcId(qlonglong
id)
const;
240 int albumRootIdDst()
const;
241 int albumIdDst()
const;
242 bool isDstAlbum(
int albumRootId,
int albumId)
const;
249 QStringList dstNames()
const;
250 QString dstName(qlonglong
id)
const;
254 return (dst == m_dst);
297 ChangeType type = ItemModified);
300 bool isId(qlonglong
id)
const;
301 ChangeType changeType()
const;
305 return (changeType() == ItemModified);
310 return (changeType() == ItemRescan);
343 MetadataEditingAborted
350 AdjustmentStatus status,
351 const QDateTime& modificationDateOnDisk,
354 qlonglong id()
const;
355 AdjustmentStatus adjustmentStatus()
const;
356 QDateTime modificationDate()
const;
357 qlonglong fileSize()
const;
361 return (adjustmentStatus() == AboutToEditMetadata);
366 return (adjustmentStatus() == MetadataEditingFinished);
371 return (adjustmentStatus() == MetadataEditingAborted);
Definition: collectionscannerhints.h:155
CollectionScannerHints::Album src() const
Definition: collectionscannerhints.h:171
CollectionScannerHints::Album m_src
Definition: collectionscannerhints.h:216
CollectionScannerHints::DstPath dst() const
Definition: collectionscannerhints.h:180
uint qHash() const
Definition: collectionscannerhints.cpp:163
bool operator==(const CollectionScannerHints::DstPath &dst) const
Definition: collectionscannerhints.h:192
CollectionScannerHints::DstPath m_dst
Definition: collectionscannerhints.h:217
bool operator==(const CollectionScannerHints::Album &src) const
Definition: collectionscannerhints.h:187
Definition: collectionscannerhints.h:56
virtual void recordHints(const QList< ItemCopyMoveHint > &hints)=0
virtual ~CollectionScannerHintContainer()=default
CollectionScannerHintContainer()=default
Note: All methods of this class must be thread-safe.
virtual void recordHints(const QList< AlbumCopyMoveHint > &hints)=0
virtual void recordHint(const ItemMetadataAdjustmentHint &hints)=0
virtual void recordHints(const QList< ItemChangeHint > &hints)=0
Definition: collectionscannerhints.h:82
uint qHash() const
Definition: collectionscannerhints.cpp:58
int albumId
Definition: collectionscannerhints.h:95
int albumRootId
Definition: collectionscannerhints.h:94
Definition: collectionscannerhints.h:101
int albumRootId
Definition: collectionscannerhints.h:113
QString relativePath
Definition: collectionscannerhints.h:114
uint qHash() const
Definition: collectionscannerhints.cpp:86
Definition: collectionscannerhints.h:120
uint qHash() const
Definition: collectionscannerhints.cpp:111
qlonglong id
Definition: collectionscannerhints.h:132
Definition: collectionscannerhints.h:279
ChangeType m_type
Definition: collectionscannerhints.h:323
QList< qlonglong > m_ids
Definition: collectionscannerhints.h:322
bool needsRescan() const
Definition: collectionscannerhints.h:308
bool isModified() const
Definition: collectionscannerhints.h:303
ChangeType
Definition: collectionscannerhints.h:288
@ ItemModified
treat as if modification date changed
Definition: collectionscannerhints.h:289
Definition: collectionscannerhints.h:223
QStringList m_dstNames
Definition: collectionscannerhints.h:273
CollectionScannerHints::Album dst() const
Definition: collectionscannerhints.h:244
QList< qlonglong > m_srcIds
Definition: collectionscannerhints.h:271
bool operator==(const CollectionScannerHints::Album &dst) const
Definition: collectionscannerhints.h:252
CollectionScannerHints::Album m_dst
Definition: collectionscannerhints.h:272
Definition: piwigotalker.h:48
#define DECLARE_METATYPE_FOR_DBUS(x)
Definition: dbenginedbusutils.h:29
uint qHash(const Album &src)
Definition: collectionscannerhints.h:135
@ Album
Definition: coredbfields.h:58
Definition: datefolderview.cpp:43
QDebug operator<<(QDebug dbg, const DbEngineParameters &p)
Definition: dbengineparameters.cpp:863
QDataStream & operator>>(QDataStream &ds, PhotoInfoContainer &info)
Definition: photoinfocontainer.cpp:117
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition: searchtextbar.cpp:49
uint qHash(const PAlbumPath &id)
Definition: albummanager_p.h:141