21 const QString& szPrefix = QString());
23 const QString GetPath()
const;
24 int SetPath(
const QString& szPath);
31 const QString GetFile(
bool bAuto =
false);
32 int SetFile(
const QString& szFile);
34 QString GetImageFile(
bool bAuto =
false);
35 void SetImageFile(
const QString &newImageFile);
37 QString GetImagePath()
const;
38 void SetImagePath(
const QString &newImagePath);
40#if HAVE_QT6_MULTIMEDIA
41 const QMediaFormat::FileFormat GetFileFormat()
const;
42 int SetFileFormat(
const QMediaFormat::FileFormat &f);
44 const QMediaFormat::VideoCodec GetVideoCodec()
const;
45 int SetVideoCodec(QMediaFormat::VideoCodec);
47 const QMediaFormat::AudioCodec GetAudioCodec()
const;
48 int SetAudioCodec(QMediaFormat::AudioCodec);
50 QMediaRecorder::Quality GetQuality()
const;
51 void SetQuality(
const QMediaRecorder::Quality &newQuality);
52 QMediaRecorder::EncodingMode GetEncodingMode()
const;
53 void SetEncodingMode(
const QMediaRecorder::EncodingMode &newEncodingMode);
56 qreal GetVideoFrameRate()
const;
57 void SetVideoFrameRate(qreal newVideoFrameRate);
58 int GetAudioSampleRate()
const;
59 void SetAudioSampleRate(
int newAudioSampleRate);
63 bool GetEnableVideo()
const;
64 void SetEnableVideo(
bool newEnableVideo);
65 bool GetEnableAudio()
const;
66 void SetEnableAudio(
bool newEnableAudio);
75 CParameterRecord::ENDACTION GetEndAction()
const;
76 void SetEndAction(ENDACTION newEndAction);
79 void sigQualityChanged();
80 void sigEncodingModeChanged();
81 void sigImageFileChanged();
82 void sigEnableVideoChanged();
83 void sigEnableAudioChanged();
84 void sigEndActionChanged();
86 void ImagePathChanged();
93 QString m_szImageFile;
94 QString m_szImagePath;
96#if HAVE_QT6_MULTIMEDIA
97 QMediaFormat::FileFormat m_FileFormat;
98 QMediaFormat::VideoCodec m_VideoCodec;
99 QMediaFormat::AudioCodec m_AudioCodec;
101 QMediaRecorder::Quality m_Quality;
102 QMediaRecorder::EncodingMode m_EncodingMode;
105 qreal m_VideoFrameRate;
106 int m_AudioSampleRate;
108 ENDACTION m_EndAction;
111 virtual int OnLoad(QSettings &set)
override;
112 virtual int OnSave(QSettings &set)
override;