Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
Executable
+42
@@ -0,0 +1,42 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* DateTimeSyncer to set Time and Date
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Patric Karwat, NLE, 07-03-2019
|
||||
*/
|
||||
|
||||
#include <LtsCommandLineParser/LtsCommandLineParser.h>
|
||||
#include <NGLLogger/INGLLogger.h>
|
||||
#include <nglapplication/nglapplication.h>
|
||||
#include <QNetworkProxy>
|
||||
|
||||
#include "system_caller.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
NGLApplication app(argc, argv);
|
||||
QNetworkProxy::setApplicationProxy(QNetworkProxy());
|
||||
|
||||
LtsCommandLineParser::LtsCommandLineParser options(LtsCommandLineParser::LtsCommandLineParser::ProvideCommandLineParameterOptions::CustomConfigFile);
|
||||
if (!options.init())
|
||||
return -1;
|
||||
|
||||
app.createLogger("DateTimeSyncer", "log4cxx_dateTimeSyncer.props");
|
||||
NGL::INGLLogger &logger = app.baseLogger();
|
||||
QCoreApplication::setApplicationName(QLatin1String("Date Time Syncer"));
|
||||
QCoreApplication::setOrganizationName(QLatin1String("RME"));
|
||||
|
||||
int retval = 0;
|
||||
STARTUP_LOG(logger);
|
||||
{
|
||||
DateTimeSyncer::SystemCaller controller;
|
||||
controller.init(13777);
|
||||
retval = app.exec();
|
||||
|
||||
SHUTDOWN_LOG(logger);
|
||||
}
|
||||
|
||||
return retval;
|
||||
}
|
||||
Reference in new issue
Block a user