diff options
Diffstat (limited to 'HomeScreenAppFrameworkBinderAGL/src/main.cpp')
-rw-r--r-- | HomeScreenAppFrameworkBinderAGL/src/main.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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 <QCommandLineParser> #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<AppInfo>(); qDBusRegisterMetaType<QList<AppInfo> >(); |