File indexing completed on 2025-01-05 03:58:23

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2016-09-29
0007  * Description : migration page from digikam4
0008  *
0009  * SPDX-FileCopyrightText: 2016 by Antonio Larrosa <alarrosa at suse dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_MIGRATE_FROM_DIGIKAM4_PAGE_H
0016 #define DIGIKAM_MIGRATE_FROM_DIGIKAM4_PAGE_H
0017 
0018 // Local includes
0019 
0020 #include "dwizardpage.h"
0021 
0022 namespace Digikam
0023 {
0024 
0025 class MigrateFromDigikam4Page : public DWizardPage
0026 {
0027     Q_OBJECT
0028 
0029 public:
0030 
0031     explicit MigrateFromDigikam4Page(QWizard* const dlg);
0032     ~MigrateFromDigikam4Page()      override;
0033 
0034     /**
0035      * Returns true if the user selected to do a migration
0036      */
0037     bool isMigrationChecked() const;
0038     void doMigration();
0039     int  nextId()             const override;
0040 
0041     /**
0042      * Return true if migration data are available on the system
0043      */
0044     static bool checkForMigration();
0045 
0046 public Q_SLOTS:
0047 
0048     void migrationToggled(bool b);
0049 
0050 private:
0051 
0052     class Private;
0053     Private* const d;
0054 };
0055 
0056 } // namespace Digikam
0057 
0058 #endif // DIGIKAM_MIGRATE_FROM_DIGIKAM4_PAGE_H