comparison ui/main.cpp @ 827:8de162b91a22

(Issue49) Create a Scheduled daily task to run trustbridge
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 23 Jul 2014 19:47:59 +0200
parents 1e61903f61e2
children 294d76174102
comparison
equal deleted inserted replaced
826:4aa33c408776 827:8de162b91a22
7 */ 7 */
8 #include "mainwindow.h" 8 #include "mainwindow.h"
9 #include "processhelp.h" 9 #include "processhelp.h"
10 #include "logging.h" 10 #include "logging.h"
11 #include "selftest.h" 11 #include "selftest.h"
12 #ifdef WIN32
13 #include "taskscheduler.h"
14 #endif
12 15
13 #include <QApplication> 16 #include <QApplication>
14 #include <QSystemTrayIcon> 17 #include <QSystemTrayIcon>
15 #include <QtPlugin> 18 #include <QtPlugin>
16 #include <QMessageBox> 19 #include <QMessageBox>
95 "on this system. This software can only " 98 "on this system. This software can only "
96 "be used in a desktop environment.")); 99 "be used in a desktop environment."));
97 return 1; 100 return 1;
98 } 101 }
99 102
103 #ifdef Q_OS_WIN
104 {
105 TaskScheduler taskSched;
106 qDebug() << " task sched done: " << taskSched.createDailyTask(QCoreApplication::applicationFilePath(),
107 QString::fromLatin1("--tray"), QTime::currentTime());
108 }
109 #endif
110
100 MainWindow mainWin(trayMode); 111 MainWindow mainWin(trayMode);
101 112
102 return app.exec(); 113 return app.exec();
103 } 114 }

http://wald.intevation.org/projects/trustbridge/