summaryrefslogtreecommitdiffstats
path: root/beetplayer.h
blob: 9e7a8ce4bb10789e9fd43aa05ea55527e47d860b (plain)
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
#ifndef BEETPLAYER_H
#define BEETPLAYER_H

#include <QMediaPlayer>
#include <QMainWindow>

class QLabel;
class PlayerWidget;

class BeetPlayer : public QMainWindow {
    Q_OBJECT
    public:
        enum Tabs { Player = 0, Indexer = 1 };
        explicit BeetPlayer(QWidget *parent = 0, Qt::WindowFlags f = 0);

    public slots:
        void configure();
        void setViewMode(const QString &viewMode);
        void setPlayMode(QMediaPlayer::State state);
        void setNumFiles(int numFiles);
        void setPlayListLength(quint64 seconds);

    private:
        void openDatabase();
        void createGlobalActions();
        void createStatusbar();
        PlayerWidget *mPlayerWidget;
        QLabel *mModeL;
        QLabel *mActionL;
        QLabel *mFilesL;
        QLabel *mPlaylistDurL;
        QLabel *mGeneralL;
};

#endif // BEETPLAYER_H