9c6e791e658d3db35be5a991eda25e93637243f9
[staging/HomeScreen.git] / WindowManager / 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 "windowmanager.hpp"
19
20 int main(int argc, char *argv[])
21 {
22     QCoreApplication a(argc, argv);
23
24     // used for application settings (QSettings)
25     QCoreApplication::setOrganizationDomain("LinuxFoundation");
26     QCoreApplication::setOrganizationName("AutomotiveGradeLinux");
27     QCoreApplication::setApplicationName("WindowManager");
28     QCoreApplication::setApplicationVersion("0.3.0");
29
30     qDebug("%s, v%s", QCoreApplication::applicationName().toStdString().c_str(), QCoreApplication::applicationVersion().toStdString().c_str());
31
32     qDBusRegisterMetaType<SimplePoint>();
33     qDBusRegisterMetaType<QList<SimplePoint> >();
34     qDBusRegisterMetaType<SimpleRect>();
35     qDBusRegisterMetaType<QList<SimpleRect> >();
36
37     WindowManager *windowManager = new WindowManager();
38     windowManager->start();
39
40 #ifdef __arm__
41     qDebug("Running on ARM architecture");
42 #endif
43 #ifdef __i386__
44     qDebug("Running on x86 architecture");
45 #endif
46
47     return a.exec();
48 }