output-timer.hpp 803 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #pragma once
  2. #include <QDialog>
  3. #include <memory>
  4. #include "ui_output-timer.h"
  5. class QCloseEvent;
  6. class OutputTimer : public QDialog {
  7. Q_OBJECT
  8. public:
  9. std::unique_ptr<Ui_OutputTimer> ui;
  10. OutputTimer(QWidget *parent);
  11. void closeEvent(QCloseEvent *event) override;
  12. public slots:
  13. void StreamingTimerButton();
  14. void RecordingTimerButton();
  15. void StreamTimerStart();
  16. void RecordTimerStart();
  17. void StreamTimerStop();
  18. void RecordTimerStop();
  19. void UpdateStreamTimerDisplay();
  20. void UpdateRecordTimerDisplay();
  21. void ShowHideDialog();
  22. void EventStopStreaming();
  23. void EventStopRecording();
  24. private:
  25. bool streamingAlreadyActive = false;
  26. bool recordingAlreadyActive = false;
  27. QTimer *streamingTimer;
  28. QTimer *recordingTimer;
  29. QTimer *streamingTimerDisplay;
  30. QTimer *recordingTimerDisplay;
  31. };