Updated licenses to all files
[vlc-remote] / main.cpp
1 /*   VLC-REMOTE for MAEMO 5
2 *   Copyright (C) 2010 Schutz Sacha <istdasklar@gmail.com>, Dru Moore <usr@dru-id.co.uk>
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 <QLocale>
21 #include <QTextCodec>
22 #include <QTranslator>
23 #include <QDebug>
24 #include "playermainwindow.h"
25 #include "accountdialog.h"
26 int main(int argc, char *argv[])
27 {
28     QApplication a(argc, argv);
29
30     QCoreApplication::setOrganizationName("Omed");
31     QCoreApplication::setOrganizationDomain("medsoft.blogspot.com/");
32     QCoreApplication::setApplicationName("Maemo VLC remote");
33
34     QString locale = QLocale::system().name();
35     QTranslator translator;
36     translator.load(QString(":/languages/vlcremote_") + locale);
37     a.installTranslator(&translator);
38
39     QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8"));
40
41
42     qDebug() << AccountDialog::currentIp();
43
44
45   PlayerMainWindow * mainwindow = new PlayerMainWindow;
46 //
47    mainwindow->showMaximized();
48
49     return a.exec();
50 }