feather/src/wizard/PageWalletSeed.h
2024-10-01 22:17:54 +02:00

53 lines
1 KiB
C++

// SPDX-License-Identifier: BSD-3-Clause
// SPDX-FileCopyrightText: 2020-2024 The Monero Project
#ifndef FEATHER_CREATEWALLETSEED_H
#define FEATHER_CREATEWALLETSEED_H
#include <QWizardPage>
#include "utils/Seed.h"
class WizardFields;
namespace Ui {
class PageWalletSeed;
}
class PageWalletSeed : public QWizardPage
{
Q_OBJECT
public:
explicit PageWalletSeed(WizardFields *fields, QWidget *parent = nullptr);
void initializePage() override;
bool validatePage() override;
bool isComplete() const override;
int nextId() const override;
public slots:
void displaySeed(const QString &seed);
private:
void seedRoulette(int count);
void generateSeed(const char* secret = nullptr);
void onOptionsClicked();
void onError();
signals:
void createWallet();
private:
Ui::PageWalletSeed *ui;
WizardFields *m_fields;
int m_restoreHeight;
bool m_seedError = false;
bool m_roulette = false;
int m_rouletteSpin = 15;
Seed m_seed;
};
#endif //FEATHER_CREATEWALLETSEED_H