restart button now has a handler

This commit is contained in:
hypnosis-i2p 2017-07-28 11:59:45 +08:00
parent a83be187f3
commit 3118d7bede
3 changed files with 27 additions and 0 deletions

View file

@ -51,6 +51,8 @@
#include "TunnelsPageUpdateListener.h"
#include "DaemonQT.h"
template<typename ValueType>
bool isType(boost::any& a) {
return
@ -311,6 +313,10 @@ using namespace i2p::client;
class TunnelPane;
using namespace i2p::qt;
class Controller;
class MainWindow : public QMainWindow {
Q_OBJECT
@ -318,6 +324,8 @@ public:
explicit MainWindow(QWidget *parent=0);
~MainWindow();
void setI2PController(i2p::qt::Controller* controller_);
//typedef std::function<QString ()> DefaultValueGetter;
//#ifndef ANDROID
@ -327,6 +335,7 @@ public:
private slots:
void handleQuitButton();
void handleGracefulQuitButton();
void handleDoRestartButton();
void handleGracefulQuitTimerEvent();
#ifndef ANDROID
void setIcon();
@ -351,6 +360,8 @@ private:
Ui::MainWindow* ui;
i2p::qt::Controller* i2pController;
protected:
#ifndef ANDROID
void closeEvent(QCloseEvent *event);