File indexing completed on 2025-01-19 03:57:58
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2009-28-04 0007 * Description : first run assistant dialog 0008 * 0009 * SPDX-FileCopyrightText: 2009-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_DATABASE_PAGE_H 0016 #define DIGIKAM_DATABASE_PAGE_H 0017 0018 // Qt includes 0019 0020 #include <QString> 0021 #include <QUrl> 0022 0023 // Local includes 0024 0025 #include "dwizardpage.h" 0026 #include "dbengineparameters.h" 0027 0028 namespace Digikam 0029 { 0030 0031 class DatabasePage : public DWizardPage 0032 { 0033 Q_OBJECT 0034 0035 public: 0036 0037 explicit DatabasePage(QWizard* const dlg); 0038 ~DatabasePage() override; 0039 0040 bool checkSettings(); 0041 void saveSettings(); 0042 0043 void setDatabasePath(const QString& path); 0044 0045 DbEngineParameters getDbEngineParameters() const; 0046 0047 private: 0048 0049 bool checkLocalDatabase(QString& dbFolder); 0050 0051 private: 0052 0053 class Private; 0054 Private* const d; 0055 }; 0056 0057 } // namespace Digikam 0058 0059 #endif // DIGIKAM_DATABASE_PAGE_H