digiKam
facedbbackend.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 : 2007-06-07
7  * Description : Face database backend
8  *
9  * Copyright (C) 2007-2010 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
10  * Copyright (C) 2010-2022 by Gilles Caulier <caulier dot gilles at gmail 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_FACE_DB_BACKEND_H
26 #define DIGIKAM_FACE_DB_BACKEND_H
27 
28 // Local includes
29 
30 #include "digikam_export.h"
31 #include "dbenginebackend.h"
32 
33 namespace Digikam
34 {
35 
36 class FaceDbSchemaUpdater;
37 class FaceDbBackendPrivate;
38 
39 class DIGIKAM_GUI_EXPORT FaceDbBackend : public BdEngineBackend
40 {
41  Q_OBJECT
42 
43 public:
44 
45  explicit FaceDbBackend(DbEngineLocking* const locking,
46  const QString& backendName = QLatin1String("faceDatabase-"));
47  ~FaceDbBackend() override;
48 
54  bool initSchema(FaceDbSchemaUpdater* const updater);
55 
56 private:
57 
58  // Disable
59  explicit FaceDbBackend(QObject*) = delete;
60 
61  Q_DECLARE_PRIVATE(BdEngineBackend)
62 };
63 
64 } // namespace Digikam
65 
66 #endif // DIGIKAM_FACE_DB_BACKEND_H
Definition: dbenginebackend.h:66
Definition: dbenginebackend.h:52
Definition: facedbbackend.h:40
Definition: facedbschemaupdater.h:39
Definition: datefolderview.cpp:43