aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletcontroller.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qt/walletcontroller.h')
-rw-r--r--src/qt/walletcontroller.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/qt/walletcontroller.h b/src/qt/walletcontroller.h
index 8ec0243890..c595ba998d 100644
--- a/src/qt/walletcontroller.h
+++ b/src/qt/walletcontroller.h
@@ -40,6 +40,7 @@ class path;
class AskPassphraseDialog;
class CreateWalletActivity;
class CreateWalletDialog;
+class MigrateWalletActivity;
class OpenWalletActivity;
class WalletControllerActivity;
@@ -65,6 +66,8 @@ public:
void closeWallet(WalletModel* wallet_model, QWidget* parent = nullptr);
void closeAllWallets(QWidget* parent = nullptr);
+ void migrateWallet(WalletModel* wallet_model, QWidget* parent = nullptr);
+
Q_SIGNALS:
void walletAdded(WalletModel* wallet_model);
void walletRemoved(WalletModel* wallet_model);
@@ -83,6 +86,7 @@ private:
std::unique_ptr<interfaces::Handler> m_handler_load_wallet;
friend class WalletControllerActivity;
+ friend class MigrateWalletActivity;
};
class WalletControllerActivity : public QObject
@@ -175,4 +179,22 @@ private:
void finish();
};
+class MigrateWalletActivity : public WalletControllerActivity
+{
+ Q_OBJECT
+
+public:
+ MigrateWalletActivity(WalletController* wallet_controller, QWidget* parent) : WalletControllerActivity(wallet_controller, parent) {}
+
+ void migrate(WalletModel* wallet_model);
+
+Q_SIGNALS:
+ void migrated(WalletModel* wallet_model);
+
+private:
+ QString m_success_message;
+
+ void finish();
+};
+
#endif // BITCOIN_QT_WALLETCONTROLLER_H