27 #ifndef DIGIKAM_COLLECTION_SCANNER_H
28 #define DIGIKAM_COLLECTION_SCANNER_H
96 void setUpdateHashHint(
bool hint =
true);
103 void setSignalsEnabled(
bool on);
110 void setNeedFileCount(
bool on);
116 void setPerformFastScan(
bool on);
123 void setDeferredFileScanning(
bool defer);
124 QStringList deferredAlbumPaths()
const;
155 void finishCompleteScan(
const QStringList& albumPaths);
162 static bool databaseInitialScanDone();
170 void partialScan(
const QString& filePath);
175 void partialScan(
const QString& albumRoot,
const QString& album);
181 qlonglong scanFile(
const QString& filePath, FileScanMode mode = ModifiedScan);
188 qlonglong scanFile(
const QString& albumRoot,
189 const QString& album,
190 const QString& fileName,
191 FileScanMode mode = ModifiedScan);
196 void scanFile(
const ItemInfo& info, FileScanMode mode = ModifiedScan);
201 void scanForStaleAlbums(
const QList<int>& locationIdsToScan);
205 void scanFileNormal(
const QFileInfo& info,
const ItemScanInfo& scanInfo,
bool checkSidecar =
true);
206 void scanModifiedFile(
const QFileInfo& info,
const ItemScanInfo& scanInfo);
207 void scanFileUpdateHashReuseThumbnail(
const QFileInfo& fi,
const ItemScanInfo& scanInfo,
bool fileWasEdited);
208 void rescanFile(
const QFileInfo& info,
const ItemScanInfo& scanInfo);
209 void completeScanCleanupPart();
210 void completeHistoryScanning();
211 void finishHistoryScanning();
215 qlonglong scanFile(
const QFileInfo& fi,
int albumId, qlonglong
id,
FileScanMode mode);
216 qlonglong scanNewFile(
const QFileInfo& info,
int albumId);
217 qlonglong scanNewFileFullScan(
const QFileInfo& info,
int albumId);
235 void safelyRemoveAlbums(
const QList<int>& albumIds);
241 static void copyFileProperties(
const ItemInfo& source,
const ItemInfo& dest);
245 void markDatabaseAsScanned();
246 void mainEntryPoint(
bool complete);
249 void updateRemovedItemsTime();
250 void incrementDeleteRemovedCompleteScanCount();
251 void resetDeleteRemovedSettings();
252 bool checkDeleteRemoved();
253 void loadNameFilters();
254 int countItemsInFolder(
const QString& path);
Definition: collectionlocation.h:41
Definition: collectionscannerhints.h:56
Definition: collectionscannerobserver.h:41
Definition: collectionscanner_p.h:138
Definition: collectionscanner.h:50
void startScanningAlbumRoots()
void scannedFiles(int filesScanned)
void scanExistingFile(const QFileInfo &fi, qlonglong id)
void finishedScanningAlbumRoot(const QString &albumRoot)
void signalScannedNewImage(const QFileInfo &info)
void finishedCompleteScan()
void startScanningForStaleAlbums()
void totalFilesToScan(int count)
void startScanningAlbum(const QString &albumRoot, const QString &album)
FileScanMode
Definition: collectionscanner.h:56
@ ModifiedScan
Definition: collectionscanner.h:71
@ NormalScan
Definition: collectionscanner.h:63
void startScanningAlbumRoot(const QString &albumRoot)
void finishedScanningForStaleAlbums()
void finishedScanningAlbum(const QString &albumRoot, const QString &album, int filesScanned)
Definition: iteminfo.h:78
Definition: coredbalbuminfo.h:277
Category
Definition: coredbconstants.h:95
std::vector< T > location(const std::vector< T > &shape, unsigned long idx)
Definition: shapepredictor.h:109
Definition: datefolderview.cpp:43