mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
some cleanup
This commit is contained in:
parent
3639c86adf
commit
344d0ae3ec
@ -1,6 +1,5 @@
|
|||||||
#include "DaemonQT.h"
|
#include "DaemonQT.h"
|
||||||
#include "../../Daemon.h"
|
#include "../../Daemon.h"
|
||||||
#include "i2pd_qt_gui.h"
|
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
@ -66,8 +66,7 @@ SOURCES += DaemonQT.cpp\
|
|||||||
../../TunnelPool.cpp \
|
../../TunnelPool.cpp \
|
||||||
../../util.cpp \
|
../../util.cpp \
|
||||||
../../i2pd.cpp \
|
../../i2pd.cpp \
|
||||||
$$IFADDRS_PATH/ifaddrs.c \
|
$$IFADDRS_PATH/ifaddrs.c
|
||||||
i2pd_qt_gui.cpp
|
|
||||||
|
|
||||||
HEADERS += DaemonQT.h mainwindow.h \
|
HEADERS += DaemonQT.h mainwindow.h \
|
||||||
../../HTTPServer.h ../../I2PControl.h ../../UPnP.h ../../Daemon.h ../../Config.h \
|
../../HTTPServer.h ../../I2PControl.h ../../UPnP.h ../../Daemon.h ../../Config.h \
|
||||||
@ -120,9 +119,7 @@ HEADERS += DaemonQT.h mainwindow.h \
|
|||||||
../../TunnelPool.h \
|
../../TunnelPool.h \
|
||||||
../../util.h \
|
../../util.h \
|
||||||
../../version.h \
|
../../version.h \
|
||||||
$$IFADDRS_PATH/ifaddrs.h \
|
$$IFADDRS_PATH/ifaddrs.h
|
||||||
i2pd_qt_gui.h
|
|
||||||
|
|
||||||
|
|
||||||
FORMS += mainwindow.ui
|
FORMS += mainwindow.ui
|
||||||
|
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
#if 0
|
|
||||||
#include "i2pd_qt_gui.h"
|
|
||||||
#include <QApplication>
|
|
||||||
#include <QMessageBox>
|
|
||||||
#include "mainwindow.h"
|
|
||||||
#include "DaemonQT.h"
|
|
||||||
|
|
||||||
int runGUI( int argc, char* argv[] ) {
|
|
||||||
QApplication app(argc, argv);
|
|
||||||
bool daemonInitSuccess = i2p::util::DaemonQTImpl::init(argc, argv);
|
|
||||||
if(!daemonInitSuccess) {
|
|
||||||
QMessageBox::critical(0, "Error", "Daemon init failed");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
MainWindow w;
|
|
||||||
w.show ();
|
|
||||||
i2p::util::DaemonQTImpl::start();
|
|
||||||
int result = app.exec();
|
|
||||||
//QMessageBox::information(&w, "Debug", "exec finished");
|
|
||||||
i2p::util::DaemonQTImpl::stop();
|
|
||||||
//QMessageBox::information(&w, "Debug", "demon stopped");
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
#endif
|
|
@ -1,6 +0,0 @@
|
|||||||
#ifndef IQPD_QT_GUI_H
|
|
||||||
#define IQPD_QT_GUI_H
|
|
||||||
|
|
||||||
int runGUI( int argc, char* argv[] );
|
|
||||||
|
|
||||||
#endif // IQPD_QT_GUI_H
|
|
Loading…
x
Reference in New Issue
Block a user