#ifndef WIDG_H #define WIDG_H #include "Channel.h" #include "ChannelSetting.h" #include "Menu.h" #include "Message.h" #include "ProgressBar.h" #include #include #include #include namespace Ui { class Widget; } class Widget : public QWidget { Q_OBJECT public: explicit Widget(QWidget* parent = 0); ~Widget(); public slots: void showPlayList(); private slots: void onProgressTimeout(); void onPlayEnd(); void onShowRecordLabel(bool show); void onBtnPlaybackClicked(); void onBtnPreviousClicked(); void onBtnNextClicked(); void onBtnPasueClicked(); void onBtnEnterClicked(); void onBtnReturnClicked(); void onBtnForwardClicked(); void onBtnBackClicked(); void onBtnChannelSettingClicked(); private: Ui::Widget* ui; QStringList fileList; QTimer* progressTimer; bool isPlayback = false; QString curPlayChannel; QString curSelectChannel; QString curPlayFilename; Menu* menu; ProgressBar* progressBar; ChannelSetting* channelSetting; private: void seek(QString type); void playOneChannel(); void playTwoChannels(); Channel* findChannelByName(QString name); void renderList(); }; #endif // WIDG_H