Fabcoin Core  0.16.2
P2P Digital Currency
sendtocontract.h
Go to the documentation of this file.
1 #ifndef SENDTOCONTRACT_H
2 #define SENDTOCONTRACT_H
3 
4 #include <QWidget>
5 
6 class PlatformStyle;
7 class WalletModel;
8 class ClientModel;
10 class ExecRPCCommand;
11 class ABIFunctionField;
12 class ContractABI;
13 class TabBarInfo;
14 
15 namespace Ui {
16 class SendToContract;
17 }
18 
19 class SendToContract : public QWidget
20 {
21  Q_OBJECT
22 
23 public:
24  explicit SendToContract(const PlatformStyle *platformStyle, QWidget *parent = 0);
25  ~SendToContract();
26 
27  void setClientModel(ClientModel *clientModel);
28  void setModel(WalletModel *model);
29  bool isValidContractAddress();
30  bool isValidInterfaceABI();
31  bool isDataValid();
32  void setContractAddress(const QString &address);
33 
34 Q_SIGNALS:
35 
36 public Q_SLOTS:
37  void on_clearAllClicked();
38  void on_sendToContractClicked();
39  void on_numBlocksChanged();
40  void on_updateSendToContractButton();
41  void on_newContractABI();
42  void on_functionChanged();
43  void on_saveInfoClicked();
44  void on_loadInfoClicked();
45  void on_pasteAddressClicked();
46  void on_contractAddressChanged();
47 
48 private:
49  QString toDataHex(int func, QString& errorMessage);
50  bool isFunctionPayable();
51 
52 private:
62  int m_results;
63 };
64 
65 #endif // SENDTOCONTRACT_H
ContractABI * m_contractABI
WalletModel * m_model
ExecRPCCommand * m_execRPCCommand
Model for Fabcoin network client.
Definition: clientmodel.h:38
The ABIFunctionField class ABI functions widget.
Qt model of the contract book in the core.
Ui::SendToContract * ui
const PlatformStyle * m_platformStyle
The ExecRPCCommand class Execution of RPC command line.
Interface to Fabcoin wallet from Qt view code.
Definition: walletmodel.h:103
TabBarInfo * m_tabInfo
The TabBarInfo class Class for informations about tabs.
Definition: tabbarinfo.h:13
struct evm_uint160be address(struct evm_env *env)
Definition: capi.c:13
ContractTableModel * m_contractModel
ABIFunctionField * m_ABIFunctionField
ClientModel * m_clientModel