digiKam
databasepage.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-28-04
7  * Description : first run assistant dialog
8  *
9  * Copyright (C) 2009-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
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_DATABASE_PAGE_H
25 #define DIGIKAM_DATABASE_PAGE_H
26 
27 // Qt includes
28 
29 #include <QString>
30 #include <QUrl>
31 
32 // Local includes
33 
34 #include "dwizardpage.h"
35 #include "dbengineparameters.h"
36 
37 namespace Digikam
38 {
39 
40 class DatabasePage : public DWizardPage
41 {
42  Q_OBJECT
43 
44 public:
45 
46  explicit DatabasePage(QWizard* const dlg);
47  ~DatabasePage() override;
48 
49  bool checkSettings();
50  void saveSettings();
51 
52  void setDatabasePath(const QString& path);
53 
55 
56 private:
57 
58  bool checkLocalDatabase(QString& dbFolder);
59 
60 private:
61 
62  class Private;
63  Private* const d;
64 };
65 
66 } // namespace Digikam
67 
68 #endif // DIGIKAM_DATABASE_PAGE_H
Definition: dwizardpage.h:42
Definition: databasepage.h:41
bool checkSettings()
Definition: databasepage.cpp:94
void setDatabasePath(const QString &path)
Definition: databasepage.cpp:76
DbEngineParameters getDbEngineParameters() const
Definition: databasepage.cpp:81
DatabasePage(QWizard *const dlg)
Definition: databasepage.cpp:61
void saveSettings()
Definition: databasepage.cpp:86
~DatabasePage() override
Definition: databasepage.cpp:71
Definition: dbengineparameters.h:49
Definition: datefolderview.cpp:43