digiKam
scanstatefilter.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 : 2010-09-03
7  * Description : Integrated, multithread face detection / recognition
8  *
9  * Copyright (C) 2010-2011 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
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_SCAN_STATE_FILTER_H
25 #define DIGIKAM_SCAN_STATE_FILTER_H
26 
27 // Local includes
28 
29 #include "facepipeline_p.h"
30 
31 namespace Digikam
32 {
33 
34 class Q_DECL_HIDDEN ScanStateFilter : public DynamicThread
35 {
36  Q_OBJECT
37 
38 public:
39 
41  ~ScanStateFilter() override;
42 
43  void process(const QList<ItemInfo>& infos);
44  void process(const ItemInfo& info);
45 
46  FacePipelineExtendedPackage::Ptr filter(const ItemInfo& info);
47 
48 public:
49 
52  FacePipelineFaceTagsIface::Roles tasks;
53 
54 protected Q_SLOTS:
55 
56  void dispatch();
57 
58 Q_SIGNALS:
59 
61 
62 protected:
63 
64  void run() override;
65 
66 protected:
67 
71 
72 private:
73 
74  // Disable
75  ScanStateFilter(const ScanStateFilter&) = delete;
76  ScanStateFilter& operator=(const ScanStateFilter&) = delete;
77 };
78 
79 } // namespace Digikam
80 
81 #endif // DIGIKAM_SCAN_STATE_FILTER_H
Definition: dynamicthread.h:43
QExplicitlySharedDataPointer< FacePipelineExtendedPackage > Ptr
Definition: facepipelinepackage.h:168
Definition: facepipeline_p.h:50
FilterMode
Definition: facepipeline.h:42
Definition: iteminfo.h:78
Definition: scanstatefilter.h:35
FacePipeline::FilterMode mode
Definition: scanstatefilter.h:51
FacePipeline::Private *const d
Definition: scanstatefilter.h:50
QList< FacePipelineExtendedPackage::Ptr > toSend
Definition: scanstatefilter.h:69
QList< ItemInfo > toBeSkipped
Definition: scanstatefilter.h:70
QList< ItemInfo > toFilter
Definition: scanstatefilter.h:68
FacePipelineFaceTagsIface::Roles tasks
Definition: scanstatefilter.h:52
Definition: datefolderview.cpp:43