1 /* VLC-REMOTE for MAEMO 5
2 * Copyright (C) 2010 Schutz Sacha <istdasklar@gmail.com>, Dru Moore <usr@dru-id.co.uk>, Yann Nave <yannux@onbebop.net>
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2,
5 * or (at your option) any later version, as published by the Free
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details
13 * You should have received a copy of the GNU General Public
14 * License along with this program; if not, write to the
15 * Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 #include <QtGui/QApplication>
22 #include <QTranslator>
24 #include "playermainwindow.h"
25 #include "accountdialog.h"
26 int main(int argc, char *argv[])
28 QApplication a(argc, argv);
30 QCoreApplication::setOrganizationName("Omed");
31 QCoreApplication::setOrganizationDomain("medsoft.blogspot.com/");
32 QCoreApplication::setApplicationName("Maemo VLC remote");
34 QString locale = QLocale::system().name();
35 QTranslator translator;
36 translator.load(QString(":/languages/vlcremote_") + locale);
37 a.installTranslator(&translator);
39 QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8"));
42 qDebug() << AccountDialog::currentIp();
45 PlayerMainWindow * mainwindow = new PlayerMainWindow;
47 //mainwindow->setAttribute(Qt::WA_Maemo5LandscapeOrientation, true);
48 //mainwindow->setAttribute(Qt::WA_Maemo5PortraitOrientation, true);
49 //mainwindow->setAttribute(Qt::WA_Maemo5AutoOrientation, true);
51 mainwindow->showMaximized();
52 #if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5)
53 mainwindow->setAttribute(Qt::WA_Maemo5AutoOrientation, true);