Fabcoin Core  0.16.2
P2P Digital Currency
createcontract.h
Go to the documentation of this file.
1 #ifndef CREATECONTRACT_H
2 #define CREATECONTRACT_H
3 
4 #include <QWidget>
5 
6 class PlatformStyle;
7 class WalletModel;
8 class ClientModel;
9 class ExecRPCCommand;
10 class ABIFunctionField;
11 class ContractABI;
12 class TabBarInfo;
13 
14 namespace Ui {
15 class CreateContract;
16 }
17 
18 class CreateContract : public QWidget
19 {
20  Q_OBJECT
21 
22 public:
23  explicit CreateContract(const PlatformStyle *platformStyle, QWidget *parent = 0);
24  ~CreateContract();
25 
26  void setLinkLabels();
27  void setClientModel(ClientModel *clientModel);
28  void setModel(WalletModel *model);
29  bool isValidBytecode();
30  bool isValidInterfaceABI();
31  bool isDataValid();
32 
33 Q_SIGNALS:
34 
35 public Q_SLOTS:
36  void on_clearAllClicked();
37  void on_createContractClicked();
38  void on_numBlocksChanged();
39  void on_updateCreateButton();
40  void on_newContractABI();
41 
42 private Q_SLOTS:
43 
44 private:
45  QString toDataHex(int func, QString& errorMessage);
46 
47 private:
48 
56  int m_results;
57 };
58 
59 #endif // CREATECONTRACT_H
ABIFunctionField * m_ABIFunctionField
ExecRPCCommand * m_execRPCCommand
TabBarInfo * m_tabInfo
WalletModel * m_model
Model for Fabcoin network client.
Definition: clientmodel.h:38
The ABIFunctionField class ABI functions widget.
ClientModel * m_clientModel
The ExecRPCCommand class Execution of RPC command line.
ContractABI * m_contractABI
Interface to Fabcoin wallet from Qt view code.
Definition: walletmodel.h:103
The TabBarInfo class Class for informations about tabs.
Definition: tabbarinfo.h:13
Ui::CreateContract * ui