1 #ifndef SETFIRST_H 2 #define SETFIRST_H 3 4 #include <QDialog> 5 #include <QDebug> 6 #include "settings.h" 7 #include <QListView> 8 #if defined(Q_OS_LINUX) 9 #include <stdio.h> 10 #include <stdlib.h> 11 #include <string.h> 12 #include "vencoder.h" 13 #include "CdxMuxer.h" 14 #include <time.h> 15 16 #include "Rtc.h" 17 #include "StorageManager.h" 18 #include "DvrFactory.h" 19 #include "CameraFileCfg.h" 20 #include <sys/socket.h> 21 #include <sys/un.h> 22 #include "Fat.h" 23 #include "DebugLevelThread.h" 24 #include "DvrRecordManager.h" 25 using namespace android; 26 #endif 27 namespace Ui { 28 class SetFirst; 29 } 30 31 class SetFirst : public QDialog 32 { 33 Q_OBJECT 34 35 public: 36 explicit SetFirst(QWidget *parent = 0); 37 ~SetFirst(); 38 void FormInCenter(); 39 void UpdateCurCameraState(int iCameraId); 40 public slots: 41 // void on_click_setttingsButton(); 42 // void on_click_returnButton(); 43 void on_audioButton_clicked(); 44 void on_ADASButton_clicked(); 45 void on_movieButton_clicked(); 46 void on_reverseButton_clicked(); 47 public slots: 48 void on_slider_valuechanged(int); 49 void update_voice(int); 50 private slots: 51 void on_voiceButton_clicked(); 52 53 void on_movieTimeSetting_valueChanged(int value); 54 55 void on_settingsButton_clicked(); 56 57 void on_returnButton_clicked(); 58 59 void on_comboBox_currentIndexChanged(int index); 60 protected: 61 void paintEvent(QPaintEvent *event); 62 private: 63 Ui::SetFirst *ui; 64 Settings* setSecond_Desk; 65 void setWindowStyleSheet(); 66 67 private: 68 bool voiceButtonState; 69 signals: 70 void recordtime_change(); 71 public slots: 72 void on_want_window_close(); 73 }; 74 75 #endif // SETFIRST_H 76