26 #ifndef DIGIKAM_SCAN_CONTROLLER_H
27 #define DIGIKAM_SCAN_CONTROLLER_H
47 class CollectionScanner;
81 void changed(
bool wasChanged);
99 void updateUniqueHash();
101 void allowToScanDeferredFiles();
107 ItemInfo scannedInfo(
const QString& filePath);
123 void setInitializationMessage();
124 void createProgressDialog();
126 bool continueQuery()
override;
143 Advice databaseInitialization();
154 void completeCollectionScan(
bool defer =
false);
155 void completeCollectionScanDeferFiles();
161 void completeCollectionScanInBackground(
bool defer,
bool fastScan =
true);
167 void scheduleCollectionScan(
const QString& path);
176 void scheduleCollectionScanRelaxed(
const QString& path);
186 void scheduleCollectionScanExternal(
const QString& path);
191 void beginFileMetadataWrite(
const ItemInfo& info);
201 void resumeCollectionScan();
210 void slotStartCompleteScan();
211 void slotStartScanningAlbum(
const QString& albumRoot,
const QString& album);
212 void slotStartScanningAlbumRoot(
const QString& albumRoot);
213 void slotStartScanningForStaleAlbums();
214 void slotStartScanningAlbumRoots();
222 void scanFileDirectly(
const QString& filePath);
223 void scanFileDirectlyNormal(
const ItemInfo& info);
224 void completeCollectionScanCore(
bool needTotalFiles,
bool defer,
bool fastScan);
245 void hintAtMoveOrCopyOfAlbum(
const PAlbum*
const album,
246 const PAlbum*
const dstAlbum,
247 const QString& newAlbumName = QString());
248 void hintAtMoveOrCopyOfAlbum(
const PAlbum*
const album,
249 const QString& dstPath,
250 const QString& newAlbumName = QString());
260 const PAlbum*
const dstAlbum,
261 const QStringList& itemNames);
262 void hintAtMoveOrCopyOfItem(qlonglong
id,
263 const PAlbum*
const dstAlbum,
264 const QString& itemName);
271 void hintAtModificationOfItem(qlonglong
id);
284 void slotTotalFilesToScan(
int count);
285 void slotScannedFiles(
int scanned);
286 void slotShowProgressDialog();
287 void slotTriggerShowProgressDialog();
288 void slotProgressFromInitialization(
const QString& message,
int numberOfSteps);
289 void slotErrorFromInitialization(
const QString& errorMessage);
293 void moreSchemaUpdateSteps(
int numberOfSteps)
override;
294 void schemaUpdateProgress(
const QString& message,
int numberOfSteps)
override;
295 void error(
const QString& errorMessage)
override;
299 const QString& relativeDstPath,
300 const QString& albumName);
304 const QString& relativeDstPath,
305 const QString& albumName);
327 void abortInitialization();
334 void cancelCompleteScan();
342 void cancelAllAndSuspendCollectionScan();
352 void suspendCollectionScan();
357 void finishFileMetadataWrite(
const ItemInfo& info,
bool changed);
370 void slotCancelPressed();
371 void slotRelaxedScanning();
375 void finishedSchemaUpdate(
UpdateResult result)
override;
Definition: collectionscannerhints.h:155
Definition: collectionscanner.h:50
Definition: collectionscannerobserver.h:57
UpdateResult
Definition: collectionscannerobserver.h:61
Definition: iteminfolist.h:47
Definition: iteminfo.h:78
Definition: scancontroller_p.h:179
Definition: scancontroller_p.h:111
Definition: scancontroller.h:52
void incrementProgressDialog(int)
void scanningProgress(float progress)
void progressFromInitialization(const QString &, int)
Advice
Definition: scancontroller.h:58
@ Success
Definition: scancontroller.h:59
@ ContinueWithoutDatabase
Definition: scancontroller.h:60
void collectionScanStarted(const QString &message)
void totalFilesToScan(int)
void databaseInitialized(bool success)
void collectionScanFinished()
void completeScanCanceled()
void newImages(const ItemInfoList &)
void partialScanDone(const QString &path)
void errorFromInitialization(const QString &)
void triggerShowProgressDialog()
Definition: datefolderview.cpp:43