Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
Public Types | Signals | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
CParameterRecord Class Reference
Inheritance diagram for CParameterRecord:
CParameter

Public Types

enum  ENDACTION { No , OpenFile , OpenFolder }
 

Signals

void sigQualityChanged ()
 
void sigEncodingModeChanged ()
 
void sigImageFileChanged ()
 
void sigEnableVideoChanged ()
 
void sigEnableAudioChanged ()
 
void sigEndActionChanged ()
 
void ImagePathChanged ()
 
- Signals inherited from CParameter
void sigChanged ()
 emit when the parameter changes Usually if required, the corresponding parameter corresponds to a change event.
 

Public Member Functions

 CParameterRecord (QObject *parent=nullptr, const QString &szPrefix=QString())
 
const QString GetPath () const
 
int SetPath (const QString &szPath)
 
const QString GetFile (bool bAuto=false)
 
int SetFile (const QString &szFile)
 
QString GetImageFile (bool bAuto=false)
 
void SetImageFile (const QString &newImageFile)
 
QString GetImagePath () const
 
void SetImagePath (const QString &newImagePath)
 
qreal GetVideoFrameRate () const
 
void SetVideoFrameRate (qreal newVideoFrameRate)
 
int GetAudioSampleRate () const
 
void SetAudioSampleRate (int newAudioSampleRate)
 
virtual CParameterRecordoperator= (const CParameterRecord &in)
 
bool GetEnableVideo () const
 
void SetEnableVideo (bool newEnableVideo)
 
bool GetEnableAudio () const
 
void SetEnableAudio (bool newEnableAudio)
 
CParameterRecord::ENDACTION GetEndAction () const
 
void SetEndAction (ENDACTION newEndAction)
 
- Public Member Functions inherited from CParameter
 CParameter (QObject *parent=nullptr, const QString &szPrefix=QString())
 
virtual int Load (QString szFile=QString())
 Load from file.
 
virtual int Save (QString szFile=QString(), bool bForce=true)
 Save to file.
 
virtual int Load (QSettings &set)
 Load from storage.
 
virtual int Save (QSettings &set, bool bForce=true)
 Save to storage.
 
virtual bool CheckValidity ()
 Check whether the parameter is valid to decide whether to use or save the parameter.
 

Protected Member Functions

virtual int OnLoad (QSettings &set) override
 
virtual int OnSave (QSettings &set) override
 
- Protected Member Functions inherited from CParameter
virtual bool OnCheckValidity ()
 Check validity.
 
int SetModified (bool bModified=true)
 When setting parameters, if there is a modification, it is called.
 
bool GetModified ()
 Whether the parameters have been modified.
 

Private Attributes

bool m_bEnableVideo
 
bool m_bEnableAudio
 
QString m_szFile
 
QString m_szPath
 
QString m_szImageFile
 
QString m_szImagePath
 
qreal m_VideoFrameRate
 
int m_AudioSampleRate
 
ENDACTION m_EndAction
 

Additional Inherited Members

- Properties inherited from CParameter
bool Modified
 

Detailed Description

Definition at line 15 of file ParameterRecord.h.

Member Enumeration Documentation

◆ ENDACTION

enum CParameterRecord::ENDACTION

Definition at line 68 of file ParameterRecord.h.

Constructor & Destructor Documentation

◆ CParameterRecord()

CParameterRecord::CParameterRecord ( QObject *  parent = nullptr,
const QString &  szPrefix = QString() 
)
explicit

Definition at line 10 of file ParameterRecord.cpp.

Member Function Documentation

◆ GetAudioSampleRate()

int CParameterRecord::GetAudioSampleRate ( ) const

Definition at line 317 of file ParameterRecord.cpp.

◆ GetEnableAudio()

bool CParameterRecord::GetEnableAudio ( ) const

Definition at line 86 of file ParameterRecord.cpp.

◆ GetEnableVideo()

bool CParameterRecord::GetEnableVideo ( ) const

Definition at line 72 of file ParameterRecord.cpp.

◆ GetEndAction()

CParameterRecord::ENDACTION CParameterRecord::GetEndAction ( ) const

Definition at line 100 of file ParameterRecord.cpp.

