-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdashcoinwallet.h
73 lines (64 loc) · 1.68 KB
/
dashcoinwallet.h
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef DASHCOINWALLET_H
#define DASHCOINWALLET_H
#include <QMainWindow>
#include <QProcess>
#include <QLabel>
#include <QTimer>
#include <QtNetwork>
namespace Ui {
class DashcoinWallet;
}
class DashcoinWallet : public QMainWindow
{
Q_OBJECT
public:
explicit DashcoinWallet(QWidget *parent = 0);
~DashcoinWallet();
protected:
void closeEvent(QCloseEvent *event);
private slots:
void on_btn_open_clicked();
void on_btn_generate_clicked();
void on_btn_send_clicked();
void on_btn_send_confirm_clicked();
void on_btn_send_cancel_clicked();
void done_generating();
void daemon_started();
void daemon_finished();
void wallet_started();
void wallet_finished();
void parse_daemon_log();
void load_wallet_data();
void rpcReply(QNetworkReply *reply);
void on_btn_close_wallet_clicked();
void on_txt_password_open_returnPressed();
private:
Ui::DashcoinWallet *ui;
void init_ui();
void init_wallet();
void show_wallet(bool b);
void load_wallets();
void start_daemon();
void load_balance();
void load_address();
void load_transactions();
QString fix_amount(QString str);
QString load_daemon_log();
QString fix_balance(QString str);
bool synced;
bool daemon_is_running;
bool wallet_is_running;
bool opening_wallet;
QLabel *syncLabel;
QLabel *messageLabel;
QString current_wallet;
QProcess *daemon;
QProcess *wallet_generate;
QProcess *wallet;
bool tryingToClose;
QTimer *parse_daemon_timer;
QNetworkAccessManager *loader_balance;
QNetworkAccessManager *loader_transactions;
QNetworkAccessManager *loader_send;
};
#endif // DASHCOINWALLET_H