X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=HomeScreen%2Fsrc%2Fmain.cpp;h=47d4f1617c8067d49fbf5cd24d68bb41b7fae917;hb=09f2f0036f122e49aa49e6c446d723850192a725;hp=0eaae7e421e1cab33e9c8279abb537abb190bfcf;hpb=1edc5d1bebfd4156b0b58d693f0431d17f20a508;p=staging%2FHomeScreen.git diff --git a/HomeScreen/src/main.cpp b/HomeScreen/src/main.cpp index 0eaae7e..47d4f16 100644 --- a/HomeScreen/src/main.cpp +++ b/HomeScreen/src/main.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH + * Copyright (C) 2016, 2017 Mentor Graphics Development (Deutschland) GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,9 +23,13 @@ #include "layouthandler.h" #include "homescreencontrolinterface.h" -#include "../src2/applicationlauncher.h" -#include "../src2/statusbarmodel.h" -#include "../src2/applicationmodel.h" +#include "applicationlauncher.h" +#include "statusbarmodel.h" +#include "applicationmodel.h" + +void noOutput(QtMsgType, const QMessageLogContext &, const QString &) +{ +} int main(int argc, char *argv[]) { @@ -40,8 +44,16 @@ int main(int argc, char *argv[]) parser.setApplicationDescription("AGL HomeScreen - see wwww... for more details"); parser.addHelpOption(); parser.addVersionOption(); + QCommandLineOption quietOption(QStringList() << "q" << "quiet", + QCoreApplication::translate("main", "Be quiet. No outputs.")); + parser.addOption(quietOption); parser.process(a); + if (parser.isSet(quietOption)) + { + qInstallMessageHandler(noOutput); + } + qDBusRegisterMetaType(); qDBusRegisterMetaType >();