feather/src/widgets/WalletUnlockWidget.h

44 lines
844 B
C
Raw Normal View History

2023-01-19 14:12:16 +00:00
// SPDX-License-Identifier: BSD-3-Clause
2024-01-01 17:07:58 +00:00
// SPDX-FileCopyrightText: 2020-2024 The Monero Project
2023-01-19 14:12:16 +00:00
#ifndef FEATHER_WALLETUNLOCKWIDGET_H
#define FEATHER_WALLETUNLOCKWIDGET_H
#include <QWidget>
#include <QMenu>
2023-12-30 13:17:11 +00:00
#include "Wallet.h"
2023-01-19 14:12:16 +00:00
namespace Ui {
class WalletUnlockWidget;
}
class WalletUnlockWidget : public QWidget
{
Q_OBJECT
public:
2023-12-30 13:17:11 +00:00
explicit WalletUnlockWidget(QWidget *parent, Wallet *wallet = nullptr);
2023-01-19 14:12:16 +00:00
~WalletUnlockWidget();
void setWalletName(const QString &walletName);
void reset();
void incorrectPassword();
signals:
void unlockWallet(const QString &password);
void closeWallet();
private slots:
void tryUnlock();
protected:
void keyPressEvent(QKeyEvent* e) override;
private:
QScopedPointer<Ui::WalletUnlockWidget> ui;
2023-12-30 13:17:11 +00:00
Wallet *m_wallet;
2023-01-19 14:12:16 +00:00
};
#endif //FEATHER_WALLETUNLOCKWIDGET_H