mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-16 00:12:43 +00:00
some cleanup
This commit is contained in:
parent
3639c86adf
commit
344d0ae3ec
@ -1,6 +1,5 @@
|
||||
#include "DaemonQT.h"
|
||||
#include "../../Daemon.h"
|
||||
#include "i2pd_qt_gui.h"
|
||||
#include "mainwindow.h"
|
||||
#include <QMessageBox>
|
||||
#include <QApplication>
|
||||
|
@ -66,8 +66,7 @@ SOURCES += DaemonQT.cpp\
|
||||
../../TunnelPool.cpp \
|
||||
../../util.cpp \
|
||||
../../i2pd.cpp \
|
||||
$$IFADDRS_PATH/ifaddrs.c \
|
||||
i2pd_qt_gui.cpp
|
||||
$$IFADDRS_PATH/ifaddrs.c
|
||||
|
||||
HEADERS += DaemonQT.h mainwindow.h \
|
||||
../../HTTPServer.h ../../I2PControl.h ../../UPnP.h ../../Daemon.h ../../Config.h \
|
||||
@ -120,9 +119,7 @@ HEADERS += DaemonQT.h mainwindow.h \
|
||||
../../TunnelPool.h \
|
||||
../../util.h \
|
||||
../../version.h \
|
||||
$$IFADDRS_PATH/ifaddrs.h \
|
||||
i2pd_qt_gui.h
|
||||
|
||||
$$IFADDRS_PATH/ifaddrs.h
|
||||
|
||||
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…
Reference in New Issue
Block a user