File indexing completed on 2024-12-22 04:45:57

0001 /*
0002    SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 #include "importexportdata/importexportutils.h"
0009 #include "libruqolawidgets_private_export.h"
0010 #include <QWizardPage>
0011 class ExportDataSelectAccountListWidget;
0012 class LIBRUQOLAWIDGETS_TESTS_EXPORT ExportDataSelectAccountPage : public QWizardPage
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit ExportDataSelectAccountPage(QWidget *parent = nullptr);
0017     ~ExportDataSelectAccountPage() override;
0018 
0019     void setAccountList(const QVector<ImportExportUtils::AccountImportExportInfo> &lst);
0020 
0021     [[nodiscard]] QVector<ImportExportUtils::AccountImportExportInfo> selectedAccounts() const;
0022 
0023     [[nodiscard]] bool validatePage() override;
0024 
0025     [[nodiscard]] bool isComplete() const override;
0026 
0027 private:
0028     ExportDataSelectAccountListWidget *const mExportDataSelectAccountListWidget;
0029 };