wxAnswer.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #ifndef WXANSWER_H
  2. #define WXANSWER_H
  3. #include "CWebsocketProc.h"
  4. #include "wPictureList.h"
  5. #include "CHttpBll.h"
  6. #include "CBaseWidget.h"
  7. #include <QTimer>
  8. namespace Ui {
  9. class wxAnswer;
  10. }
  11. class wxAnswer : public CBaseWidget
  12. {
  13. Q_OBJECT
  14. signals:
  15. void picConfirm(QString sFileUrls);
  16. void audioAnswered(QString sFileUrl);
  17. void exit();
  18. public:
  19. explicit wxAnswer(QString sAnswerType, int nOrder, QWidget *parent = nullptr);
  20. ~wxAnswer();
  21. int setUI(const int nWidth);
  22. int widgetType();
  23. QString getFileUrl();
  24. void setAnswer(QString sAnswer);
  25. void setPics(QString sFileUrls);
  26. private slots:
  27. void onGetWXQrCode(CGetWXQrCode getWXQrCode);
  28. void onMobileStatus(__int64 nExamRecordDataId, int nOrder, QString sScanStatus);
  29. void onFileAnswer(__int64 nExamRecordDataId, int nOrder, QString sFileType, QString sFileUrl);
  30. void onSaveUploadedFileAcknowledgeStatus(CSaveUploadedFileAcknowledgeStatus saveUploadedFileAcknowledgeStatus);
  31. void onDownLoadFile(CDownLoadFileInfo downLoadFileInfo);
  32. void onGetWXUploadedFile(CGetWXUploadedFile getWXUploadedFile);
  33. void on_btn_wxa_close_clicked();
  34. void on_btn_wxa_comfirm_clicked();
  35. void on_btn_etvt_play_clicked();
  36. void on_hslider_etvt_volume_valueChanged(int value);
  37. void on_btn_etvt_volume_clicked();
  38. void on_btn_refresh_clicked();
  39. private:
  40. Ui::wxAnswer *ui;
  41. int m_nOrder;
  42. QString m_sAnswerType;
  43. QString m_sFileUrl;
  44. std::shared_ptr<wPictureList> m_picList;
  45. std::shared_ptr<QTimer> m_pRefreshTimer;
  46. int m_nRefreshSeconds = 20;
  47. int m_nPlayVol;
  48. std::shared_ptr<QTimer> m_pTimer;
  49. int m_nAudioSecord;
  50. std::string m_sRecordDevice;
  51. bool m_bMute = false;
  52. int m_nLastVol = 0;
  53. };
  54. #endif // WXANSWER_H