misc: medialibrary: ctx does not need dynamic lifetime
[vlc.git] / doc / libvlc / QtPlayer / player.h
blob495ea9531183b78e8af793c88f02d794244978b3
1 /******************************
2 * Qt player using libVLC *
3 * By protonux *
4 * *
5 * Under WTFPL *
6 ******************************/
8 #ifndef PLAYER
9 #define PLAYER
11 #include <QtGui>
12 #include <vlc/vlc.h>
14 class Mwindow : public QMainWindow {
16 Q_OBJECT
18 public:
19 Mwindow();
20 virtual ~Mwindow();
22 private slots:
23 void openFile();
24 void play();
25 void stop();
26 void mute();
27 void about();
28 void fullscreen();
30 int changeVolume(int);
31 void changePosition(int);
32 void updateInterface();
34 protected:
35 virtual void closeEvent(QCloseEvent*);
37 private:
38 QPushButton *playBut;
39 QSlider *volumeSlider;
40 QSlider *slider;
41 QWidget *videoWidget;
43 libvlc_instance_t *vlcInstance;
44 libvlc_media_player_t *vlcPlayer;
46 void initUI();
50 #endif