digiKam
thumbsdbbackend.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-04-15
7  * Description : Thumbnails database backend
8  *
9  * Copyright (C) 2007-2009 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_THUMBS_DB_BACKEND_H
26 #define DIGIKAM_THUMBS_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 ThumbsDbSchemaUpdater;
37 
38 class DIGIKAM_EXPORT ThumbsDbBackend : public BdEngineBackend
39 {
40  Q_OBJECT
41 
42 public:
43 
44  explicit ThumbsDbBackend(DbEngineLocking* const locking,
45  const QString& backendName = QLatin1String("thumbnailDatabase-"));
46  ~ThumbsDbBackend() override;
47 
53  bool initSchema(ThumbsDbSchemaUpdater* const updater);
54 
55 private:
56 
57  // Disabled
58  explicit ThumbsDbBackend(QObject*) = delete;
59 
60  Q_DECLARE_PRIVATE(BdEngineBackend)
61 };
62 
63 } // namespace Digikam
64 
65 #endif // DIGIKAM_THUMBS_DB_BACKEND_H
Definition: dbenginebackend.h:66
Definition: dbenginebackend.h:52
Definition: thumbsdbbackend.h:39
Definition: thumbsdbschemaupdater.h:39
Definition: datefolderview.cpp:43