File indexing completed on 2024-05-12 05:04:25

0001 // SPDX-FileCopyrightText: 2024 Joshua Goins <josh@redstrate.com>
0002 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0003 
0004 #pragma once
0005 
0006 #include <QtQml>
0007 
0008 class SetupStep;
0009 
0010 class InitialSetupFlow : public QObject
0011 {
0012     Q_OBJECT
0013     QML_ELEMENT
0014     QML_SINGLETON
0015 
0016 public:
0017     explicit InitialSetupFlow(QObject *parent = nullptr);
0018     ~InitialSetupFlow() override;
0019 
0020     Q_INVOKABLE bool isSetupNeeded() const;
0021     Q_INVOKABLE QString getNextStep();
0022 
0023 private:
0024     QList<SetupStep *> m_steps;
0025     int m_currentStep = 0;
0026 };