add some comments
[makneto-zunavac1.git] / src / ui-mobile / main.cpp
blob8f9e65d78ac8dffe8a145056cb358da95c87e958
1 /*
2 * Copyright (C) 2011 Lukáš Karas <lukas.karas@centrum.cz>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the
16 * Free Software Foundation, Inc.,
17 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #include <QDebug>
21 #include <QApplication>
22 #include <QGraphicsView>
23 #include <QGraphicsScene>
24 #include <QGraphicsWidget>
25 #include <QGraphicsLinearLayout>
26 #include <QDeclarativeComponent>
27 #include <QDeclarativeEngine>
28 #include <QDebug>
29 #include <QDeclarativeView>
30 #include <QVBoxLayout>
31 #include <QMainWindow>
32 #include <QtWebKit/QtWebKit>
33 #include <QtWebKit/QGraphicsWebView>
35 #include "makneto.h"
36 #include "telepathy-initializer.h"
37 #include "telepathy-client.h"
38 #include "session.h"
40 int main(int argc, char **argv) {
42 // TODO: this option should be configurable (it is configurable only over param. "--graphicssystem") Other values can be "native", "raster", "opengl1" and "opengl".
43 //QApplication::setGraphicsSystem(QString("raster"));
45 QApplication app(argc, argv);
46 // Phonon needs QCoreApplication::applicationName to be set to export audio output names through the DBUS interface
47 app.setApplicationName("MaknetoMobile");
48 Makneto makneto(&app);
49 if (!makneto.init()) {
50 qWarning() << "Makneto initializing failed, exiting";
51 return -1;
54 return app.exec();