X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=HomeScreenAppFrameworkBinderAGL%2Fsrc%2Fmain.cpp;h=12ed15c101bb5728dd89cf05ed677da1976da5c9;hb=09f2f0036f122e49aa49e6c446d723850192a725;hp=2d88537baeda40ca53d61fb7d26cc629b887cfb6;hpb=1edc5d1bebfd4156b0b58d693f0431d17f20a508;p=staging%2FHomeScreen.git diff --git a/HomeScreenAppFrameworkBinderAGL/src/main.cpp b/HomeScreenAppFrameworkBinderAGL/src/main.cpp index 2d88537..12ed15c 100644 --- a/HomeScreenAppFrameworkBinderAGL/src/main.cpp +++ b/HomeScreenAppFrameworkBinderAGL/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. @@ -18,6 +18,10 @@ #include #include "homescreenappframeworkbinderagl.h" +void noOutput(QtMsgType, const QMessageLogContext &, const QString &) +{ +} + int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); @@ -31,8 +35,16 @@ int main(int argc, char *argv[]) parser.setApplicationDescription("AGL Application Framwork Proxy - 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 >();