You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
606 B
43 lines
606 B
#ifndef MAIN_H
|
|
#define MAIN_H
|
|
|
|
#include <QAbstractListModel>
|
|
#include <QDialog>
|
|
#include <libethereum/Client.h>
|
|
|
|
namespace Ui {
|
|
class Main;
|
|
}
|
|
|
|
class Main : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Main(QWidget *parent = 0);
|
|
~Main();
|
|
|
|
private slots:
|
|
void on_connect_clicked();
|
|
void on_mine_toggled();
|
|
void on_send_clicked();
|
|
void on_create_clicked();
|
|
void on_net_toggled();
|
|
|
|
void refresh();
|
|
|
|
private:
|
|
void readSettings();
|
|
void writeSettings();
|
|
|
|
Ui::Main *ui;
|
|
|
|
eth::Client m_client;
|
|
|
|
eth::KeyPair m_myKey;
|
|
std::vector<bi::tcp::endpoint> m_peers;
|
|
|
|
QTimer* m_refresh;
|
|
};
|
|
|
|
#endif // MAIN_H
|
|
|