xref: /OK3568_Linux_fs/app/forlinx/flapp/src/plugins/allwinner/camera/CameraUI/src/recordseldlg.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 #ifndef RECORDSELDLG_H
2 #define RECORDSELDLG_H
3 
4 #include <QDialog>
5 #include <QAbstractButton>
6 
7 namespace Ui {
8 class RecordSelDlg;
9 }
10 
11 class RecordSelDlg : public QDialog
12 {
13     Q_OBJECT
14 
15 public:
16     explicit RecordSelDlg(QWidget *parent = 0);
17     ~RecordSelDlg();
18     void SelCheckBox();
19     int GetRedCameraId(QString QStr);
20     void UpdateCurCamera(int iCameraId);
21     bool CheckBoxIsEnabled(int iCameraId);
22     void InitCheckBoxStyle();
23 public slots:
24     void onButtonClicked(QAbstractButton *button);
25     void on_pushButtonEnter_clicked();
26 
27 private:
28     Ui::RecordSelDlg *ui;
29     int *m_pRedCamState;//save the record state for cameras[0:stop 1:start 0xff: invalid value]
30     int *m_pNewRedCameraId;
31 };
32 
33 #endif // RECORDSELDLG_H
34