-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplayerwidget.h
More file actions
49 lines (35 loc) · 854 Bytes
/
playerwidget.h
File metadata and controls
49 lines (35 loc) · 854 Bytes
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
39
40
41
42
43
44
45
46
47
48
49
#ifndef PLAYERWIDGET_H
#define PLAYERWIDGET_H
#include <QWidget>
#include <Phonon/Phonon>
#include "playlistitem.h"
namespace Ui {
class playerWidget;
}
class playerWidget : public QWidget
{
Q_OBJECT
public:
explicit playerWidget(QWidget *parent = 0);
~playerWidget();
void play(PlaylistItem *item);
void fillFields(PlaylistItem *item);
QString time(int time);
void saveSelected(PlaylistItem *item);
private:
Ui::playerWidget *ui;
Phonon::MediaObject *mObject;
Phonon::AudioOutput *aOutput;
Phonon::Path path;
PlaylistItem *selectedItem;
private slots:
void aboutToFinishSlot();
void on_toolButton_clicked();
void on_nextBtn_clicked();
void on_prevBtn_clicked();
signals:
void aboutToFinish();
void playNext();
void playPrev();
};
#endif // PLAYERWIDGET_H