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;
|
2016-06-15 18:28:59 +03:00
|
|
|
if (Daemon.init(argc, argv))
|
2016-06-14 03:52:17 +03:00
|
|
|
{
|
2016-06-15 18:28:59 +03:00
|
|
|
if (Daemon.start())
|
2016-06-15 16:31:52 +03:00
|
|
|
{
|
|
|
|
w.show();
|
|
|
|
ret = a.exec();
|
|
|
|
}
|
2016-06-15 18:28:59 +03:00
|
|
|
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
|
|
|
}
|