Add command line parameter mechanism
[staging/HomeScreen.git] / HomeScreenAppFrameworkBinderAGL / src / main.cpp
1 /*
2  * Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #include <QCoreApplication>
18 #include <QCommandLineParser>
19 #include "homescreenappframeworkbinderagl.h"
20
21 int main(int argc, char *argv[])
22 {
23     QCoreApplication a(argc, argv);
24
25     QCoreApplication::setOrganizationDomain("LinuxFoundation");
26     QCoreApplication::setOrganizationName("AutomotiveGradeLinux");
27     QCoreApplication::setApplicationName("HomeScreenAppFrameworkBinderAGL");
28     QCoreApplication::setApplicationVersion("0.7.0");
29
30     QCommandLineParser parser;
31     parser.setApplicationDescription("AGL Application Framwork Proxy - see wwww... for more details");
32     parser.addHelpOption();
33     parser.addVersionOption();
34     parser.process(a);
35
36     qDBusRegisterMetaType<AppInfo>();
37     qDBusRegisterMetaType<QList<AppInfo> >();
38
39     HomeScreenAppFrameworkBinderAgl *tdp = new HomeScreenAppFrameworkBinderAgl();
40
41     return a.exec();
42 }