-
Notifications
You must be signed in to change notification settings - Fork 0
/
nowplayingwidget.h
38 lines (34 loc) · 1 KB
/
nowplayingwidget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef NOWPLAYINGWIDGET_H
#define NOWPLAYINGWIDGET_H
#include "ui_nowplayingwidget.h"
#include "library.h"
#include <QMediaPlaylist>
class NowPlayingWidget : public QWidget, private Ui::NowPlayingWidget
{
Q_OBJECT
private:
QMediaPlaylist::PlaybackMode currentMode();
Library lib;
void mkConnections();
QMediaPlaylist::PlaybackMode randomMode;
QMediaPlaylist::PlaybackMode repeatMode;
public:
explicit NowPlayingWidget(QWidget *parent = 0);
void setPlaybackModeEnabled(bool enabled);
bool eventFilter(QObject *sender, QEvent *event);
signals:
void seekBarPressed();
void seekBarReleased();
void randomClicked();
void repeatClicked();
void positionChanged(int);
void playBackModeChanged(QMediaPlaylist::PlaybackMode);
public slots:
void setPosition(qint64 value);
void setSong(const Song &song);
void changeRandomMode();
void changeRepeatMode();
void seekBarActionTriggered(int action);
void updateLabel();
};
#endif // NOWPLAYINGWIDGET_H