#ifndef UI_H #define UI_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "icon.h" #include "../io/aud_file.h" class Ui : public QWidget { Q_OBJECT private: QLabel *fileName; QSlider *slider; QMediaPlayer *player; AudFile *ioDev; Icon *pausePlay; Icon *settings; Icon *open; QString fileDir; bool pressed; private slots: void error(QMediaPlayer::Error error); void sliderPressed(); void sliderReleased(); void posChanged(qint64 pos); void durationChanged(qint64 len); void openDialog(); void nextFile(); void play(const QString &path); public: Ui(const QStringList &args, QWidget *parent = 0); }; #endif // UI_H