◆ GetFile()

const QString CParameterRecord::GetFile ( bool  bAuto = false)
Parameters
bAuto
  • true: Automatically generated
  • false: use the value of SetFile()
extfilename extension

Definition at line 177 of file ParameterRecord.cpp.

◆ GetImageFile()

QString CParameterRecord::GetImageFile ( bool  bAuto = false)

Definition at line 196 of file ParameterRecord.cpp.

◆ GetImagePath()

QString CParameterRecord::GetImagePath ( ) const

Definition at line 114 of file ParameterRecord.cpp.

◆ GetPath()

const QString CParameterRecord::GetPath ( ) const

Definition at line 217 of file ParameterRecord.cpp.

◆ GetVideoFrameRate()

qreal CParameterRecord::GetVideoFrameRate ( ) const

Definition at line 303 of file ParameterRecord.cpp.

◆ OnLoad()

int CParameterRecord::OnLoad ( QSettings &  set)
overrideprotectedvirtual

Implements CParameter.

Definition at line 128 of file ParameterRecord.cpp.

◆ OnSave()

int CParameterRecord::OnSave ( QSettings &  set)
overrideprotectedvirtual

Implements CParameter.

Definition at line 155 of file ParameterRecord.cpp.

◆ operator=()

CParameterRecord & CParameterRecord::operator= ( const CParameterRecord in)
virtual

Definition at line 45 of file ParameterRecord.cpp.

◆ SetAudioSampleRate()

void CParameterRecord::SetAudioSampleRate ( int  newAudioSampleRate)

Definition at line 322 of file ParameterRecord.cpp.

◆ SetEnableAudio()

void CParameterRecord::SetEnableAudio ( bool  newEnableAudio)

Definition at line 91 of file ParameterRecord.cpp.

◆ SetEnableVideo()

void CParameterRecord::SetEnableVideo ( bool  newEnableVideo)

Definition at line 77 of file ParameterRecord.cpp.

◆ SetEndAction()

void CParameterRecord::SetEndAction ( ENDACTION  newEndAction)

Definition at line 105 of file ParameterRecord.cpp.

◆ SetFile()

int CParameterRecord::SetFile ( const QString &  szFile)

Definition at line 187 of file ParameterRecord.cpp.

◆ SetImageFile()

void CParameterRecord::SetImageFile ( const QString &  newImageFile)

Definition at line 208 of file ParameterRecord.cpp.

◆ SetImagePath()

void CParameterRecord::SetImagePath ( const QString &  newImagePath)

Definition at line 119 of file ParameterRecord.cpp.

◆ SetPath()

int CParameterRecord::SetPath ( const QString &  szPath)

Definition at line 222 of file ParameterRecord.cpp.

◆ SetVideoFrameRate()

void CParameterRecord::SetVideoFrameRate ( qreal  newVideoFrameRate)

Definition at line 308 of file ParameterRecord.cpp.

Member Data Documentation

◆ m_AudioSampleRate

int CParameterRecord::m_AudioSampleRate
private

Definition at line 106 of file ParameterRecord.h.

◆ m_bEnableAudio

bool CParameterRecord::m_bEnableAudio
private

Definition at line 90 of file ParameterRecord.h.

◆ m_bEnableVideo

bool CParameterRecord::m_bEnableVideo
private

Definition at line 89 of file ParameterRecord.h.

◆ m_EndAction

ENDACTION CParameterRecord::m_EndAction
private

Definition at line 108 of file ParameterRecord.h.

◆ m_szFile

QString CParameterRecord::m_szFile
private

Definition at line 91 of file ParameterRecord.h.

◆ m_szImageFile

QString CParameterRecord::m_szImageFile
private

Definition at line 93 of file ParameterRecord.h.

◆ m_szImagePath

QString CParameterRecord::m_szImagePath
private

Definition at line 94 of file ParameterRecord.h.

◆ m_szPath

QString CParameterRecord::m_szPath
private

Definition at line 92 of file ParameterRecord.h.

◆ m_VideoFrameRate

qreal CParameterRecord::m_VideoFrameRate
private

Definition at line 105 of file ParameterRecord.h.


The documentation for this class was generated from the following files: