some cleanup

This commit is contained in:
orignal 2016-06-17 16:30:50 -04:00
parent 3639c86adf
commit 344d0ae3ec
4 changed files with 2 additions and 36 deletions

View File

@ -1,6 +1,5 @@
#include "DaemonQT.h"
#include "../../Daemon.h"
#include "i2pd_qt_gui.h"
#include "mainwindow.h"
#include <QMessageBox>
#include <QApplication>

View File

@ -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

View File

@ -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

View File

@ -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