forked from marina13594/NETB380
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmusicplayerdialog.h
More file actions
42 lines (29 loc) · 801 Bytes
/
musicplayerdialog.h
File metadata and controls
42 lines (29 loc) · 801 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
#ifndef MUSICPLAYERDIALOG_H
#define MUSICPLAYERDIALOG_H
#include <QDialog>
#include <QMediaPlayer>
#include <QDebug>
namespace Ui {
class MusicPlayerDialog;
}
class MusicPlayerDialog : public QDialog
{
Q_OBJECT
public:
explicit MusicPlayerDialog(QWidget *parent = 0);
~MusicPlayerDialog();
void get_string_to_play(QString passed);
private slots:
void on_Progress_Slider_sliderMoved(int position);
void on_Volume_Slider_sliderMoved(int position);
void on_Play_Button_clicked();
void on_Pause_Button_clicked();
void on_Stop_Button_clicked();
void on_durationChanged(qint64 position);
void on_positonChanged(qint64 position);
private:
Ui::MusicPlayerDialog *ui;
QMediaPlayer *player;
QString selected;
};
#endif // MUSICPLAYERDIALOG_H