Browse Source

some cleanup

pull/523/head
orignal 9 years ago
parent
commit
344d0ae3ec
  1. 1
      qt/i2pd_qt/DaemonQT.cpp
  2. 7
      qt/i2pd_qt/i2pd_qt.pro
  3. 24
      qt/i2pd_qt/i2pd_qt_gui.cpp
  4. 6
      qt/i2pd_qt/i2pd_qt_gui.h

1
qt/i2pd_qt/DaemonQT.cpp

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

7
qt/i2pd_qt/i2pd_qt.pro

@ -66,8 +66,7 @@ SOURCES += DaemonQT.cpp\ @@ -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 \ @@ -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

24
qt/i2pd_qt/i2pd_qt_gui.cpp

@ -1,24 +0,0 @@ @@ -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

6
qt/i2pd_qt/i2pd_qt_gui.h

@ -1,6 +0,0 @@ @@ -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…
Cancel
Save