2019-09-25 16:38:34 +00:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
2020-05-26 16:54:03 +00:00
|
|
|
#include "media/CameraCapture.h"
|
|
|
|
#include "cplaywidget.h"
|
2019-09-25 16:38:34 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class MainWindow;
|
|
|
|
}
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit MainWindow(QWidget *parent = nullptr);
|
|
|
|
~MainWindow();
|
|
|
|
|
2020-05-26 16:54:03 +00:00
|
|
|
private slots:
|
|
|
|
void on_pushButton_clicked();
|
|
|
|
|
2019-09-25 16:38:34 +00:00
|
|
|
private:
|
|
|
|
Ui::MainWindow *ui;
|
2020-05-26 16:54:03 +00:00
|
|
|
Camera *mCamera;
|
|
|
|
QStringList mCameraList;
|
|
|
|
bool m_bCameraOpen;
|
|
|
|
CPlayWidget *mPlayerWidget;
|
2019-09-25 16:38:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|