digiKam
similaritydbbackend.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 : 2017-06-27
7  * Description : Similarity database backend
8  *
9  * Copyright (C) 2007-2009 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
10  * Copyright (C) 2010-2017 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  * Copyright (C) 2017 by Swati Lodha <swatilodha27 at gmail dot com>
12  *
13  * This program is free software; you can redistribute it
14  * and/or modify it under the terms of the GNU General
15  * Public License as published by the Free Software Foundation;
16  * either version 2, or (at your option)
17  * any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * ============================================================ */
25 
26 #ifndef DIGIKAM_SIMILARITY_DB_BACKEND_H
27 #define DIGIKAM_SIMILARITY_DB_BACKEND_H
28 
29 // Local includes
30 
31 #include "digikam_export.h"
32 #include "dbenginebackend.h"
33 
34 namespace Digikam
35 {
36 
37 class SimilarityDbSchemaUpdater;
38 
39 class DIGIKAM_DATABASE_EXPORT SimilarityDbBackend : public BdEngineBackend
40 {
41  Q_OBJECT
42 
43 public:
44 
45  explicit SimilarityDbBackend(DbEngineLocking* const locking,
46  const QString& backendName = QLatin1String("similarityDatabase-"));
47  ~SimilarityDbBackend() override;
48 
54  bool initSchema(SimilarityDbSchemaUpdater* const updater);
55 
56 private:
57 
58  // Disable
59  explicit SimilarityDbBackend(QObject*) = delete;
60 
61  Q_DECLARE_PRIVATE(BdEngineBackend)
62 };
63 
64 } // namespace Digikam
65 
66 #endif // DIGIKAM_SIMILARITY_DB_BACKEND_H
Definition: dbenginebackend.h:66
Definition: dbenginebackend.h:52
Definition: similaritydbbackend.h:40
Definition: similaritydbschemaupdater.h:37
Definition: datefolderview.cpp:43