Merge branch 'master' of https://vcs.maemo.org/git/vlc-remote
[vlc-remote] / main.cpp
1 /*   VLC-REMOTE for MAEMO 5
2  *   Copyright (C) 2010 Schutz Sacha <istdasklar@gmail.com>
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
6  *   Software Foundation
7  *
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
12  *
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.
17  */
18 #include <QtGui/QApplication>
19 #include <QSettings>
20 #include "playlistmainwindow.h"
21 #include "playermainwindow.h"
22
23 int main(int argc, char *argv[])
24 {
25     QApplication a(argc, argv);
26
27     QCoreApplication::setOrganizationName("Omed");
28     QCoreApplication::setOrganizationDomain("medsoft.blogspot.com/");
29     QCoreApplication::setApplicationName("Maemo VLC remote");
30
31     QString locale = QLocale::system().name();
32     QTranslator translator;
33     translator.load(QString(":/languages/vlcremote_") + locale);
34     a.installTranslator(&translator);
35
36     QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8"));
37
38     PlayerMainWindow * mainwindow = new PlayerMainWindow;
39
40     mainwindow->showMaximized();
41
42     return a.exec();
43 }