4ab0541e03309ac2543670c76f59d8159a2bcbee
[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 #include "vlcstatus.h"
28
29 namespace Ui {
30     class PlayerMainWindow;
31 }
32
33 class PlayerMainWindow : public QMainWindow {
34     Q_OBJECT
35 public:
36     explicit PlayerMainWindow(QWidget *parent = 0);
37     ~PlayerMainWindow();
38
39 public slots:
40     void askStatus();
41     void showConfig();
42     void showAbout();
43     void play();
44     void playpause();
45     void stop();
46     void pause();
47     void previous();
48     void next();
49     void fullscreen();
50     void volUp();
51     void volDown();
52     void volMute();
53     void slide(int value);
54     void updateUiWithCurrentStatus();
55
56
57 protected slots:
58     void parseXmlStatus();
59 protected:
60     void changeEvent(QEvent *e);
61
62
63 private:
64     Ui::PlayerMainWindow *ui;
65     PlayListMainWindow * mPlayListMainWindow;
66     BrowseMainWindow * mBrowserMainWindow;
67     QNetworkAccessManager * mNetManager;
68     QString mIp;
69     QTimer * mTimer;
70     int mVolume;
71     int mMuted;
72     VlcStatus mCurrentStatus;
73
74 };
75
76 #endif // PLAYERMAINWINDOW_H