digiKam
facepreviewloader.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_FACE_PREVIEW_LOADER_H
25 #define DIGIKAM_FACE_PREVIEW_LOADER_H
26 
27 // Local includes
28 
29 #include "facepipeline_p.h"
30 
31 namespace Digikam
32 {
33 
34 class Q_DECL_HIDDEN FacePreviewLoader : public PreviewLoadThread
35 {
36  Q_OBJECT
37 
38 public:
39 
40  explicit FacePreviewLoader(FacePipeline::Private* const dd);
41  ~FacePreviewLoader() override;
42 
43  void cancel();
44  bool sentOutLimitReached();
45  void checkRestart();
46 
47 public Q_SLOTS:
48 
49  void process(FacePipelineExtendedPackage::Ptr package);
50  void slotImageLoaded(const LoadingDescription& loadingDescription, const DImg& img);
51 
52 Q_SIGNALS:
53 
55 
56 protected:
57 
61 
62 private:
63 
64  // Disable
65  FacePreviewLoader(const FacePreviewLoader&) = delete;
66  FacePreviewLoader& operator=(const FacePreviewLoader&) = delete;
67 };
68 
69 } // namespace Digikam
70 
71 #endif // DIGIKAM_FACE_PREVIEW_LOADER_H
Definition: dimg.h:62
QExplicitlySharedDataPointer< FacePipelineExtendedPackage > Ptr
Definition: facepipelinepackage.h:168
Definition: facepipeline_p.h:50
Definition: facepreviewloader.h:35
FacePipeline::Private *const d
Definition: facepreviewloader.h:60
void processed(FacePipelineExtendedPackage::Ptr package)
int maximumSentOutPackages
Definition: facepreviewloader.h:59
PackageLoadingDescriptionList scheduledPackages
Definition: facepreviewloader.h:58
Definition: loadingdescription.h:45
Definition: facepipelinepackage.h:174
Definition: previewloadthread.h:36
Definition: datefolderview.cpp:43