Fabcoin Core  0.16.2
P2P Digital Currency
editcontractinfodialog.h
Go to the documentation of this file.
1 #ifndef EDITCONTRACTINFODIALOG_H
2 #define EDITCONTRACTINFODIALOG_H
3 
4 #include <QDialog>
5 
7 class ContractABI;
8 
9 namespace Ui {
11 }
12 
13 QT_BEGIN_NAMESPACE
14 class QDataWidgetMapper;
15 QT_END_NAMESPACE
16 
19 class EditContractInfoDialog : public QDialog
20 {
21  Q_OBJECT
22 
23 public:
24  enum Mode {
26  EditContractInfo
27  };
28 
29  explicit EditContractInfoDialog(Mode mode, QWidget *parent = 0);
31 
32  bool isValidContractAddress();
33  bool isValidInterfaceABI();
34  bool isDataValid();
35 
36  void setModel(ContractTableModel *model);
37  void loadRow(int row);
38 
39  QString getAddress() const;
40  void setAddress(const QString &address);
41  QString getABI() const;
42  void setABI(const QString &ABI);
43 
44 public Q_SLOTS:
45  void accept();
46  void on_newContractABI();
47 
48 private:
49  bool saveCurrentRow();
50 
52  QDataWidgetMapper *mapper;
56 
57  QString address;
58  QString ABI;
59 };
60 
61 #endif // EDITCONTRACTINFODIALOG_H
Dialog for editing a contract information.
evm_mode mode
Definition: SmartVM.cpp:47
ContractTableModel * model
QDataWidgetMapper * mapper
Qt model of the contract book in the core.
struct evm_uint160be address(struct evm_env *env)
Definition: capi.c:13
Ui::EditContractInfoDialog * ui