X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=staging%2FHomeScreen.git;a=blobdiff_plain;f=HomeScreenAppFrameworkBinderAGL%2Fsrc%2Fmain.cpp;h=59475631efff2aba3987b25077bf8e61d8272ee6;hp=2d88537baeda40ca53d61fb7d26cc629b887cfb6;hb=0e3504774e4a889a3836c2eb2e02f4d38d3dc9b1;hpb=1edc5d1bebfd4156b0b58d693f0431d17f20a508 diff --git a/HomeScreenAppFrameworkBinderAGL/src/main.cpp b/HomeScreenAppFrameworkBinderAGL/src/main.cpp index 2d88537..5947563 100644 --- a/HomeScreenAppFrameworkBinderAGL/src/main.cpp +++ b/HomeScreenAppFrameworkBinderAGL/src/main.cpp @@ -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 >();