#ifndef UI_H #define UI_H #include #include #include #include #include #include #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" #include "../io/conf.h" class Ui : public QWidget { Q_OBJECT private: QLabel *fileName; QSlider *slider; QMediaPlayer *player; AudFile *ioDev; QToolButton *settings; QSystemTrayIcon *trayIcon; Conf *conf; QMenu *menu; QMenu *trayMenu; Icon *pausePlay; Icon *open; Icon *next; Icon *prev; Icon *stop; bool pressed; void fileDir(char direction); void changeEvent(QEvent *event); void closeEvent(QCloseEvent *event); private slots: void error(QMediaPlayer::Error error); void sliderPressed(); void sliderReleased(); void posChanged(qint64 pos); void openDialog(); void nextFile(); void prevFile(); void stopPlayer(); void play(const QString &path); void trayActivated(QSystemTrayIcon::ActivationReason reason); public: Ui(const QStringList &args, QWidget *parent = 0); }; #endif // UI_H