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
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
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.
18 #ifndef PLAYERMAINWINDOW_H
19 #define PLAYERMAINWINDOW_H
21 #include <QMainWindow>
25 #include "playlistmainwindow.h"
26 #include "browsemainwindow.h"
27 #include "favouritesmainwindow.h"
28 #include "vlcstatus.h"
31 class PlayerMainWindow;
34 class PlayerMainWindow : public QMainWindow {
37 explicit PlayerMainWindow(QWidget *parent = 0);
45 void showFavourites();
56 void slide(int value);
57 void updateUiWithCurrentStatus();
58 void setCoverArt(const QByteArray data);
59 void setCoverArtFromPixmap(QPixmap image);
60 void getCoverArt(int id);
61 void finished(QNetworkReply * reply);
62 void error(QNetworkReply::NetworkError code);
64 void updateFromSettings();
65 void orientationChanged();
69 void playlistIdUpdated(int id, bool hasart, QString extension);
73 void parseXmlStatus();
76 void changeEvent(QEvent *e);
77 void closeEvent(QCloseEvent *);
81 Ui::PlayerMainWindow *ui;
82 PlayListMainWindow * mPlayListMainWindow;
83 BrowseMainWindow * mBrowserMainWindow;
84 FavouritesMainWindow * mFavouritesMainWindow;
85 QNetworkAccessManager * mNetManager;
90 VlcStatus mCurrentStatus;
94 bool mIsFirstStatusCall;
98 #endif // PLAYERMAINWINDOW_H