-
Notifications
You must be signed in to change notification settings - Fork 0
/
interface.h
49 lines (36 loc) · 838 Bytes
/
interface.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
39
40
41
42
43
44
45
46
47
48
49
#ifndef INTERFACE_H
#define INTERFACE_H
#include "mediaplayer.h"
#include "customslider.h"
#include "playback.h"
#include <QWidget>
#include <QMediaPlayer>
namespace Ui {
class Interface;
}
class Interface : public QWidget
{
Q_OBJECT
public:
explicit Interface(QWidget *parent = nullptr);
~Interface();
public slots:
private slots:
void on_playButton_clicked();
void positionText();
void durationText();
void iconOnStatusChange();
void handleSliderClicked(float position);
void handleAudioClicked(float position);
void on_nextMedia_pressed();
void on_previousMedia_pressed();
private:
Ui::Interface *ui;
QTimer* timer;
QMediaPlayer* m_mediaPlayer;
QAudioOutput* audio;
signals:
void nextMediaPressed();
void previousMediaPressed();
};
#endif // INTERFACE_H