New layer management in WindowManager. Three layers are created. One for the HomeScre...
[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.1");
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<LayoutArea>();
35     qDBusRegisterMetaType<QList<LayoutArea> >();
36     qDBusRegisterMetaType<Layout>();
37     qDBusRegisterMetaType<QList<Layout> >();
38
39     WindowManager *windowManager = new WindowManager();
40     windowManager->start();
41
42 #ifdef __arm__
43     qDebug("Running on ARM architecture");
44 #endif
45 #ifdef __i386__
46     qDebug("Running on x86 architecture");
47 #endif
48
49     return a.exec();
50 }