blob: 96f7390dfca17fd513c1dacd92c0ce0413348730 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
// Copyright (c) 2021 The Discoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_QT_OPTIONSDIALOG_H
#define BITCOIN_QT_OPTIONSDIALOG_H
class CWallet;
class CBlockIndex;
#include <QDialog>
#include <QThread>
class ImportKeysDialog;
class PlatformStyle;
namespace Ui {
class ImportKeysDialog;
}
/** Preferences dialog. */
class ImportKeysDialog : public QDialog
{
Q_OBJECT
public:
explicit ImportKeysDialog(const PlatformStyle *_platformStyle, QWidget *parent = 0);
~ImportKeysDialog();
Q_SIGNALS:
void stopExecutor();
void rescanWallet(CWallet*, CBlockIndex*);
private:
Ui::ImportKeysDialog *ui;
const PlatformStyle *platformStyle;
QThread thread;
private Q_SLOTS:
/* set OK button state (enabled / disabled) */
void setOkButtonState(bool fState);
void on_resetButton_clicked();
void on_okButton_clicked();
void on_cancelButton_clicked();
void resetDialogValues();
/* import a private key */
bool importKey();
};
#endif // BITCOIN_QT_OPTIONSDIALOG_H
|