digiKam
duplicatesfinder.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 : 2012-01-20
7  * Description : Duplicates items finder.
8  *
9  * Copyright (C) 2012-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2015 by Mohamed_Anwer <m_dot_anwer at gmx dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_DUPLICATES_FINDER_H
26 #define DIGIKAM_DUPLICATES_FINDER_H
27 
28 // Qt includes
29 
30 #include <QString>
31 #include <QObject>
32 
33 // Local includes
34 
35 #include "album.h"
36 #include "maintenancetool.h"
37 
38 namespace Digikam
39 {
40 
42 {
43  Q_OBJECT
44 
45 public:
46 
49  DuplicatesFinder(const AlbumList& albums,
50  const AlbumList& tags,
51  int albumTagRelation = 0,
52  int minSimilarity = 90,
53  int maxSimilarity = 100,
54  int searchResultRestriction = 0,
55  ProgressItem* const parent = nullptr);
56 
57  ~DuplicatesFinder() override;
58 
59 private Q_SLOTS:
60 
61  void slotStart() override;
62  void slotDone() override;
63  void slotCancel() override;
64  void slotDuplicatesProgress(int percentage);
65 
66 private:
67 
68  class Private;
69  Private* const d;
70 };
71 
72 } // namespace Digikam
73 
74 #endif // DIGIKAM_DUPLICATES_FINDER_H
Definition: duplicatesfinder.h:42
~DuplicatesFinder() override
Definition: duplicatesfinder.cpp:96
DuplicatesFinder(const AlbumList &albums, const AlbumList &tags, int albumTagRelation=0, int minSimilarity=90, int maxSimilarity=100, int searchResultRestriction=0, ProgressItem *const parent=nullptr)
Definition: duplicatesfinder.cpp:75
Definition: maintenancetool.h:41
Definition: progressmanager.h:45
ProgressItem * parent() const
Definition: progressmanager.cpp:299
Definition: datefolderview.cpp:43