Fabcoin Core  0.16.2
P2P Digital Currency
sendtokenpage.h
Go to the documentation of this file.
1 #ifndef SENDTOKENPAGE_H
2 #define SENDTOKENPAGE_H
3 
4 #include <QWidget>
5 
6 class WalletModel;
7 class ClientModel;
8 class Token;
9 struct SelectedToken;
10 
11 namespace Ui {
12 class SendTokenPage;
13 }
14 
15 class SendTokenPage : public QWidget
16 {
17  Q_OBJECT
18 
19 public:
20  explicit SendTokenPage(QWidget *parent = 0);
21  ~SendTokenPage();
22 
23  void setModel(WalletModel *_model);
24  void setClientModel(ClientModel *clientModel);
25  void clearAll();
26  bool isValidAddress();
27  bool isDataValid();
28 
29  void setTokenData(std::string address, std::string sender, std::string symbol, int8_t decimals, std::string balance);
30 
31 private Q_SLOTS:
32  void on_clearButton_clicked();
33  void on_numBlocksChanged();
34  void on_updateConfirmButton();
35  void on_confirmClicked();
36 
37 private:
43 };
44 
45 #endif // SENDTOKENPAGE_H
struct evm_uint256be balance(struct evm_env *env, struct evm_uint160be address)
Definition: capi.c:7
SelectedToken * m_selectedToken
Definition: sendtokenpage.h:42
WalletModel * m_model
Definition: sendtokenpage.h:39
Definition: token.h:32
Model for Fabcoin network client.
Definition: clientmodel.h:38
ClientModel * m_clientModel
Definition: sendtokenpage.h:40
Interface to Fabcoin wallet from Qt view code.
Definition: walletmodel.h:103
Ui::SendTokenPage * ui
Definition: sendtokenpage.h:38
struct evm_uint160be address(struct evm_env *env)
Definition: capi.c:13
Token * m_tokenABI
Definition: sendtokenpage.h:41