wowlet/src/wizard/openwallet.h

42 lines
869 B
C
Raw Normal View History

// SPDX-License-Identifier: BSD-3-Clause
2020-12-26 19:56:06 +00:00
// Copyright (c) 2020-2021, The Monero Project.
2021-03-30 10:52:29 +01:00
#ifndef WOWLET_OPENWALLET_H
#define WOWLET_OPENWALLET_H
#include <QLabel>
#include <QWizardPage>
#include <QWidget>
#include "appcontext.h"
#include "utils/keysfiles.h"
namespace Ui {
class OpenWalletPage;
}
class OpenWalletPage : public QWizardPage
{
Q_OBJECT
public:
explicit OpenWalletPage(AppContext *ctx, WalletKeysFilesModel *wallets, QWidget *parent = nullptr);
void initializePage() override;
bool validatePage() override;
int nextId() const override;
signals:
void openWallet(QString path);
private:
2020-12-18 23:13:33 +00:00
void updatePath();
AppContext *m_ctx;
WalletKeysFilesModel *m_walletKeysFilesModel;
WalletKeysFilesProxyModel *m_keysProxy;
Ui::OpenWalletPage *ui;
QStandardItemModel *m_model;
};
2021-03-30 10:52:29 +01:00
#endif //WOWLET_OPENWALLET_H