-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDlgLiveCapture.h
95 lines (46 loc) · 1.67 KB
/
DlgLiveCapture.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
// DlgLiveCapture.h
// Declares the DlgLiveCapture class representing the dialog that is shown while the liva capture is in progress
#ifndef DLGLIVECAPTURE_H
#define DLGLIVECAPTURE_H
#include <memory>
#include <QDialog>
// fwd:
class LiveCapture;
class LiveCaptureSettings;
class Snapshot;
typedef std::shared_ptr<Snapshot> SnapshotPtr;
namespace Ui
{
class DlgLiveCapture;
}
class DlgLiveCapture:
public QDialog
{
typedef QDialog Super;
Q_OBJECT
public:
explicit DlgLiveCapture(QWidget * a_Parent = nullptr);
/** Connects to the specified LiveCapture instance and displays its progress.*/
void show(LiveCapture & a_LiveCapture, LiveCaptureSettings & a_Settings);
private slots:
/** Displays the specified log message in the UI. */
void captureLogEvent(const QString & a_Message);
/** Displays the error message and closes the dialog. */
void captureError(const QString & a_ErrorMessage);
/** Updates the number of seconds till the next capture changes. */
void captureTimerTick(int a_SecondsLeft);
/** Logs a message about the recorded snapshot. */
void captureSnapshotRecorded(const QString & a_FileName);
/** Logs a message about the parsing. */
void captureSnapshotParsed(const QString & a_FileName, SnapshotPtr a_Snapshot);
/** Logs a message about the addition. */
void captureSnapshotAdded(const QString & a_FileName, SnapshotPtr a_Snapshot);
private:
/** The QTCreator-managed UI. */
std::shared_ptr<Ui::DlgLiveCapture> m_UI;
/** The LiveCapture instance that is being controlled by this dlg. */
LiveCapture * m_LiveCapture;
/** The settings used for this capture. */
LiveCaptureSettings * m_Settings;
};
#endif // DLGLIVECAPTURE_H