digiKam
setupdatabase.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 : 2009-11-14
7  * Description : database setup tab
8  *
9  * Copyright (C) 2009-2010 by Holger Foerster <Hamsi2k at freenet dot de>
10  * Copyright (C) 2012-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_SETUP_DATABASE_H
26 #define DIGIKAM_SETUP_DATABASE_H
27 
28 // Qt includes
29 
30 #include <QScrollArea>
31 
32 namespace Digikam
33 {
34 
35 class SetupDatabase : public QScrollArea
36 {
37  Q_OBJECT
38 
39 public:
40 
41  explicit SetupDatabase(QWidget* const parent = nullptr);
42  ~SetupDatabase() override;
43 
44  void applySettings();
45 
46 private:
47 
48  void readSettings();
49  void createUpdateBox();
50 
51 private Q_SLOTS:
52 
53  void upgradeUniqueHashes();
54  void showHashInformation();
55 
56 private:
57 
58  class Private;
59  Private* const d;
60 };
61 
62 } // namespace Digikam
63 
64 #endif // DIGIKAM_SETUP_DATABASE_H
Definition: setupdatabase.h:36
void applySettings()
Definition: setupdatabase.cpp:112
SetupDatabase(QWidget *const parent=nullptr)
Definition: setupdatabase.cpp:74
~SetupDatabase() override
Definition: setupdatabase.cpp:107
Definition: datefolderview.cpp:43