From ff4d716fb8034cf7ab89a2bd6b28647a788b9068 Mon Sep 17 00:00:00 2001 From: "Bocklage, Jens" Date: Wed, 18 Jan 2017 15:27:02 +0100 Subject: Initial source commit Taken from https://gerrit.automotivelinux.org/gerrit/p/staging/HomeScreen.git Signed-off-by: Bocklage, Jens --- homescreenappframeworkbinderagl/src/main.cpp | 54 ++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 homescreenappframeworkbinderagl/src/main.cpp (limited to 'homescreenappframeworkbinderagl/src/main.cpp') diff --git a/homescreenappframeworkbinderagl/src/main.cpp b/homescreenappframeworkbinderagl/src/main.cpp new file mode 100644 index 0000000..12ed15c --- /dev/null +++ b/homescreenappframeworkbinderagl/src/main.cpp @@ -0,0 +1,54 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include +#include "homescreenappframeworkbinderagl.h" + +void noOutput(QtMsgType, const QMessageLogContext &, const QString &) +{ +} + +int main(int argc, char *argv[]) +{ + QCoreApplication a(argc, argv); + + QCoreApplication::setOrganizationDomain("LinuxFoundation"); + QCoreApplication::setOrganizationName("AutomotiveGradeLinux"); + QCoreApplication::setApplicationName("HomeScreenAppFrameworkBinderAGL"); + QCoreApplication::setApplicationVersion("0.7.0"); + + QCommandLineParser parser; + 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 >(); + + HomeScreenAppFrameworkBinderAgl *tdp = new HomeScreenAppFrameworkBinderAgl(); + + return a.exec(); +} -- cgit 1.2.3-korg