Merge branch 'master' of https://vcs.maemo.org/git/vlc-remote
[vlc-remote] / playermainwindow.h
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 #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 namespace Ui {
27     class PlayerMainWindow;
28 }
29
30 class PlayerMainWindow : public QMainWindow {
31     Q_OBJECT
32 public:
33     explicit PlayerMainWindow(QWidget *parent = 0);
34     ~PlayerMainWindow();
35
36 public slots:
37     void askStatus();
38     void showConfig();
39     void showAbout();
40     void play();
41     void stop();
42     void pause();
43     void previous();
44     void next();
45     void fullscreen();
46     void volUp();
47     void volDown();
48     void slide(int value);
49
50
51 protected slots:
52     void parseXmlStatus();
53 protected:
54     void changeEvent(QEvent *e);
55
56 private:
57     Ui::PlayerMainWindow *ui;
58     PlayListMainWindow * mPlayListMainWindow;
59     QNetworkAccessManager * mNetManager;
60     QString mIp;
61     QTimer * mTimer;
62
63 };
64
65 #endif // PLAYERMAINWINDOW_H