mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
24 lines
332 B
C++
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;
|
|
}
|