mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 19:27:49 +02:00
restart button now has a handler
This commit is contained in:
parent
a83be187f3
commit
3118d7bede
3 changed files with 27 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue