i2pd/qt/i2pd_qt/main.cpp

24 lines
332 B
C++
Raw Normal View History

2016-06-14 03:52:17 +03:00
#include "mainwindow.h"
#include <QApplication>
#include <stdlib.h>
#include "../../Daemon.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
2016-06-15 16:31:52 +03:00
int ret = -1;
if (Daemon.init(argc, argv))
2016-06-14 03:52:17 +03:00
{
if (Daemon.start())
2016-06-15 16:31:52 +03:00
{
w.show();
ret = a.exec();
}
Daemon.stop();
2016-06-14 03:52:17 +03:00
}
2016-06-15 16:31:52 +03:00
return ret;
2016-06-14 03:52:17 +03:00
}