Updated the licenses to include my details
[vlc-remote] / playermainwindow.h
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
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 #ifndef PLAYERMAINWINDOW_H
19 #define PLAYERMAINWINDOW_H
20
21 #include <QMainWindow>
22 #include <QtNetwork>
23 #include <QtXml>
24 #include <QTimer>
25 #include "playlistmainwindow.h"
26 #include "browsemainwindow.h"
27
28 namespace Ui {
29     class PlayerMainWindow;
30 }
31
32 class PlayerMainWindow : public QMainWindow {
33     Q_OBJECT
34 public:
35     explicit PlayerMainWindow(QWidget *parent = 0);
36     ~PlayerMainWindow();
37
38 public slots:
39     void askStatus();
40     void showConfig();
41     void showAbout();
42     void play();
43     void stop();
44     void pause();
45     void previous();
46     void next();
47     void fullscreen();
48     void volUp();
49     void volDown();
50     void volMute();
51     void slide(int value);
52
53
54 protected slots:
55     void parseXmlStatus();
56 protected:
57     void changeEvent(QEvent *e);
58
59
60 private:
61     Ui::PlayerMainWindow *ui;
62     PlayListMainWindow * mPlayListMainWindow;
63     BrowseMainWindow * mBrowserMainWindow;
64     QNetworkAccessManager * mNetManager;
65     QString mIp;
66     QTimer * mTimer;
67     int mVolume;
68     int mMuted;
69
70 };
71
72 #endif // PLAYERMAINWINDOW_H