RecordControlApplication/Widget.h

64 lines
1.2 KiB
C
Raw Normal View History

2024-01-18 15:41:43 +08:00
#ifndef WIDG_H
#define WIDG_H
2024-03-04 16:22:40 +08:00
#include "Channel.h"
#include "ChannelSetting.h"
2024-01-18 15:41:43 +08:00
#include "Menu.h"
2024-03-04 16:22:40 +08:00
#include "Message.h"
#include "ProgressBar.h"
#include <QDir>
2024-01-18 15:41:43 +08:00
#include <QMap>
#include <QTimer>
#include <QWidget>
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();
2024-03-04 16:22:40 +08:00
void onShowRecordLabel(bool show);
void onBtnPlaybackClicked();
void onBtnPreviousClicked();
void onBtnNextClicked();
void onBtnPasueClicked();
void onBtnEnterClicked();
void onBtnReturnClicked();
void onBtnForwardClicked();
void onBtnBackClicked();
void onBtnChannelSettingClicked();
2024-01-18 15:41:43 +08:00
private:
Ui::Widget* ui;
QStringList fileList;
QTimer* progressTimer;
2024-01-18 15:41:43 +08:00
bool isPlayback = false;
QString curPlayChannel;
QString curSelectChannel;
2024-03-04 16:22:40 +08:00
QString curPlayFilename;
2024-01-18 15:41:43 +08:00
Menu* menu;
ProgressBar* progressBar;
ChannelSetting* channelSetting;
2024-01-18 15:41:43 +08:00
private:
2024-03-04 16:22:40 +08:00
void seek(QString type);
void playOneChannel();
void playTwoChannels();
Channel* findChannelByName(QString name);
void renderList();
2024-03-04 16:22:40 +08:00
};
2024-01-18 15:41:43 +08:00
#endif // WIDG_H