2 * Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #include <QCoreApplication>
18 #include "windowmanager.hpp"
20 int main(int argc, char *argv[])
22 QCoreApplication a(argc, argv);
24 // used for application settings (QSettings)
25 QCoreApplication::setOrganizationDomain("LinuxFoundation");
26 QCoreApplication::setOrganizationName("AutomotiveGradeLinux");
27 QCoreApplication::setApplicationName("WindowManager");
28 QCoreApplication::setApplicationVersion("0.6.0");
30 qDebug("%s, v%s", QCoreApplication::applicationName().toStdString().c_str(), QCoreApplication::applicationVersion().toStdString().c_str());
32 qDBusRegisterMetaType<SimplePoint>();
33 qDBusRegisterMetaType<QList<SimplePoint> >();
34 qDBusRegisterMetaType<LayoutArea>();
35 qDBusRegisterMetaType<QList<LayoutArea> >();
36 qDBusRegisterMetaType<Layout>();
37 qDBusRegisterMetaType<QList<Layout> >();
39 WindowManager *windowManager = new WindowManager();
40 windowManager->start();
43 qDebug("Running on ARM architecture");
46 qDebug("Running on x86 architecture");