digiKam
duplicatesprogressobserver.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2015-06-10
7  * Description : Progress observer for duplicate scanning
8  *
9  * Copyright (C) 2015 by Mohamed_Anwer <m_dot_anwer at gmx dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_DUPLICATES_PROGRESS_OBSERVER_H
25 #define DIGIKAM_DUPLICATES_PROGRESS_OBSERVER_H
26 
27 #include "haariface.h"
28 #include "dbjob.h"
29 #include "digikam_export.h"
30 
31 namespace Digikam
32 {
33 
34 class SearchesJob;
35 
36 class DIGIKAM_DATABASE_EXPORT DuplicatesProgressObserver : public HaarProgressObserver
37 {
38 
39 public:
40 
41  explicit DuplicatesProgressObserver(SearchesJob* const thread);
42  ~DuplicatesProgressObserver() override;
43 
44  void imageProcessed() override;
45  bool isCanceled() override;
46 
47 private:
48 
49  SearchesJob* m_job;
50 
51 private:
52 
53  Q_DISABLE_COPY(DuplicatesProgressObserver)
54 };
55 
56 } // namespace Digikam
57 
58 #endif // DIGIKAM_DUPLICATES_PROGRESS_OBSERVER_H
Definition: duplicatesprogressobserver.h:37
Definition: haariface.h:52
Definition: dbjob.h:180
Definition: datefolderview.cpp:43