i2pd/qt/i2pd_qt/main.cpp
2016-06-15 11:28:59 -04:00

24 lines
332 B
C++

#include "mainwindow.h"
#include <QApplication>
#include <stdlib.h>
#include "../../Daemon.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
int ret = -1;
if (Daemon.init(argc, argv))
{
if (Daemon.start())
{
w.show();
ret = a.exec();
}
Daemon.stop();
}
return ret;
}