25 #ifndef DIGIKAM_ITEM_SCANNER_H
26 #define DIGIKAM_ITEM_SCANNER_H
102 static QString formatToString(
const QString& format);
106 static bool hasValidField(
const QVariantList& list);
122 void newFile(
int albumId);
130 void newFileFullScan(
int albumId);
149 qlonglong id()
const;
158 void copiedFrom(
int albumId, qlonglong srcId);
169 bool copyFromSource(qlonglong src);
170 void commitCopyImageAttributes();
172 void prepareAddImage(
int albumId);
173 bool commitAddImage();
206 static QDateTime creationDateFromFilesystem(
const QFileInfo& info);
210 void prepareUpdateImage();
211 void commitUpdateImage();
213 bool scanFromIdenticalFile();
214 void scanFile(ScanMode mode);
216 void scanItemInformation();
217 void commitItemInformation();
241 QString detectImageFormat()
const;
243 void scanImageMetadata();
244 void commitImageMetadata();
245 void scanItemPosition();
246 void commitItemPosition();
247 void scanItemComments();
248 void commitItemComments();
249 void scanItemCopyright();
250 void commitItemCopyright();
252 void commitIPTCCore();
258 bool checkRatingFromMetadata(
const QVariant& ratingFromMetadata)
const;
259 void checkCreationDateFromMetadata(QVariant& dateFromMetadata)
const;
280 void scanVideoInformation();
281 void scanVideoMetadata();
282 void commitVideoMetadata();
283 QString detectVideoFormat()
const;
284 QString detectAudioFormat()
const;
301 bool hasHistoryToResolve()
const;
309 static bool resolveImageHistory(qlonglong
id,
QList<qlonglong>* needTaggingIds =
nullptr);
310 static bool resolveImageHistory(qlonglong imageId,
const QString& historyXml,
QList<qlonglong>* needTaggingIds =
nullptr);
317 static void tagItemHistoryGraph(qlonglong
id);
344 void scanImageHistory();
345 void commitImageHistory();
346 void scanImageHistoryIfModified();
348 QString uniqueHash()
const;
357 void scanBalooInfo();
Definition: dimagehistory.h:49
Definition: historyimageid.h:42
Definition: coredbinfocontainers.h:36
Definition: iteminfo.h:78
Definition: coredbalbuminfo.h:277
Definition: itemscanner.h:44
ScanMode
Definition: itemscanner.h:49
@ ModifiedScan
Definition: itemscanner.h:51
@ NewScan
Definition: itemscanner.h:50
Category
Definition: coredbconstants.h:95
Definition: datefolderview.cpp:43